From 3a4c1a5e212357c3df030b6713c75466694c2e77 Mon Sep 17 00:00:00 2001 From: Nanako Shiraishi Date: Tue, 24 Feb 2009 18:59:14 +0900 Subject: Add --format that is a synonym to --pretty 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 Signed-off-by: Junio C Hamano --- Documentation/pretty-options.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'Documentation/pretty-options.txt') diff --git a/Documentation/pretty-options.txt b/Documentation/pretty-options.txt index 5f21efe407..65960192e8 100644 --- a/Documentation/pretty-options.txt +++ b/Documentation/pretty-options.txt @@ -1,4 +1,5 @@ --pretty[='']:: +--format[='']:: Pretty-print the contents of the commit logs in a given format, where '' can be one of 'oneline', 'short', 'medium', -- cgit v1.2.3 From de84accc59baef73f7827d59f0d479521ecad937 Mon Sep 17 00:00:00 2001 From: Nanako Shiraishi Date: Tue, 24 Feb 2009 18:59:16 +0900 Subject: Add --oneline that is a synonym to "--pretty=oneline --abbrev-commit" These two are often used together but are too long to type. Signed-off-by: Nanako Shiraishi Signed-off-by: Junio C Hamano --- Documentation/pretty-options.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Documentation/pretty-options.txt') diff --git a/Documentation/pretty-options.txt b/Documentation/pretty-options.txt index 65960192e8..bff94991b6 100644 --- a/Documentation/pretty-options.txt +++ b/Documentation/pretty-options.txt @@ -18,6 +18,10 @@ configuration (see linkgit:git-config[1]). This should make "--pretty=oneline" a whole lot more readable for people using 80-column terminals. +--oneline:: + This is a shorthand for "--pretty=oneline --abbrev-commit" + used together. + --encoding[=]:: The commit objects record the encoding used for the log message in their encoding header; this option can be used to tell the -- cgit v1.2.3