From 0fa07c1c4d941164eb9f368461cd25afc911f7a1 Mon Sep 17 00:00:00 2001 From: Jan Strohbeck Date: Tue, 26 Jan 2021 16:17:20 +0000 Subject: [PATCH] [FIX] Cropped filenames in git-diff output lead to bugs with partially added files --- git-cmake-format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-cmake-format.py b/git-cmake-format.py index b350ad5..34c18f3 100644 --- a/git-cmake-format.py +++ b/git-cmake-format.py @@ -104,7 +104,7 @@ def getEditedFiles(): def getUnstagedFiles(): Head = getGitHead() - GitArgs = ['git', 'diff', '--stat'] + GitArgs = ['git', 'diff', '--stat=10000'] DiffIndex = subprocess.Popen(GitArgs, stdout=subprocess.PIPE) DiffIndexRet = DiffIndex.stdout.read().strip() DiffIndexRet = DiffIndexRet.decode()