Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
add -p: fix counting empty context lines in edited patches
[gitweb.git]
/
git-add--interactive.perl
diff --git
a/git-add--interactive.perl
b/git-add--interactive.perl
index ab022ec0737607ef6b3302e6f9203835732cbe37..8361ef45e722f84140995e48f26ff2fa3c1b520b 100755
(executable)
--- a/
git-add--interactive.perl
+++ b/
git-add--interactive.perl
@@
-1047,7
+1047,7
@@
sub recount_edited_hunk {
$o_cnt++;
} elsif ($mode eq '+') {
$n_cnt++;
- } elsif ($mode eq ' ') {
+ } elsif ($mode eq ' '
or $mode eq "\n"
) {
$o_cnt++;
$n_cnt++;
}