]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Indent script: Do not use --diff-filter=d 9511/head
authorMatthias Maier <tamiko@43-1.org>
Tue, 11 Feb 2020 17:15:44 +0000 (11:15 -0600)
committerMatthias Maier <tamiko@43-1.org>
Tue, 11 Feb 2020 17:15:44 +0000 (11:15 -0600)
This hopefully fixes some compatibility issues with ancient git versions
not supporting the --diff-filter option.

Closes #9489

contrib/utilities/indent_common.sh

index 57c5c0d9b0276b1ffff35c9526308ad75e318c12..aeca8a4fe0a3a6c293afd42df977e68f7796f31c 100644 (file)
@@ -307,8 +307,9 @@ process_changed()
   esac
 
   ( git ls-files --others --exclude-standard -- ${1};
-    git diff --name-only --diff-filter=d $COMMON_ANCESTOR_WITH_MASTER -- ${1} )|
+    git diff --name-only $COMMON_ANCESTOR_WITH_MASTER -- ${1} )|
       sort -u |
+      xargs -n 1 ls -d 2>/dev/null |
       grep -E "^${2}$" |
       ${XARGS} '\n' -n 1 -P 10 -I {} bash -c "${3} {}"
 }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.