From: Michal Sojka Date: Sat, 14 Mar 2015 13:15:37 +0000 (+0100) Subject: Update uncrustify script to be usable in git-filter-branch X-Git-Url: https://rtime.felk.cvut.cz/gitweb/orte.git/commitdiff_plain/dbc052094196bcf7fab8a3580df72052929fd29b Update uncrustify script to be usable in git-filter-branch Now, it is possible to use 'git filter-branch --tree-filter orte/uncrustify'. --- diff --git a/orte/uncrustify b/orte/uncrustify index e4a30fd..a15cb36 100755 --- a/orte/uncrustify +++ b/orte/uncrustify @@ -12,5 +12,5 @@ UNCRUSTIFY_CFG=${UNCRUSTIFY_CFG:-$0.cfg} git ls-files|git check-attr --stdin uncrustify|awk -F: '/uncrustify: set$/ {print $1}'|\ while read file; do - git show HEAD:$file | (set -x; uncrustify -c $UNCRUSTIFY_CFG -o $file) + git show :$file | (set -x; uncrustify -c $UNCRUSTIFY_CFG -o $file) done