Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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
commit3084dc166b8dade44eb4d8f3dc0ee2ddb25a7ef6 (patch)
tree9ffaa0aa21a9bb81de81c57ffe9738d6d6c91bee /STYLE.md
parent17ff33207e3c0543f3e12e690131a8003bf2c84d (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.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/STYLE.md b/STYLE.md
index f8fde112c..cfec09ccc 100644
--- a/STYLE.md
+++ b/STYLE.md
@@ -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