diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2020-12-03 19:46:04 +0300 |
---|---|---|
committer | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2020-12-03 19:46:04 +0300 |
commit | 3084dc166b8dade44eb4d8f3dc0ee2ddb25a7ef6 (patch) | |
tree | 9ffaa0aa21a9bb81de81c57ffe9738d6d6c91bee /STYLE.md | |
parent | 17ff33207e3c0543f3e12e690131a8003bf2c84d (diff) |
style: use a better alias for "git reference"
Since v2.25.0 of git you've been able to use this way of doing it. See
git-vcs/git@1f0fc1db85 (pretty: implement 'reference' format,
2019-11-19).
So let's use that example, and while I'm at it change the SHA-1 in the
example here to the one that landed in the repo, not some pre-rebase
version that was only in @pks-t's local repo.
Diffstat (limited to 'STYLE.md')
-rw-r--r-- | STYLE.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -490,9 +490,9 @@ followed by the commit subject and the commit date. You may create an alias for this to have it easily available: ``` -$ git config alias.reference "log -1 --pretty='tformat:%h (%s, %ad)' --date=short" +$ git config alias.reference "show -s --pretty=reference" $ git reference HEAD -b981a648 (style: Document best practices for commit hygiene, 2020-11-20) +cf7f9ffe5 (style: Document best practices for commit hygiene, 2020-11-20) ``` ### Use interactive rebases to shape your commit series |