We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c38a094 commit a1d59c6Copy full SHA for a1d59c6
.github/scripts/test-directory-unchanged.sh
@@ -3,8 +3,12 @@ set -ex
3
4
cd "$(dirname "$0")/../../$1"
5
6
+# notify git about untracked files
7
+# add -f to detect even ignored files
8
+git add -N .
9
+
10
# display overview of changed files
-git status
11
+git status .
12
-# display & detect all changes
-git add . -N && git diff --cached -a --exit-code . && git diff -a --exit-code .
13
+# display diff of working directory vs HEAD commit and set exit code
14
+git diff -a --exit-code HEAD .
0 commit comments