On Tue, Jan 11 2022, Taylor Blau wrote: > On Mon, Jan 10, 2022 at 07:00:59PM +0100, Ævar Arnfjörð Bjarmason wrote: >> On Thu, Jan 06 2022, Teng Long wrote: >> > The original rule was introduced by commit: >> > >> > https://github.com/git/git/commit/28c23cd4c3902449aff72cb9a4a703220be0d6ac >> >> Let's refer to commits like this: >> >> 28c23cd4c39 (strbuf.cocci: suggest strbuf_addbuf() to add one strbuf to an other, 2019-01-25) > > I find it helpful to have an alias like: > > $ git config alias.ll > !git always --no-pager log -1 --pretty='tformat:%h (%s, %ad)' --date=short > > in my $HOME/.gitconfig so that I can easily format commits in the > standard way. > > I think that this alias came from Peff, but I can't remember. Nowadays you can do this as: git show -s --pretty=reference See Documentation/SubmittingPatches I use: $ git help reference 'reference' is aliased to '!git --no-pager log --pretty=reference -1'