Re: git clean --exclude broken?

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: git clean --exclude broken?

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:51:54

Todd Rinaldo [off-list ref] writes:
I think I have found a new bug in 1.7.5:
My quick check indicates 1.7.3 behaves the same way, and 1.7.2.5 didn't
have --exclude option, so this does not seem to be anything particularly
new in the 1.7.5 release.
# The problem (Why is foo/ removed?)
$>git clean -dXf --exclude=/foo
Removing bar/
Removing foo/
Why is this command line giving -X that tells us not to use the ignore
rules, and --exclude option at the same time?

Re: git clean --exclude broken?

From: Todd Rinaldo <hidden>
Date: 2016-06-15 22:51:54

On Aug 24, 2011, at 4:23 PM, Junio C Hamano wrote:
Todd Rinaldo [off-list ref] writes:
quoted
I think I have found a new bug in 1.7.5:
My quick check indicates 1.7.3 behaves the same way, and 1.7.2.5 didn't
have --exclude option, so this does not seem to be anything particularly
new in the 1.7.5 release.
No. I was just clarifying what my binary was for research purposes.
quoted
# The problem (Why is foo/ removed?)
$>git clean -dXf --exclude=/foo
Removing bar/
Removing foo/
Why is this command line giving -X that tells us not to use the ignore
rules, and --exclude option at the same time?
My more complicated use of the command wanted to use the .gitignore rules to cleanup ignored files with the exception of 1 directory. I believe -dxf --exclude is also broken in the same way.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help