t / t4013 / diff.diff-tree_--patch-with-stat_initialon commit use strbuf_add_unique_abbrev() for adding short hashes (1eb47f1)
   1$ git diff-tree --patch-with-stat initial
   2$