[gclient_scm] Update _CheckClean() to use `git status`
This change updates the `_CheckClean()` fn to use `git status` instead of `git update-index` and `git diff-index`. The `_CheckClean()` fn is run during every update and this change reduces the subprocess calls made by it by half. Change-Id: Ie9a23b0bce748bec4cac88df09655569e88e4841 Bug: 1501984 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5076224 Reviewed-by: Josip Sokcevic <sokcevic@chromium.org> Commit-Queue: Josip Sokcevic <sokcevic@chromium.org> Reviewed-by: Gavin Mak <gavinmak@google.com>changes/24/5076224/2
parent
29672fbb92
commit
259774c3ac
Loading…
Reference in New Issue