Hot answers tagged

1

This is a small tweak of Andrew M.'s answer. (I was unable to comment on his answer.) Wrap the first $filename in double quotes, in order to support filenames with embedded spaces. git ls-tree -r --name-only HEAD | while read filename; do echo "$(git log -1 --format="%ad" -- "$filename") $filename" done Sample output: Tue Jun 21 11:38:43 2016 -0600 ...



Only top voted, non community-wiki answers of a minimum length are eligible