summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-04-07 21:33:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-04-07 21:33:06 (GMT)
commit60eea92b506821ec957b2ab331dcd2009b0259f1 (patch)
tree927af818bd2d252bd24cb293cf42c96ff4c985af /Documentation
parent41e9da40a839597bbc49b6d9d3194b28c63f7dba (diff)
parentaa7b8c657e407a10cbee728264ec48be16ea4e3d (diff)
downloadgit-60eea92b506821ec957b2ab331dcd2009b0259f1.zip
git-60eea92b506821ec957b2ab331dcd2009b0259f1.tar.gz
git-60eea92b506821ec957b2ab331dcd2009b0259f1.tar.bz2
Merge branch 'cn/commit-amend-doc'
* cn/commit-amend-doc: Documentation/git-commit: reword the --amend explanation
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-commit.txt17
1 files changed, 9 insertions, 8 deletions
diff --git a/Documentation/git-commit.txt b/Documentation/git-commit.txt
index 05f8297..9b1be55 100644
--- a/Documentation/git-commit.txt
+++ b/Documentation/git-commit.txt
@@ -207,14 +207,15 @@ variable (see linkgit:git-config[1]).
without changing its commit message.
--amend::
- Used to amend the tip of the current branch. Prepare the tree
- object you would want to replace the latest commit as usual
- (this includes the usual -i/-o and explicit paths), and the
- commit log editor is seeded with the commit message from the
- tip of the current branch. The commit you create replaces the
- current tip -- if it was a merge, it will have the parents of
- the current tip as parents -- so the current top commit is
- discarded.
+ Replace the tip of the current branch by creating a new
+ commit. The recorded tree is prepared as usual (including
+ the effect of the `-i` and `-o` options and explicit
+ pathspec), and the message from the original commit is used
+ as the starting point, instead of an empty message, when no
+ other message is specified from the command line via options
+ such as `-m`, `-F`, `-c`, etc. The new commit has the same
+ parents and author as the current one (the `--reset-author`
+ option can countermand this).
+
--
It is a rough equivalent for: