>From c9778ef5caf2375ce7e0d02390c97efda9e6e603 Mon Sep 17 00:00:00 2001 From: Akira Yokosawa <akiyks@xxxxxxxxx> Date: Sun, 29 Dec 2019 17:51:13 +0900 Subject: [PATCH 2/3] utilities/autodate: Ignore untracked files in 'git status' This is safe because untracked files won't have any effect in the resulting .pdf unless at least one of the tracked files is modified. Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx> --- utilities/autodate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/autodate.sh b/utilities/autodate.sh index 924fa6ee..2ebc0754 100644 --- a/utilities/autodate.sh +++ b/utilities/autodate.sh @@ -33,7 +33,7 @@ then else date_str=`git show --format="%cD" | head -1` # check if git status is clean - gitstatus=`git status --porcelain | wc -l` + gitstatus=`git status -uno --porcelain | wc -l` if [ $gitstatus != "0" ] then modified="(m)" -- 2.17.1