Created
August 15, 2009 18:16
-
-
Save rip747/168418 to your computer and use it in GitHub Desktop.
exportfiles for git
This file contains hidden or 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
exportfiles = !sh -c 'git diff $0 --name-only | "while read files; do mkdir -p \"$1/$(dirname $files)\"; cp -vf $files $1/$(dirname $files); done"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That is awesome, but it does not handle paths with spaces.
Any improvements of that problem?