Skip to content

Teach "git merge FETCH_HEAD" octopus merges

Junio C Hamano git 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest15 patches 2 repliesIn review
  2. v114 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15merge: test the top-level merge drivert/t3033-merge-toplevel.sh+136 -00 replies
2/15merge: simplify code flowbuiltin/merge.c+8 -80 replies
3/15t5520: style fixest/t5520-pull.sh+6 -162 replies
4/15t5520: test pulling an octopus into an unborn brancht/t5520-pull.sh+9 -00 replies
5/15merge: clarify "pulling into void" special casebuiltin/merge.c+18 -170 replies
6/15merge: do not check argc to determine number of remote headsbuiltin/merge.c+2 -30 replies
7/15merge: small leakfix and code simplificationbuiltin/merge.c+2 -20 replies
8/15merge: clarify collect_parents() logicbuiltin/merge.c+11 -20 replies
9/15merge: split reduce_parents() out of collect_parents()builtin/merge.c+25 -160 replies
10/15merge: narrow scope of merge_namesbuiltin/merge.c+7 -40 replies
11/15merge: extract prepare_merge_message() logic outbuiltin/merge.c+15 -110 replies
12/15merge: make collect_parents() auto-generate the merge messagebuiltin/merge.c+22 -140 replies
13/15merge: decide if we auto-generate the message early in collect_parents()builtin/merge.c+9 -70 replies
14/15merge: handle FETCH_HEAD internallyDocumentation/git-merge.txt builtin/merge.c t/t3033-merge-toplevel.sh+81 -390 replies
15/15merge: deprecate 'git merge <message> HEAD <commit>' syntaxbuiltin/merge.c git-cvsimport.perl git-pull.sh +4 more+9 -90 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 00/15] Teach "git merge FETCH_HEAD" octopus merges

This series is an attempt to make these two operations truly equivalent:

    $ git pull . topic-a topic-b...
    $ git fetch . topic-a topic-b...
    $ git merge FETCH_HEAD

Compared to the previous one ($gmane/267809), there are only a few minor changes:

- The first patch is new; it adds tests to illustrate what the current code does. Accordingly, the penultimate patch is the same as the previous, but updates the tests that expect failure in this step to expect success.

- One step failed to compile (the offending code was removed in a later patch and the endgame did not break the build), which has been corrected.

Junio C Hamano (15):
merge: test the top-level merge driver
merge: simplify code flow
t5520: style fixes
t5520: test pulling an octopus into an unborn branch
merge: clarify "pulling into void" special case
merge: do not check argc to determine number of remote heads
merge: small leakfix and code simplification
merge: clarify collect_parents() logic
merge: split reduce_parents() out of collect_parents()
merge: narrow scope of merge_names
merge: extract prepare_merge_message() logic out
merge: make collect_parents() auto-generate the merge message
merge: decide if we auto-generate the message early in collect_parents()
merge: handle FETCH_HEAD internally
merge: deprecate 'git merge <message> HEAD <commit>' syntax

 Documentation/git-merge.txt   |   4 +
 builtin/merge.c               | 248 +++++++++++++++++++++++++++---------------
 git-cvsimport.perl            |   2 +-
 git-pull.sh                   |   3 +-
 t/t3033-merge-toplevel.sh     | 136 +++++++++++++++++++++++
 t/t3402-rebase-merge.sh       |   2 +-
 t/t5520-pull.sh               |  31 +++---
 t/t6020-merge-df.sh           |   2 +-
 t/t6021-merge-criss-cross.sh  |   6 +-
 t/t9402-git-cvsserver-refs.sh |   2 +-
 10 files changed, 324 insertions(+), 112 deletions(-)
 create mode 100755 t/t3033-merge-toplevel.sh
Signature · 1 line
2.4.0-rc3-300-g052d062