各コミットに割り当てられるSHA1は長いので、その頭数桁をabbreviated commit hash/commit checksumなどと呼びます。適当な長さで良いようです:ex. 7-8桁。
数桁って何桁やねん!と思って探したのですが、見つけられませんでした。そういえば昔何かのlibraryの作者にバグ報告したときに、githubのコミットSHA1の頭五桁を送ってくれって言われたことがありました。ということで適当でいいみたいですね。この適当さ加減が良い。そしてそういう風にも使えるのですね。
このhashはtag設定時等に指定できます:
shell>>
% git tag -a v1.1 0d86f96 -m "version 1.1"
% git show fb47ddb2
<<--
Pretty formatsのformatに記述されていました: abbreviated commit hash
%h: abbreviated commit hash
http://www.kernel.org/pub/software/scm/git/docs/git-show.html#_pretty_formats
learn.githubでタグ時の説明に:commit checksum
And I forgot to tag the project at ‘v1.2’, which was at the ‘updated rakefile’ commit, I can add it after the fact. To tag that commit, you can just specify the commit checksum (or part of it) at the end of the command.
$ git tag -a v1.2 9fceb02
http://learn.github.com/p/tagging.html#tagging_later
答えは、最低四桁、でもリポジトリ内でオブジェクトを一意に同定できるに十分なケタ数がないといけません。