On Feb 8, 2011, at 4:44 AM, Dave Smith wrote: > 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.
Answering my own question from man git-log: You can setup an alias to git log that uses "git log --abbrev-commit", and that seems to provide the magic I want, at least for git-log. The git-reflog already seems to do what I want. Is there anywhere else I should do this? Perhaps not. --Dave /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
