Re: "git add -u" broken in git 1.7.4?
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:50:31
Eric Raible [off-list ref] writes:
IFUC this shouldn't affect any (correctly written) scripts, and so the only downside is that (when run in a subdir) commands that are currently spelled: git xxx would with this change need to be spelled: git xxx .
If xxx is grep (or "add -u") and the script is running the former form, you already broke it, and I think a script that expects "git grep" to limit its scope to the current directory is "correctly written". That is how these commands were defined and documented to work. "Adding SP plus dot is just a two-byte change" is not a sensible reason to break people's scripts. We need to be honest and say "sorry, but with this release we are breaking your scripts. Let us convince you that the benefit of the resulting consistency outweighs that cost".