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

Unified Diff: git_cl.py

Issue 23185006: Pretty-print the CL description during commit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 7 years, 4 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 3ee62f6b3a2a5ef25c564313fc0dc9e078107890..b386cf6ca4be73e37e542b5f73a05f1c295fff43 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -1668,7 +1668,9 @@ def SendUpstream(parser, args, cmd):
if options.contributor:
commit_desc.append_footer('Patch from %s.' % options.contributor)
- print 'Description:', repr(commit_desc.description)
+ print 'Description:'
+ for line in commit_desc.description.split('\n'):
M-A Ruel 2013/08/15 19:12:51 What's the difference between this and "print comm
agable 2013/08/15 20:25:24 There's not; I was just being dumb. There doesn't
+ print line
branches = [base_branch, cl.GetBranchRef()]
if not options.force:
« 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