This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.
Today I needed to get a list of all the files that had changed in a git repository over the last two weeks. I played around with some great git commands, awk and sort to make the following git alias (toss it in the [Alias] block of your .gitconfig): changelist = '!git whatchanged --since='\$1' --oneline | awk '/\^:/ {print \$6}' | sort -u; \#' To use: git changelist '2 weeks ago' You can use a lot…
Today I needed to get a list of all the files that had changed in a git
repository over the last two weeks. I played around with some great git
commands, awk and sort to make the following git alias (toss it in the
[Alias] block of your .gitconfig):
changelist = "!git whatchanged --since='\$1' --oneline | awk '/\^:/ {print \$6}' | sort -u; \#"
To use:
git changelist "2 weeks ago"
You can use a lot of different unix date formats in there.
Enjoy!
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.