aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2026-07-02 23:32:01 +0200
committerMiquel Sabaté Solà <mssola@mssola.com>2026-07-02 23:32:01 +0200
commit6a7e109cebebea138d0bc6add8bf2ce54ea95959 (patch)
treefbf8fb4b341481483b0f7f85e9fb91fd80604ed9
parent403d60d82d6cc07a34c96480301cf34a55526609 (diff)
downloaddotfiles-6a7e109cebebea138d0bc6add8bf2ce54ea95959.tar.gz
dotfiles-6a7e109cebebea138d0bc6add8bf2ce54ea95959.zip
git: add the 'ref-commit' alias
This goes in tandem with the --pretty=fixes option, and it's useful to reference commits on a commit message. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
-rw-r--r--.gitconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/.gitconfig b/.gitconfig
index a8b8fac..7edfbe4 100644
--- a/.gitconfig
+++ b/.gitconfig
@@ -21,6 +21,7 @@
a = commit -a -s
down = pull --rebase --stat
fpush = push --force-with-lease
+ ref-commit = show -s --abbrev --format='%h (\"%s\")'
[format]
signoff = true