From 462cbb415e41aa890e78a30a5cc29558baa80b23 Mon Sep 17 00:00:00 2001 From: Ramsay Jones Date: Fri, 27 May 2016 16:56:02 +0100 Subject: log: document the --decorate=auto option Signed-off-by: Ramsay Jones Signed-off-by: Junio C Hamano --- Documentation/git-log.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Documentation/git-log.txt') diff --git a/Documentation/git-log.txt b/Documentation/git-log.txt index 1f7bc67d6c..9a9f67c8b0 100644 --- a/Documentation/git-log.txt +++ b/Documentation/git-log.txt @@ -29,12 +29,14 @@ OPTIONS (works only for a single file). --no-decorate:: ---decorate[=short|full|no]:: +--decorate[=short|full|auto|no]:: Print out the ref names of any commits that are shown. If 'short' is specified, the ref name prefixes 'refs/heads/', 'refs/tags/' and 'refs/remotes/' will not be printed. If 'full' is specified, the - full ref name (including prefix) will be printed. The default option - is 'short'. + full ref name (including prefix) will be printed. If 'auto' is + specified, then if the output is going to a terminal, the ref names + are shown as if 'short' were given, otherwise no ref names are + shown. The default option is 'short'. --source:: Print out the ref name given on the command line by which each -- cgit v1.3-6-g1900