Skip to content

git-merge-base -a vs. git-show-branch --merge-base

Michael J Gruber git 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3t6010-merge-base.sh: Depict the octopus test grapht/t6010-merge-base.sh+12 -00 replies
2/3git-merge-base/git-show-branch: Cleanup documentation and usageDocumentation/git-merge-base.txt Documentation/git-show-branch.txt builtin-merge-base.c +1 more+9 -70 replies
3/3git-merge-base/git-show-branch --merge-base: Documentation and testDocumentation/git-merge-base.txt Documentation/git-show-branch.txt builtin-show-branch.c +1 more+16 -40 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/3] git-merge-base -a vs. git-show-branch --merge-base

The two commands above behave differently when more than two commits are given. The purpose of this patch series is to correct and improve the documentation in this regard, and to document the difference in behavior with a test.

1/3 only depicts the DAG of a test which is already present, to make it easier for future test writers (such as that of 3/3).

2/3 cleans up the documentation so that man pages and usage strings for those two commands coincide.

3/3 adds a test case and corrects the documentation with regards to merge bases for more than two commits.

Michael J Gruber (3):
t6010-merge-base.sh: Depict the octopus test graph git-merge-base/git-show-branch: Cleanup documentation and usage git-merge-base/git-show-branch --merge-base: Documentation and test

 Documentation/git-merge-base.txt  |    9 +++++++--
 Documentation/git-show-branch.txt |   13 ++++++++-----
 builtin-merge-base.c              |    2 +-
 builtin-show-branch.c             |    6 +++---
 t/t6010-merge-base.sh             |   18 ++++++++++++++++++
 5 files changed, 37 insertions(+), 11 deletions(-)