-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Allow recursing into submodules when using git walker #507
base: main
Are you sure you want to change the base?
Conversation
Coupling ourselves to the git cli smells wrong to me. We used to use a pure-go implementation of git, right? Wouldn't it be hard to switch back to that in the future if we supported arbitrary git cli args? |
I don't see us moving back to a git alternative; there is too much risk of feature drift/bugs like we experienced already. |
That's fair. I personally am not anxious about being coupled to the git cli, either, but I do think it's worth acknowledging that it's different than just being coupled with git. More concretely, what's your idea? Is it having the ability to pass arbitrary args to |
Yeah. Straight pass through I guess. |
Looking through
I imagine this could break our parsing of the output of Are there any existing options/flags that treefmt has that wouldn't need to exist if we had this generic flags feature? Or on the flip side, do you see any useful flags people might want to use (besides the |
Makes me wonder if it is better to just create a separate walker which takes a command to get the list of files. |
Oooh that's a neat idea, as it would allow people to use non-git vcs tools. |
I like this idea as well |
I haven't added tests, but I'll add if this feature is deemed desirable.