Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git add -p: add missing "q" to patch prompt
author
Wincent Colaiuta
<win@wincent.com>
Mon, 20 Apr 2009 09:42:52 +0000
(11:42 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 20 Apr 2009 10:38:44 +0000
(
03:38
-0700)
Commit
cbd3a01
added a new "q" subcommand to the "git add -p"
command loop, but forgot to add it to the prompt.
Signed-off-by: Wincent Colaiuta <win@wincent.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-add--interactive.perl
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
cafa567
)
diff --git
a/git-add--interactive.perl
b/git-add--interactive.perl
index 566e3710f5275bb751965744ff1d53ecaa809c97..5407b2e1b88cef5b9124ef9dca79cd1f95018bae 100755
(executable)
--- a/
git-add--interactive.perl
+++ b/
git-add--interactive.perl
@@
-1045,7
+1045,7
@@
sub patch_update_file {
}
print colored $prompt_color, 'Stage ',
($hunk[$ix]{TYPE} eq 'mode' ? 'mode change' : 'this hunk'),
- " [y,n,a,d,/$other,?]? ";
+ " [y,n,
q,
a,d,/$other,?]? ";
my $line = prompt_single_character;
if ($line) {
if ($line =~ /^y/i) {