Skip to content

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.

2 participants