Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Unified Diff: git_cl.py

Issue 889093002: Allow branch name to be the same as directory name for "git cl diff" (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: revert "follow coding convention of the file" Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_cl.py
diff --git a/git_cl.py b/git_cl.py
index 4edb6a0af8e1ee834f7f8305e92e435a3c1f9cee..9e1471996bcea50a0fe8ecaefe1e363e6a3e29f6 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -2785,9 +2785,9 @@ def CMDdiff(parser, args):
if rtn != 0:
return rtn
- # Switch back to starting brand and diff against the temporary
+ # Switch back to starting branch and diff against the temporary
# branch containing the latest rietveld patch.
- subprocess2.check_call(['git', 'diff', TMP_BRANCH, branch])
+ subprocess2.check_call(['git', 'diff', TMP_BRANCH, branch, '--'])
finally:
RunGit(['checkout', '-q', branch])
RunGit(['branch', '-D', TMP_BRANCH])
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698