summaryrefslogtreecommitdiff
path: root/Documentation/git-log.txt
diff options
context:
space:
mode:
authorStephen P. Smith <ischis2@cox.net>2019-01-21 05:31:10 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-01-22 22:16:17 (GMT)
commit038a87881067a629c79e70db41ef9a427ecbe223 (patch)
tree7629e6beae118ac3e3dcae1b447d001597cfb461 /Documentation/git-log.txt
parent2fd7c22992d37469db957e9a4d3884a6c0a4d182 (diff)
downloadgit-038a87881067a629c79e70db41ef9a427ecbe223.zip
git-038a87881067a629c79e70db41ef9a427ecbe223.tar.gz
git-038a87881067a629c79e70db41ef9a427ecbe223.tar.bz2
Add 'human' date format documentation
Display date and time information in a format similar to how people write dates in other contexts. If the year isn't specified then, the reader infers the date is given is in the current year. By not displaying the redundant information, the reader concentrates on the information that is different. The patch reports relative dates based on information inferred from the date on the machine running the git command at the time the command is executed. While the format is more useful to humans by dropping inferred information, there is nothing that makes it actually human. If the 'relative' date format wasn't already implemented then using 'relative' would have been appropriate. Signed-off-by: Stephen P. Smith <ischis2@cox.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-log.txt')
-rw-r--r--Documentation/git-log.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/git-log.txt b/Documentation/git-log.txt
index 90761f1..b02e922 100644
--- a/Documentation/git-log.txt
+++ b/Documentation/git-log.txt
@@ -192,6 +192,10 @@ log.date::
Default format for human-readable dates. (Compare the
`--date` option.) Defaults to "default", which means to write
dates like `Sat May 8 19:35:34 2010 -0500`.
++
+If the format is set to "auto:foo" and the pager is in use, format
+"foo" will be the used for the date format. Otherwise "default" will
+be used.
log.follow::
If `true`, `git log` will act as if the `--follow` option was used when