diff options
author | Brad King <brad.king@kitware.com> | 2021-04-08 11:53:12 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-04-08 11:53:18 (GMT) |
commit | c35e51936adeb325b51604867c805e1fe3feaf62 (patch) | |
tree | 6ba5761f3da098fc3d5f6dad644aba096d4c35f1 /Help | |
parent | 21f0478ade327c41c011de4b2336f8ad113d400f (diff) | |
parent | f71e7b8156423512f4631f393d955b31557cdd8e (diff) | |
download | CMake-c35e51936adeb325b51604867c805e1fe3feaf62.zip CMake-c35e51936adeb325b51604867c805e1fe3feaf62.tar.gz CMake-c35e51936adeb325b51604867c805e1fe3feaf62.tar.bz2 |
Merge topic 'newer-git-show'
f71e7b8156 Help/dev/review: mention `--pretty=reference`
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5994
Diffstat (limited to 'Help')
-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:`` |