mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 06:09:14 -05:00
Help/dev/review: mention --pretty=reference
This was added in Git 2.25 (13 Jan 2020).
This commit is contained in:
+2
-1
@@ -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
|
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.
|
``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>``.
|
``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:``
|
If the commit is a fix for the mentioned commit, consider using a ``Fixes:``
|
||||||
|
|||||||
Reference in New Issue
Block a user