happiness (^_^) (^_^) (^_^) (^_^) (^_^) (^_^) (^_^) (^_^) (^_^) (^_^) (^_^) (^_^) happiness

Gitで変更したファイルパスを更新日時順に並べるコマンド

メモにあった。多分どこかから拾ってきたのだろう。 

git ls-files -z | xargs -0 -n1 -I{} -- sh -c 'git log -1 --format="%at {}" {} | tail -1' | sort | cut -d " " -f2-