1 .\"Generated by db2man.xsl. Don't modify this, modify the source.
10 .de Sp \" Vertical space (when we can't use .PP)
16 .ie \\n(.$>=3 .ne \\$3
20 .TH "GIT-MERGE-BASE" 1 "" "" ""
22 git-merge-base \- Finds as good a common ancestor as possible for a merge
26 \fIgit\-merge\-base\fR [\-\-all] <commit> <commit>
31 "git\-merge\-base" finds as good a common ancestor as possible between the two commits\&. That is, given two commits A and B \fIgit\-merge\-base A B\fR will output a commit which is reachable from both A and B through the parent relationship\&.
34 Given a selection of equally good common ancestors it should not be relied on to decide in any particular way\&.
37 The "git\-merge\-base" algorithm is still in flux \- use the source...
43 Output all common ancestors for the two commits instead of just one\&.
48 Written by Linus Torvalds <torvalds@osdl\&.org>
53 Documentation by David Greaves, Junio C Hamano and the git\-list <git@vger\&.kernel\&.org>\&.
58 Part of the \fBgit\fR(7) suite