summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3fb0028)
raw | patch | inline | side by side (parent: 3fb0028)
author | J. Bruce Fields <bfields@citi.umich.edu> | |
Mon, 19 Nov 2007 00:18:27 +0000 (19:18 -0500) | ||
committer | J. Bruce Fields <bfields@citi.umich.edu> | |
Mon, 19 Nov 2007 00:22:26 +0000 (19:22 -0500) |
We should mention the use of the "..." syntax for git-diff here. The
note about the difference between diff and the combined output of
git-format-patch then no longer fits so well, so remove it. Add a
reference to the git-format-patch[1] manpage.
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
note about the difference between diff and the combined output of
git-format-patch then no longer fits so well, so remove it. Add a
reference to the git-format-patch[1] manpage.
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Documentation/user-manual.txt | patch | blob | history |
index e399685d6c03ba3c10375c7a95f5c0192cf9aa5e..c0273533370ac0e5365146ce82b27bc7dfa9862d 100644 (file)
$ git diff master..test
-------------------------------------------------
-Sometimes what you want instead is a set of patches:
+That will produce the diff between the tips of the two branches. If
+you'd prefer to find the diff from their common ancestor to test, you
+can use three dots instead of two:
+
+-------------------------------------------------
+$ git diff master...test
+-------------------------------------------------
+
+Sometimes what you want instead is a set of patches; for this you can
+use gitlink:git-format-patch[1]:
-------------------------------------------------
$ git format-patch master..test
-------------------------------------------------
will generate a file with a patch for each commit reachable from test
-but not from master. Note that if master also has commits which are
-not reachable from test, then the combined result of these patches
-will not be the same as the diff produced by the git-diff example.
+but not from master.
[[viewing-old-file-versions]]
Viewing old file versions