-
-
Notifications
You must be signed in to change notification settings - Fork 843
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
New .git Handling has no opt out #1457
Comments
@skoriop FYI |
@raphael-ratepay in the example you gave I don't think adding One possible way we could address is this add a p.s. what you currently have would also find something like a |
Use an overlay to pre 9 of fd until the below is fixed sharkdp/fd#1457
I was just bitten by this as well. Would like to be able to discover the paths of git repositories, whilst still honouring their respective |
Any update on this, I could provide an MR for |
Actually fd already has an option like Unfortunately, using I tried implementing an
I'm not sure what the best path forward is with the current API of the See also BurntSushi/ripgrep#2705. |
None of the options sounds Great, could a flag like |
I also tried for a bit to make something like
I also thought of this compromise, which might work for the people in this thread but is semantically kinda weird:
By the way, this line is also wrong because Line 338 in 0dc3342
|
That actually sounds like a good option, that does not break anybody else workflow? |
@raphael-ratepay you can achieve this with: fd -HI '^.git$' --type d --base-directory ~/Source | sed 's|/.git||' |
@mehalter that does not work as expected. Using -I includes all node_modules, .terraform, .... folders as well - so it returns all hidden dependencies. Which is not the case in version 8.7 if used without |
Oh yeah that's true @raphael-ratepay ! My bad! |
Any updates / Ideas? I can propose a PR if I know in which direction :D |
I agree we should fix this rather sooner than later, especially if we want to revert the breaking change.
A third option might be to make the I'm personally okay with all options, but if we can make Given that this new behavior has a risk for confusion ( |
I'm also fine with any of those options. |
I expect that most of the users are in favour of the new behaviour, so I think rollback is not the best option. If nobody obliges I would add --no-ignore-vcs-dirs as PR. |
I'm torn on this. Reasons I think automatically ignoring .git is good:
Reasons it is bad:
Maybe we should revert, but add some documentation about the workaround of adding |
I have the following code:
which lists all folders that contain a
.git
folder (basically a project search). This worked fine in 8.x.x but breaks in 9.x.x due to the breaking change of the .git handling.Sadly there is no option to opt out for this. because --no-ignore-vcs does bring back all ignored files (so .terraform, .terragrunt-cache, .node-modules, ...) which I do not want. I just want to include ".git" but not everything .gitignore
How can this be achieved? Could you bring back the old behaviour with some cli flag?
The text was updated successfully, but these errors were encountered: