mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 10:41:31 +00:00
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>
This commit is contained in:
@@ -34,7 +34,8 @@ def main(args):
|
||||
print 'fatal: No upstream configured for branch \'%s\'' % opts.branch
|
||||
return 1
|
||||
|
||||
cmd = [git.GIT_EXE, 'diff', '--patience', '-C', '-C']
|
||||
cmd = [git.GIT_EXE, '-c', 'core.quotePath=false',
|
||||
'diff', '--patience', '-C', '-C']
|
||||
if opts.wordwise:
|
||||
cmd += ['--word-diff=color', r'--word-diff-regex=(\w+|[^[:space:]])']
|
||||
cmd += [git.get_or_create_merge_base(opts.branch, par)]
|
||||
|
||||
Reference in New Issue
Block a user