Skip to content

am --skip/--abort: improve index/worktree cleanup

Paul Tan git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6am --skip: revert changes introduced by failed 3way mergegit-am.sh t/t4151-am-abort.sh+17 -10 replies
2/6am -3: support 3way merge on unborn branchgit-am.sh t/t4151-am-abort.sh+11 -10 replies
3/6am --skip: support skipping while on unborn branchgit-am.sh t/t4151-am-abort.sh+11 -30 replies
4/6am --abort: revert changes introduced by failed 3way mergegit-am.sh t/t4151-am-abort.sh+28 -11 reply
5/6am --abort: support aborting to unborn branchgit-am.sh t/t4151-am-abort.sh+25 -12 replies
6/6am --abort: keep unrelated commits on unborn branchgit-am.sh t/t4151-am-abort.sh+12 -12 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] am --skip/--abort: improve index/worktree cleanup

Currently git-am attempts to clean up the index/worktree when skipping or aborting, but does not do it very well:

* While it discards conflicted index entries, it does not remove any other modifications made to the index due to a previous threeway merge.

* It expects HEAD/ORIG_HEAD to exist, and thus does not clean up the index when on an unborn branch.

This patch series addresses the above two general problems by making the calls to git-read-tree aware of the differences between our current index and HEAD/ORIG_HEAD, and by explictly defining what happens when we are on an unborn branch.

Paul Tan (6):
am --skip: revert changes introduced by failed 3way merge am -3: support 3way merge on unborn branch
am --skip: support skipping while on unborn branch am --abort: revert changes introduced by failed 3way merge am --abort: support aborting to unborn branch
am --abort: keep unrelated commits on unborn branch

 git-am.sh           | 31 ++++++++++++++------
 t/t4151-am-abort.sh | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 104 insertions(+), 8 deletions(-)
Signature · 1 line
2.1.4