如果我ls-tree
某棵树并获得了 blob 和树的列表,我如何才能发现与这些 blob 和树相关的最后一次提交?我正在寻找这样的东西:
$ git ls-tree HEAD
...
100644 blob 734713bc047d87bf7eac9674765ae793478c50d3 myfile
...
$ git show --commit 734713bc047d87bf7eac9674765ae793478c50d3
commit 734713bc047d87bf7eac9674765ae793478c50d3
Author: Scott Chacon <schacon@gmail.com>
Date: Fri Jan 2 18:32:33 2009 -0800
fixed refs handling, added gc auto, updated tests