How to find out the last linked command based on blob / tree hash?

If I have a ls-treespecific tree and get a list of blobs and trees, how can I find out the last message related to these blobs and trees? I am looking for something like this:

$ 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
+5
source share
1 answer

I'm a little confused. I don’t understand why you need it. But I think this is what you want -

git ls-tree --name-only HEAD | while read file; do git log -n 1 --date=short --pretty="$file, author: %an, commit: %h, date: %ad, msg: '%s'" -- $file; done
+3
source

All Articles