Configuring git to always show short SHAs?

Dave Smith dave at thesmithfam.org
Tue Feb 8 04:44:48 MST 2011


Is it possible to configure git to always display a short SHA (e.g., "a4fdc81"), such that it appears everywhere in that form, particularly in "git log"? I know about %h (vs. %H), but I just want to "set it and forget it" such that anywhere I could possibly see a commit SHA in git's output, it uses the short version.

I've tried googling every combination of this question I can think of.

--Dave


More information about the PLUG mailing list