@matheusbsbs / matheus-bagliano / commits / 3334729cf2
Fork 0

commit.txt: clarify how --author argument is used

commit --author was added by 146ea06 (git commit --author=$name: look $name up in existing commits), but its documentation was sorely lacking compared to its excellent commit message. This commit tries to improve the documentation. Signed-off-by: Jay Soffian <jaysoffian@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jay Soffian committed Jun 6, 2010 at 19:31 UTC 3334729cf29605389b51effc1f311656f3fd8086
1 file changed +5 -4
Documentation/git-commit.txt
+5 -4
@@ -95,10 +95,11 @@ OPTIONS
95 read the message from the standard input.
96
97 --author=<author>::
98 - Override the author name used in the commit. You can use the
99 - standard `A U Thor <author@example.com>` format. Otherwise,
100 - an existing commit that matches the given string and its author
101 - name is used.
98 + Override the commit author. Specify an explicit author using the
99 + standard `A U Thor <author@example.com>` format. Otherwise <author>
100 + is assumed to be a pattern and is used to search for an existing
101 + commit by that author (i.e. rev-list --all -i --author=<author>);
102 + the commit author is then copied from the first such commit found.
103
104 --date=<date>::
105 Override the author date used in the commit.