Autogenerated man pages for v1.4.0-rc1-gdd82
[git.git] / man1 / git-cherry.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-CHERRY" 1 "" "" ""
21 .SH NAME
22 git-cherry \- Find commits not merged upstream
23 .SH "SYNOPSIS"
24
25
26 \fIgit\-cherry\fR [\-v] <upstream> [<head>]
27
28 .SH "DESCRIPTION"
29
30
31 The changeset (or "diff") of each commit between the fork\-point and <head> is compared against each commit between the fork\-point and <upstream>\&.
32
33
34 Every commit with a changeset that doesn't exist in the other branch has its id (sha1) reported, prefixed by a symbol\&. Those existing only in the <upstream> branch are prefixed with a minus (\-) sign, and those that only exist in the <head> branch are prefixed with a plus (+) symbol\&.
35
36
37 Because git\-cherry compares the changeset rather than the commit id (sha1), you can use git\-cherry to find out if a commit you made locally has been applied <upstream> under a different commit id\&. For example, this will happen if you're feeding patches <upstream> via email rather than pushing or pulling commits directly\&.
38
39 .SH "OPTIONS"
40
41 .TP
42 \-v
43 Verbose\&.
44
45 .TP
46 <upstream>
47 Upstream branch to compare against\&.
48
49 .TP
50 <head>
51 Working branch; defaults to HEAD\&.
52
53 .SH "AUTHOR"
54
55
56 Written by Junio C Hamano <junkio@cox\&.net>
57
58 .SH "DOCUMENTATION"
59
60
61 Documentation by Junio C Hamano and the git\-list <git@vger\&.kernel\&.org>\&.
62
63 .SH "GIT"
64
65
66 Part of the \fBgit\fR(7) suite
67