summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d43c07b)
raw | patch | inline | side by side (parent: d43c07b)
author | Nanako Shiraishi <nanako3@lavabit.com> | |
Tue, 24 Feb 2009 09:59:14 +0000 (18:59 +0900) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 25 Feb 2009 07:53:36 +0000 (23:53 -0800) |
Some people prefer to call the pretty-print styles "format", and get
annoyed to see "git log --format=short" fail. Introduce it as a synonym
to --pretty so that both can be used.
Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
annoyed to see "git log --format=short" fail. Introduce it as a synonym
to --pretty so that both can be used.
Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/pretty-options.txt | patch | blob | history | |
revision.c | patch | blob | history |
index 5f21efe40745a98eafff7df67a916b1f1193fae4..65960192e8d32dc45e000d0c343350d0cf5e578f 100644 (file)
--pretty[='<format>']::
+--format[='<format>']::
Pretty-print the contents of the commit logs in a given format,
where '<format>' can be one of 'oneline', 'short', 'medium',
diff --git a/revision.c b/revision.c
index 286e416b757fa8df731330992fca96773082f75d..556c3195b4eed3e17df496a5d34537aa98e315c3 100644 (file)
--- a/revision.c
+++ b/revision.c
@@ -1144,7 +1144,7 @@ static int handle_revision_opt(struct rev_info *revs, int argc, const char **arg
} else if (!strcmp(arg, "--pretty")) {
revs->verbose_header = 1;
get_commit_format(arg+8, revs);
- } else if (!prefixcmp(arg, "--pretty=")) {
+ } else if (!prefixcmp(arg, "--pretty=") || !prefixcmp(arg, "--format=")) {
revs->verbose_header = 1;
get_commit_format(arg+9, revs);
} else if (!strcmp(arg, "--graph")) {