From 2d095da4f19ec20f56fa8e02bb2012b156d8ee1a Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Thu, 2 May 2019 18:21:42 -0700 Subject: [PATCH] Ignore submodules when calculating 'git diff-files' This allows projects to include submodules inside of projects that use repo without repo incorrectly believing the area is dirty just because a submodule has updates. This is in line with git porcelain commands which generally require a commandline flag to include submodules (git add, git rebase). Change-Id: Ide8a292162a42ab35145b5c4ca8ca0d020cdfe81 --- project.py | 1 + 1 file changed, 1 insertion(+) diff --git a/project.py b/project.py index f9eb7a28..65bc3a04 100755 --- a/project.py +++ b/project.py @@ -2689,6 +2689,7 @@ class Project(object): def DiffZ(self, name, *args): cmd = [name] cmd.append('-z') + cmd.append('--ignore-submodules') cmd.extend(args) p = GitCommand(self._project, cmd,