Autogenerated man pages for v1.3.3-g63df
[git.git] / man1 / git-merge-base.1
1 .\"Generated by db2man.xsl. Don't modify this, modify the source.
2 .de Sh \" Subsection
3 .br
4 .if t .Sp
5 .ne 5
6 .PP
7 \fB\\$1\fR
8 .PP
9 ..
10 .de Sp \" Vertical space (when we can't use .PP)
11 .if t .sp .5v
12 .if n .sp
13 ..
14 .de Ip \" List item
15 .br
16 .ie \\n(.$>=3 .ne \\$3
17 .el .ne 3
18 .IP "\\$1" \\$2
19 ..
20 .TH "GIT-MERGE-BASE" 1 "" "" ""
21 .SH NAME
22 git-merge-base \- Finds as good a common ancestor as possible for a merge
23 .SH "SYNOPSIS"
24
25
26 \fIgit\-merge\-base\fR [\-\-all] <commit> <commit>
27
28 .SH "DESCRIPTION"
29
30
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\&.
32
33
34 Given a selection of equally good common ancestors it should not be relied on to decide in any particular way\&.
35
36
37 The "git\-merge\-base" algorithm is still in flux \- use the source...
38
39 .SH "OPTIONS"
40
41 .TP
42 \-\-all
43 Output all common ancestors for the two commits instead of just one\&.
44
45 .SH "AUTHOR"
46
47
48 Written by Linus Torvalds <torvalds@osdl\&.org>
49
50 .SH "DOCUMENTATION"
51
52
53 Documentation by David Greaves, Junio C Hamano and the git\-list <git@vger\&.kernel\&.org>\&.
54
55 .SH "GIT"
56
57
58 Part of the \fBgit\fR(7) suite
59