Skip to content

fix mergetool+rerere+subdir regression

Richard Hansen git 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest14 patches 0 repliesNew
  2. v414 patches 4 repliesSuperseded
  3. v313 patches 8 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v24 patches4 repliesSuperseded
v14 patches6 repliesSuperseded

Changes in v5 from the cover letter

* Revert to Junio's original proposal for 14/14. (Junio: Please feel free to take author credit on 14/4; it's now 100% your code.)
* Do:

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14.mailmap: Use my personal email address as my canonical.mailmap+2 -00 replies
2/14rev-parse doc: pass "--" to rev-parse in the --prefix exampleDocumentation/git-rev-parse.txt+2 -10 replies
3/14t7610: update branch names to match test numbert/t7610-mergetool.sh+41 -410 replies
4/14t7610: Move setup code to the 'setup' test case.t/t7610-mergetool.sh+35 -300 replies
5/14t7610: use test_when_finished for cleanup taskst/t7610-mergetool.sh+37 -340 replies
6/14t7610: don't rely on state from previous testt/t7610-mergetool.sh+6 -00 replies
7/14t7610: run 'git reset --hard' after each test to clean upt/t7610-mergetool.sh+8 -00 replies
8/14t7610: delete some now-unnecessary 'git reset --hard' linest/t7610-mergetool.sh+0 -20 replies
9/14t7610: always work on a test-specific brancht/t7610-mergetool.sh+8 -20 replies
10/14t7610: don't assume the checked-out committ/t7610-mergetool.sh+6 -60 replies
11/14t7610: spell 'git reset --hard' consistentlyt/t7610-mergetool.sh+19 -180 replies
12/14t7610: add test case for rerere+mergetool+subdir bugt/t7610-mergetool.sh+20 -10 replies
13/14mergetool: take the "-O" out of $orderfilegit-mergetool.sh+2 -20 replies
14/14mergetool: fix running in subdir when rerere enabledgit-mergetool.sh t/t7610-mergetool.sh+21 -30 replies

Reviews trailers per patch

None of the 14 patches has a Reviewed-by or Acked-by.

PatchJunio C Hamano
1/14
2/14
3/14
4/14
5/14
6/14
7/14
8/14
9/14
10/14
11/14
12/14
13/14
14/14Based-on-patch-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 00/14] fix mergetool+rerere+subdir regression

If rerere is enabled, no pathnames are given, and mergetool is run from a subdirectory, mergetool always prints "No files need merging". Fix the bug.

This regression was introduced in 57937f70a09c12ef484c290865dac4066d207c9c (v2.11.0).

Changes since v4:
* Revert to Junio's original proposal for 14/14. (Junio: Please feel free to take author credit on 14/4; it's now 100% your code.)
* Do:

        # rev-parse provides the -- needed for 'set'
        eval "set $(git rev-parse --sq -- "$@")"
    instead of:
        eval "set -- $(git rev-parse --sq -- "$@")"
        shift
    for both 02/14 and 14/14.

Richard Hansen (14):
.mailmap: Use my personal email address as my canonical rev-parse doc: pass "--" to rev-parse in the --prefix example
t7610: update branch names to match test number
t7610: Move setup code to the 'setup' test case.
t7610: use test_when_finished for cleanup tasks
t7610: don't rely on state from previous test
t7610: run 'git reset --hard' after each test to clean up
t7610: delete some now-unnecessary 'git reset --hard' lines
t7610: always work on a test-specific branch
t7610: don't assume the checked-out commit
t7610: spell 'git reset --hard' consistently
t7610: add test case for rerere+mergetool+subdir bug
mergetool: take the "-O" out of $orderfile
mergetool: fix running in subdir when rerere enabled

 .mailmap                        |   2 +
 Documentation/git-rev-parse.txt |   3 +-
 git-mergetool.sh                |  21 ++-
 t/t7610-mergetool.sh            | 281 ++++++++++++++++++++++++----------------
 4 files changed, 187 insertions(+), 120 deletions(-)
Signature · 1 line
2.11.0.390.gc69c2f50cf-goog