Open All Edited and Uncommitted Files in a Single Command
At the begining of my daily coding job I often find myself in a situation when I got to start with the files edited the previous day. If it's a lenthy feature and many files are touched, most of the times I use git status to check the updated files and start opening them one by one in Textmate. Not a complex task at all but seems boring to me. I decided to spend some time to automate this.
And the following is the single line shell script I came up with.
(mate .;set -v off;for line in $(git status --porcelain|awk '$0=$NF' FS=' ');do;mate $line;done)
This will fire up the TextMate and the opens all the edited or newly created files shows up in git status list.
