Use core.quotePath=false for more git diffs
This includes a minor refactor so that some gclient_scm methods
can all share the same core.quotePath specifier.
R=iannucci
Bug: 792302
Change-Id: Iaadf190f5c0666787cf7c2ccda88d6dba9aace9b
Reviewed-on: https://chromium-review.googlesource.com/823131
Reviewed-by: Robbie Iannucci <iannucci@chromium.org>
Commit-Queue: Aaron Gable <agable@chromium.org>
diff --git a/git_cl.py b/git_cl.py
index b83a053..92cac9b 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -5885,7 +5885,8 @@
def BuildGitDiffCmd(diff_type, upstream_commit, args):
"""Generates a diff command."""
# Generate diff for the current branch's changes.
- diff_cmd = ['diff', '--no-ext-diff', '--no-prefix', diff_type,
+ diff_cmd = ['-c', 'core.quotePath=false', 'diff',
+ '--no-ext-diff', '--no-prefix', diff_type,
upstream_commit, '--']
if args: