summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-08-27 06:13:13 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-08-31 04:04:50 (GMT)
commit146ea068a0434a7423d8b0d77f27ccff0a584ac4 (patch)
tree67a5e1fe2e6125a8209d7f6ce9e5d9eb358954f2 /Documentation
parent53d1589ff6bd336e3ece39e0a963a3d2a537cf96 (diff)
downloadgit-146ea068a0434a7423d8b0d77f27ccff0a584ac4.zip
git-146ea068a0434a7423d8b0d77f27ccff0a584ac4.tar.gz
git-146ea068a0434a7423d8b0d77f27ccff0a584ac4.tar.bz2
git commit --author=$name: look $name up in existing commits
This allows "git commit --author=$name" to accept a name that is not in the required "A U Thor <author@example.xz>" format, and use that to look up an author name that matches from existing commits. When using this feature, it is the user's responsibility to give a name that uniquely matches the name s/he wants, as the logic returns the name from the first matching commit. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-commit.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/Documentation/git-commit.txt b/Documentation/git-commit.txt
index 0e25bb8..eb05b0f 100644
--- a/Documentation/git-commit.txt
+++ b/Documentation/git-commit.txt
@@ -75,8 +75,10 @@ OPTIONS
read the message from the standard input.
--author=<author>::
- Override the author name used in the commit. Use
- `A U Thor <author@example.com>` format.
+ Override the author name used in the commit. You can use the
+ standard `A U Thor <author@example.com>` format. Otherwise,
+ an existing commit that matches the given string and its author
+ name is used.
-m <msg>::
--message=<msg>::