summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-08-08 21:48:37 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-08-08 21:48:37 (GMT)
commit0d3279962acab475a523cfde04a79761ff12f147 (patch)
treefad754df313d62263ae9e316ff2a50ae603be71c /t
parent4c30ad8cc6d8eef7663336aa6345c631fa1f535d (diff)
parent442f6fd3d6272b1c7b92e0a24b4be1cf162b4d04 (diff)
downloadgit-0d3279962acab475a523cfde04a79761ff12f147.zip
git-0d3279962acab475a523cfde04a79761ff12f147.tar.gz
git-0d3279962acab475a523cfde04a79761ff12f147.tar.bz2
Merge branch 'jk/reflog-date'
The reflog output format is documented better, and a new format --date=unix to report the seconds-since-epoch (without timezone) has been added. * jk/reflog-date: date: clarify --date=raw description date: add "unix" format date: document and test "raw-local" mode doc/pretty-formats: explain shortening of %gd doc/pretty-formats: describe index/time formats for %gd doc/rev-list-options: explain "-g" output formats doc/rev-list-options: clarify "commit@{Nth}" for "-g" option
Diffstat (limited to 't')
-rwxr-xr-xt/t0006-date.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/t0006-date.sh b/t/t0006-date.sh
index 4c8cf58..c0c9108 100755
--- a/t/t0006-date.sh
+++ b/t/t0006-date.sh
@@ -46,7 +46,10 @@ check_show rfc2822 "$TIME" 'Wed, 15 Jun 2016 16:13:20 +0200'
check_show short "$TIME" '2016-06-15'
check_show default "$TIME" 'Wed Jun 15 16:13:20 2016 +0200'
check_show raw "$TIME" '1466000000 +0200'
+check_show unix "$TIME" '1466000000'
check_show iso-local "$TIME" '2016-06-15 14:13:20 +0000'
+check_show raw-local "$TIME" '1466000000 +0000'
+check_show unix-local "$TIME" '1466000000'
# arbitrary time absurdly far in the future
FUTURE="5758122296 -0400"