diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2021-04-07 16:28:57 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2021-04-07 16:28:57 (GMT) |
commit | f71e7b8156423512f4631f393d955b31557cdd8e (patch) | |
tree | 73145d04702504add07228b9b16daaa989e2634d /Help/dev/review.rst | |
parent | 46393e8977ed0aba5536e6108c78db07615616ba (diff) | |
download | CMake-f71e7b8156423512f4631f393d955b31557cdd8e.zip CMake-f71e7b8156423512f4631f393d955b31557cdd8e.tar.gz CMake-f71e7b8156423512f4631f393d955b31557cdd8e.tar.bz2 |
Help/dev/review: mention `--pretty=reference`
This was added in Git 2.25 (13 Jan 2020).
Diffstat (limited to 'Help/dev/review.rst')
-rw-r--r-- | Help/dev/review.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Help/dev/review.rst b/Help/dev/review.rst index 8326e70..10ff87b 100644 --- a/Help/dev/review.rst +++ b/Help/dev/review.rst @@ -254,7 +254,8 @@ The preferred form for references to other commits is The author date of the commit, in its original time zone, formatted as ``CCYY-MM-DD``. ``git-log(1)`` shows the original time zone by default. -This may be generated with +This may be generated with ``git show -s --pretty=reference <commit>`` with +Git 2.25 and newer. Older versions of Git can generate the same format via ``git show -s --date=short --pretty="format:%h (%s, %ad)" <commit>``. If the commit is a fix for the mentioned commit, consider using a ``Fixes:`` |