author | Thomas Rast <trast@student.ethz.ch> | |
Sun, 26 Oct 2008 19:37:06 +0000 (20:37 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 26 Oct 2008 23:20:24 +0000 (16:20 -0700) | ||
commit | 9fe7a643fcc56ca1c17afec5d5f8adca10cabdd1 | |
tree | 1a72b3688ddd7ad12664b26c9507cec1d16c37cf | tree | snapshot |
parent | ddff8563510a2c5c675d488a02e2642306430fc1 | commit | diff |
add -p: warn if only binary changes present
Current 'git add -p' will say "No changes." if there are no changes to
text files, which can be confusing if there _are_ changes to binary
files. Add some code to distinguish the two cases, and give a
different message in the latter one.
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Current 'git add -p' will say "No changes." if there are no changes to
text files, which can be confusing if there _are_ changes to binary
files. Add some code to distinguish the two cases, and give a
different message in the latter one.
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-add--interactive.perl | diff | blob | history |