RSS Amplifier

Tomasino Labs · Nov 14, 2013

git changelist

0
Sign in to vote or save

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!

Read on labs.tomasino.org

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.