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

Unified Diff: git_cl.py

Issue 15302014: Add |git cl description| to allow you to change the description in your favorite $EDITOR. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: Created 7 years, 7 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
===================================================================
--- git_cl.py (revision 200864)
+++ git_cl.py (working copy)
@@ -1120,6 +1120,17 @@
return 0
+def CMDdescription(parser, args):
+ """brings up the editor for the current CL's description."""
+ cl = Changelist()
+ if not cl.GetIssue():
+ DieWithError('This branch has no associated changelist.')
+ description = ChangeDescription(cl.GetDescription())
+ description.prompt()
+ cl.UpdateDescription(description.description)
+ return 0
+
+
def CreateDescriptionFromLog(args):
"""Pulls out the commit log to use as a base for the CL description."""
log_args = []
« 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