-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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(git-bulk): add new option to not follow hidden directories #1195
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Feature is good. Had a question about implementation
Remove unnecessary subshell Co-authored-by: Edwin Kofler <[email protected]>
With the Bash' regexp matching operator `=~`, we need to use the Bash conditional expression evaluation command `[[ ]]`.
cc083e9
to
8121c97
Compare
Fixed the implementation as requested and rebased on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pierreay
Do we need to update the completion script?
@spacewander Actually, I did it on a local branch, but not merged into the branch of the PR...sorry! And I forgot the completion in the same way for the already merged #1194... So I cherry-picked the right commit for the two PRs (this one and the mentioned one) at the same time. ;) |
@pierreay |
Add a new option
--no-follow-hidden
forgit-bulk
to not traverse hidden directories (containing a dot at the beginning) under the workspace directories when searching for git repositories. This PR does not change the default behavior, it only adds the option for the user.Note that on the implementation, I did not changed the way
find
is searching for directories. Instead, I checked using a regex before performing the operation if we are under a hidden directory. This was the easiest way I found.