Skip to content
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

Add -ff option to git clean #529

Merged
merged 2 commits into from Dec 17, 2021
Merged

Add -ff option to git clean #529

merged 2 commits into from Dec 17, 2021

Conversation

cwalsh
Copy link
Contributor

@cwalsh cwalsh commented Jul 12, 2021

From git clean --help:

Git will refuse to modify untracked nested git repositories (directories with a .git subdirectory) unless a second -f is given.

This adds the ability to pass -ff to git clean to enable removing directories with a .git subdirectory.

An example use case is when a gem from a git source is cached in vendor/cache/some_gem. Removing would require git clean -dff

Git will refuse to modify untracked nested git repositories
(directories with a .git subdirectory) unless a second -f is given.

This adds the ability to pass "-ff" to git clean to enable removing
directories with a .git subdirectory.

An example use case is when a gem from a git source is cached in
vendor/cache/some_gem
Removing this with "git clean" would require "git clean -dff"

Signed-off-by: Cameron Walsh <cameron.walsh@gmail.com>
Copy link
Member

@jcouball jcouball left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thank you for the contribution.

@jcouball jcouball merged commit 3884314 into ruby-git:master Dec 17, 2021
@cwalsh cwalsh deleted the clean_ff branch May 3, 2022 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants