From 0741c78ecf4d307f1d46b55cd4e69b24fac13f2e Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Tue, 28 Aug 2007 06:25:41 +0000 Subject: [PATCH] Autogenerated manpages for v1.5.3-rc6-54-g9277 --- man1/git-diff.1 | 38 +++++++++++++++++++++++++++++--------- man1/git-tag.1 | 8 +------- man7/git.7 | 4 ++-- 3 files changed, 32 insertions(+), 18 deletions(-) diff --git a/man1/git-diff.1 b/man1/git-diff.1 index 5cbab79c1..bda779356 100644 --- a/man1/git-diff.1 +++ b/man1/git-diff.1 @@ -2,7 +2,7 @@ .\" 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\-DIFF" "1" "08/02/2007" "Git 1.5.3.rc3.120.g68d422" "Git Manual" +.TH "GIT\-DIFF" "1" "08/28/2007" "Git 1.5.3.rc6.54.g9277" "Git Manual" .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) @@ -16,12 +16,8 @@ Show changes between two trees, a tree and the working tree, a tree and the inde .TP \fIgit\-diff\fR [\-\-options] [\-\-] [\&...] This form is to view the changes you made relative to the index (staging area for the next commit). In other words, the differences are what you _could_ tell git to further add to the index but you still haven't. You can stage these changes by using \fBgit\-add\fR(1). -.sp -.nf -If exactly two paths are given, and at least one is untracked, -compare the two files / directories. This behavior can be -forced by \-\-no\-index. -.fi + +If exactly two paths are given, and at least one is untracked, compare the two files / directories. This behavior can be forced by \-\-no\-index. .TP \fIgit\-diff\fR [\-\-options] \-\-cached [] [\-\-] [\&...] This form is to view the changes you staged for the next commit relative to the named . Typically you would want comparison with the latest commit, so if you do not give , it defaults to HEAD. @@ -30,11 +26,17 @@ This form is to view the changes you staged for the next commit relative to the This form is to view the changes you have in your working tree relative to the named . You can use HEAD to compare it with the latest commit, or a branch name to compare with the tip of a different branch. .TP \fIgit\-diff\fR [\-\-options] [\-\-] [\&...] -This form is to view the changes between two , for example, tips of two branches. +This is to view the changes between two arbitrary . +.TP +\fIgit\-diff\fR [\-\-options] .. [\-\-] [\&...] +This is synonymous to the previous form. If on one side is omitted, it will have the same effect as using HEAD instead. +.TP +\fIgit\-diff\fR [\-\-options] \&... [\-\-] [\&...] +This form is to view the changes on the branch containing and up to the second , starting at a common ancestor of both . "git\-diff A\&...B" is equivalent to "git\-diff $(git\-merge\-base A B) B". You can omit any one of , which has the same effect as using HEAD instead. Just in case if you are doing something exotic, it should be noted that all of the in the above description can be any . -For a more complete list of ways to spell , see "SPECIFYING REVISIONS" section in \fBgit\-rev\-parse\fR(1). +For a more complete list of ways to spell , see "SPECIFYING REVISIONS" section in \fBgit\-rev\-parse\fR(1). However, "diff" is about comparing two _endpoints_, not ranges, and the range notations (".." and "\&...") do not mean a range as defined in the "SPECIFYING RANGES" section in \fBgit\-rev\-parse\fR(1). .SH "OPTIONS" .TP \-p @@ -211,6 +213,24 @@ $ git diff HEAD^ HEAD \fB(3)\fR \fB3. \fRCompare the version before the last commit and the last commit. .br .TP +Comparing branches +.sp +.nf +.ft C +$ git diff topic master \fB(1)\fR +$ git diff topic..master \fB(2)\fR +$ git diff topic...master \fB(3)\fR +.ft + +.fi +.sp +\fB1. \fRChanges between the tips of the topic and the master branches. +.br +\fB2. \fRSame as above. +.br +\fB3. \fRChanges that occured on the master branch since when the topic branch was started off it. +.br +.TP Limiting the diff output .sp .nf diff --git a/man1/git-tag.1 b/man1/git-tag.1 index ac6cf32aa..39b11ff14 100644 --- a/man1/git-tag.1 +++ b/man1/git-tag.1 @@ -2,7 +2,7 @@ .\" 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\-TAG" "1" "08/11/2007" "Git 1.5.3.rc4.67.gf9286" "Git Manual" +.TH "GIT\-TAG" "1" "08/28/2007" "Git 1.5.3.rc6.54.g9277" "Git Manual" .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) @@ -27,12 +27,6 @@ If one of \-a, \-s, or \-u is passed, the command creates a \fItag\fR Otherwise just the SHA1 object name of the commit object is written (i.e. a lightweight tag). A GnuPG signed tag object will be created when \-s or \-u is used. When \-u is not used, the committer identity for the current user is used to find the GnuPG key for signing. - -\-d deletes the tag. - -\-v verifies the gpg signature of the tag. - -\-l lists tags with names that match the given pattern (or all if no pattern is given). .SH "OPTIONS" .TP \-a diff --git a/man7/git.7 b/man7/git.7 index fd04962f6..06453f555 100644 --- a/man7/git.7 +++ b/man7/git.7 @@ -2,7 +2,7 @@ .\" 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" "7" "08/21/2007" "Git 1.5.3.rc5.46.g23d5" "Git Manual" +.TH "GIT" "7" "08/28/2007" "Git 1.5.3.rc6.54.g9277" "Git Manual" .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) @@ -49,7 +49,7 @@ Set the path to the repository. This can also be controlled by setting the GIT_D Set the path to the working tree. The value will not be used in combination with repositories found automatically in a .git directory (i.e. $GIT_DIR is not set). This can also be controlled by setting the GIT_WORK_TREE environment variable and the core.worktree configuration variable. .TP \-\-bare -Same as \-\-git\-dir=pwd. +Treat the repository as a bare repository. If GIT_DIR environment is not set, it is set to the current working directory. .SH "FURTHER DOCUMENTATION" See the references above to get started using git. The following is probably more detail than necessary for a first\-time user. -- 2.26.2