Last active
December 8, 2015 17:06
-
-
Save roberto/d2ad320fee44381b29bc to your computer and use it in GitHub Desktop.
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
[alias] | |
# keep working (it opens current changed files) | |
kw = !git status --porcelain --ignore-submodules | awk '$1 != "D" { print $2}' | xargs $EDITOR | |
# previous work (it opens changed files from previous commit) | |
pw = !git log -1 --raw | grep ^: | awk '$5 != "D" { print $6}' | xargs $EDITOR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://explainshell.com/explain?cmd=git+status+--porcelain+--ignore-submodules+%7C+awk+%27%241+%21%3D+%22D%22+%7B+print+%242%7D%27+%7C+xargs+%24EDITOR
http://explainshell.com/explain?cmd=git+log+-1+--raw+%7C+grep+%5E%3A+%7C+awk+%27%245+%21%3D+%22D%22+%7B+print+%246%7D%27+%7C+xargs+%24EDITOR
There's a lot of room for improvement