Skip to content

Instantly share code, notes, and snippets.

@oneandoneis2
oneandoneis2 / gist:10258063
Created April 9, 2014 11:33
git-ls = list files in current directory, with date each was last modified in the current branch. Pipe to 'sort -r' for "ls -lt" equivalent
_git-ls () {
for gitfile in $(git ls-tree --name-only HEAD);
do
echo "$( git log -1 --format="%ad %ae" --date=iso -- $gitfile ) $gitfile"
done
}
git-ls () {
_git-ls | column -t
}