This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # git ls-files - Get me all the tracked files in the repo. | |
| # xargs -I file sh -c ' echo $(...) file' - For each file, echo a subcommand appended by the filename. | |
| # git log -1 --format=%ct file - Get the last-commit date for a file. | |
| # sort -n - sort the output! | |
| # > files-with-last-commit-dates - Write it to another file. | |
| git ls-files | xargs -I file sh -c 'echo $(git log -1 --format=%ct file) file' | sort -n > files-with-last-commit-dates |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment