From dbc052094196bcf7fab8a3580df72052929fd29b Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Sat, 14 Mar 2015 14:15:37 +0100 Subject: [PATCH 1/1] Update uncrustify script to be usable in git-filter-branch Now, it is possible to use 'git filter-branch --tree-filter orte/uncrustify'. --- orte/uncrustify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2