diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-07-10 13:58:58 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-07-10 13:58:59 -0700 |
commit | f904494574035f6ff2725b0e97951c55ccd9dee3 (patch) | |
tree | 4ce9cb8c57fb75f437d1a557d2dc94cac4d9692b /t/t3701-add-interactive.sh | |
parent | 040746c061c1138222d7db1f9ace292ef1a0935d (diff) | |
parent | d85d7ecb80ebc93f7380b4196c303756ee051668 (diff) | |
download | git-f904494574035f6ff2725b0e97951c55ccd9dee3.tar.gz git-f904494574035f6ff2725b0e97951c55ccd9dee3.tar.xz |
Merge branch 'jk/add-p-commentchar-fix' into maint
"git add -p" were updated in 2.12 timeframe to cope with custom
core.commentchar but the implementation was buggy and a
metacharacter like $ and * did not work.
* jk/add-p-commentchar-fix:
add--interactive: quote commentChar regex
add--interactive: handle EOF in prompt_yesno
Diffstat (limited to 't/t3701-add-interactive.sh')
-rwxr-xr-x | t/t3701-add-interactive.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t3701-add-interactive.sh b/t/t3701-add-interactive.sh index 2ecb43a61..2f3e7cea6 100755 --- a/t/t3701-add-interactive.sh +++ b/t/t3701-add-interactive.sh @@ -477,4 +477,12 @@ test_expect_success 'add -p does not expand argument lists' ' ! grep not-changed trace.out ' +test_expect_success 'hunk-editing handles custom comment char' ' + git reset --hard && + echo change >>file && + test_config core.commentChar "\$" && + echo e | GIT_EDITOR=true git add -p && + git diff --exit-code +' + test_done |