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

Unified Diff: git_cl.py

Issue 1058793004: In "git cl description", skip updating when unchanged (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: reorder Created 5 years, 9 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 039b35df17cdfb4c402730c3d233c057df27e4b0..7515bf770a3c3958ec84b091f66a13b9270a6078 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -1574,7 +1574,8 @@ def CMDdescription(parser, args):
DieWithError('This branch has no associated changelist.')
description = ChangeDescription(cl.GetDescription())
description.prompt()
- cl.UpdateDescription(description.description)
+ if cl.GetDescription() != description.description:
+ cl.UpdateDescription(description.description)
return 0
« 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