From 1ef98e1028751e7fdf168df19ae5193834acdffb Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sun, 3 Sep 2006 06:18:29 +0000 Subject: [PATCH] Autogenerated man pages for v1.4.2-g6ce4 --- man1/git-rev-list.1 | 248 +++++++++++++++++++++++++++----------------- 1 file changed, 151 insertions(+), 97 deletions(-) diff --git a/man1/git-rev-list.1 b/man1/git-rev-list.1 index 0d0c4e763..9345c5584 100755 --- a/man1/git-rev-list.1 +++ b/man1/git-rev-list.1 @@ -1,27 +1,16 @@ -.\"Generated by db2man.xsl. Don't modify this, modify the source. -.de Sh \" Subsection -.br -.if t .Sp -.ne 5 -.PP -\fB\\$1\fR -.PP -.. -.de Sp \" Vertical space (when we can't use .PP) -.if t .sp .5v -.if n .sp -.. -.de Ip \" List item -.br -.ie \\n(.$>=3 .ne \\$3 -.el .ne 3 -.IP "\\$1" \\$2 -.. -.TH "GIT-REV-LIST" 1 "" "" "" -.SH NAME -git-rev-list \- Lists commit objects in reverse chronological order +.\" ** You probably do not want to edit this file directly ** +.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1). +.\" Instead of manually editing it, you probably should edit the DocBook XML +.\" source for it and then use the DocBook XSL Stylesheets to regenerate it. +.TH "GIT\-REV\-LIST" "1" "09/03/2006" "" "" +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.SH "NAME" +git\-rev\-list \- Lists commit objects in reverse chronological order .SH "SYNOPSIS" - +.sp .nf \fIgit\-rev\-list\fR [ \-\-max\-count=number ] [ \-\-max\-age=timestamp ] @@ -37,110 +26,175 @@ git-rev-list \- Lists commit objects in reverse chronological order [ \-\-pretty | \-\-header ] [ \-\-bisect ] [ \-\-merge ] - ... [ \-\- ... ] + \&... [ \-\- \&... ] .fi - .SH "DESCRIPTION" - - -Lists commit objects in reverse chronological order starting at the given commit(s), taking ancestry relationship into account\&. This is useful to produce human\-readable log output\&. - - -Commits which are stated with a preceding \fI^\fR cause listing to stop at that point\&. Their parents are implied\&. "git\-rev\-list foo bar ^baz" thus means "list all the commits which are included in \fIfoo\fR and \fIbar\fR, but not in \fIbaz\fR"\&. - - -A special notation \&.\&. can be used as a short\-hand for ^ \&. - - -Another special notation is ... which is useful for merges\&. The resulting set of commits is the symmetric difference between the two operands\&. The following two commands are equivalent: - +Lists commit objects in reverse chronological order starting at the given commit(s), taking ancestry relationship into account. This is useful to produce human\-readable log output. +.sp +Commits which are stated with a preceding \fI^\fR cause listing to stop at that point. Their parents are implied. Thus the following command: +.sp +.sp .nf -$ git\-rev\-list A B \-\-not $(git\-merge\-base \-\-all A B) -$ git\-rev\-list A\&.\&.\&.B + $ git\-rev\-list foo bar ^baz .fi - +means "list all the commits which are included in \fIfoo\fR and \fIbar\fR, but not in \fIbaz\fR". +.sp +A special notation "\fI\fR..\fI\fR" can be used as a short\-hand for "^\fI\fR \fI\fR". For example, either of the following may be used interchangeably: +.sp +.sp +.nf + $ git\-rev\-list origin..HEAD + $ git\-rev\-list HEAD ^origin +.fi +Another special notation is "\fI\fR\&...\fI\fR" which is useful for merges. The resulting set of commits is the symmetric difference between the two operands. The following two commands are equivalent: +.sp +.sp +.nf + $ git\-rev\-list A B \-\-not $(git\-merge\-base \-\-all A B) + $ git\-rev\-list A...B +.fi +\fBgit\-rev\-list\fR(1) is a very essential git program, since it provides the ability to build and traverse commit ancestry graphs. For this reason, it has a lot of different options that enables it to be used by commands as different as \fBgit\-bisect\fR(1) and \fBgit\-repack\fR(1). +.sp .SH "OPTIONS" - +.SS "Commit Formatting" +Using these options, \fBgit\-rev\-list\fR(1) will act similar to the more specialized family of commit log tools: \fBgit\-log\fR(1), \fBgit\-show\fR(1), and \fBgit\-whatchanged\fR(1) +.sp +.TP +\-\-pretty[=\fI\fR] +Pretty print the contents of the commit logs in a given format, where +\fI\fR +can be one of +\fIraw\fR, +\fImedium\fR, +\fIshort\fR, +\fIfull\fR, and +\fIoneline\fR. When left out the format default to +\fImedium\fR. .TP -\-\-pretty -Print the contents of the commit changesets in human\-readable form\&. - +\-\-relative\-date +Show dates relative to the current time, e.g. "2 hours ago". Only takes effect for dates shown in human\-readable format, such as when using "\-\-pretty". .TP \-\-header -Print the contents of the commit in raw\-format; each record is separated with a NUL character\&. - +Print the contents of the commit in raw\-format; each record is separated with a NUL character. .TP \-\-parents -Print the parents of the commit\&. - +Print the parents of the commit. +.SS "Diff Formatting" +Below are listed options that control the formatting of diff output. Some of them are specific to \fBgit\-rev\-list\fR(1), however other diff options may be given. See \fBgit\-diff\-files\fR(1) for more options. +.sp .TP -\-\-objects -Print the object IDs of any object referenced by the listed commits\&. \fIgit\-rev\-list \-\-objects foo ^bar\fR thus means "send me all object IDs which I need to download if I have the commit object \fIbar\fR, but not \fIfoo\fR"\&. - +\-c +This flag changes the way a merge commit is displayed. It shows the differences from each of the parents to the merge result simultaneously instead of showing pairwise diff between a parent and the result one at a time. Furthermore, it lists only files which were modified from all parents. .TP -\-\-objects\-edge -Similar to \-\-objects, but also print the IDs of excluded commits prefixed with a \- character\&. This is used by git\-pack\-objects to build \fIthin\fR pack, which records objects in deltified form based on objects contained in these excluded commits to reduce network traffic\&. - +\-\-cc +This flag implies the +\fI\-c\fR +options and further compresses the patch output by omitting hunks that show differences from only one parent, or show the same change from all but one parent for an Octopus merge. .TP -\-\-unpacked -Only useful with \-\-objects; print the object IDs that are not in packs\&. - +\-r +Show recursive diffs. .TP -\-\-bisect -Limit output to the one commit object which is roughly halfway between the included and excluded commits\&. Thus, if \fIgit\-rev\-list \-\-bisect foo ^bar ^baz\fR outputs \fImidpoint\fR, the output of \fIgit\-rev\-list foo ^midpoint\fR and \fIgit\-rev\-list midpoint ^bar ^baz\fR would be of roughly the same length\&. Finding the change which introduces a regression is thus reduced to a binary search: repeatedly generate and test new 'midpoint's until the commit chain is of length one\&. - +\-t +Show the tree objects in the diff output. This implies +\fI\-r\fR. +.SS "Commit Limiting" +Besides specifying a range of commits that should be listed using the special notations explained in the description, additional commit limiting may be applied. +.sp .TP -\-\-max\-count -Limit the number of commits output\&. - +\-n \fInumber\fR, \-\-max\-count=\fInumber\fR +Limit the number of commits output. .TP -\-\-max\-age=timestamp, \-\-min\-age=timestamp -Limit the commits output to specified time range\&. - +\-\-since=\fIdate\fR, \-\-after=\fIdate\fR +Show commits more recent than a specific date. .TP -\-\-sparse -When optional paths are given, the command outputs only the commits that changes at least one of them, and also ignores merges that do not touch the given paths\&. This flag makes the command output all eligible commits (still subject to count and age limitation), but apply merge simplification nevertheless\&. - +\-\-until=\fIdate\fR, \-\-before=\fIdate\fR +Show commits older than a specific date. +.TP +\-\-max\-age=\fItimestamp\fR, \-\-min\-age=\fItimestamp\fR +Limit the commits output to specified time range. .TP \-\-remove\-empty -Stop when a given path disappears from the tree\&. - +Stop when a given path disappears from the tree. .TP \-\-no\-merges -Do not print commits with more than one parent\&. - +Do not print commits with more than one parent. .TP \-\-not -Reverses the meaning of the \fI^\fR prefix (or lack thereof) for all following revision specifiers, up to the next \-\-not\&. - +Reverses the meaning of the +\fI^\fR +prefix (or lack thereof) for all following revision specifiers, up to the next +\fI\-\-not\fR. .TP \-\-all -Pretend as if all the refs in $GIT_DIR/refs/ are listed on the command line as \&. - +Pretend as if all the refs in +$GIT_DIR/refs/ +are listed on the command line as +\fI\fR. +.TP +\-\-merge +After a failed merge, show refs that touch files having a conflict and don't exist on all heads to merge. +.TP +\-\-boundary +Output uninteresting commits at the boundary, which are usually not shown. +.TP +\-\-dense, \-\-sparse +When optional paths are given, the default behaviour (\fI\-\-dense\fR) is to only output commits that changes at least one of them, and also ignore merges that do not touch the given paths. +.sp +Use the +\fI\-\-sparse\fR +flag to makes the command output all eligible commits (still subject to count and age limitation), but apply merge simplification nevertheless. +.TP +\-\-bisect +Limit output to the one commit object which is roughly halfway between the included and excluded commits. Thus, if +.sp +.nf + $ git\-rev\-list \-\-bisect foo ^bar ^baz +.fi +outputs +\fImidpoint\fR, the output of the two commands +.sp +.nf + $ git\-rev\-list foo ^midpoint + $ git\-rev\-list midpoint ^bar ^baz +.fi +would be of roughly the same length. Finding the change which introduces a regression is thus reduced to a binary search: repeatedly generate and test new 'midpoint's until the commit chain is of length one. +.SS "Commit Ordering" +By default, the commits are shown in reverse chronological order. +.sp .TP \-\-topo\-order -By default, the commits are shown in reverse chronological order\&. This option makes them appear in topological order (i\&.e\&. descendant commits are shown before their parents)\&. - +This option makes them appear in topological order (i.e. descendant commits are shown before their parents). .TP -\-\-merge -After a failed merge, show refs that touch files having a conflict and don't exist on all heads to merge\&. - +\-\-date\-order +This option is similar to +\fI\-\-topo\-order\fR +in the sense that no parent comes before all of its children, but otherwise things are still ordered in the commit timestamp order. +.SS "Object Traversal" +These options are mostly targeted for packing of git repositories. +.sp .TP -\-\-relative\-date -Show dates relative to the current time, e\&.g\&. "2 hours ago"\&. Only takes effect for dates shown in human\-readable format, such as when using "\-\-pretty"\&. - +\-\-objects +Print the object IDs of any object referenced by the listed commits. +\fIgit\-rev\-list \-\-objects foo ^bar\fR +thus means "send me all object IDs which I need to download if I have the commit object +\fIbar\fR, but not +\fIfoo\fR". +.TP +\-\-objects\-edge +Similar to +\fI\-\-objects\fR, but also print the IDs of excluded commits prefixed with a "\-" character. This is used by +\fBgit\-pack\-objects\fR(1) +to build "thin" pack, which records objects in deltified form based on objects contained in these excluded commits to reduce network traffic. +.TP +\-\-unpacked +Only useful with +\fI\-\-objects\fR; print the object IDs that are not in packs. .SH "AUTHOR" - - -Written by Linus Torvalds - +Written by Linus Torvalds +.sp .SH "DOCUMENTATION" - - -Documentation by David Greaves, Junio C Hamano and the git\-list \&. - +Documentation by David Greaves, Junio C Hamano, Jonas Fonseca and the git\-list . +.sp .SH "GIT" - - Part of the \fBgit\fR(7) suite - +.sp -- 2.26.2