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

Unified Diff: git_new_branch.py

Issue 1875063002: Clarify how `new-branch` is different for --help (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Stick to one line description Created 4 years, 8 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_new_branch.py
diff --git a/git_new_branch.py b/git_new_branch.py
index 03b0fcc484bb1d3f6f693e734436ff3ee82e6ee9..ed1225dc408839d69624df29e720837832fd89c0 100755
--- a/git_new_branch.py
+++ b/git_new_branch.py
@@ -3,6 +3,10 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+"""
+Create new branch tracking origin/master by default.
+"""
+
import argparse
import sys
@@ -14,7 +18,8 @@ from git_common import hash_one
def main(args):
parser = argparse.ArgumentParser(
- formatter_class=argparse.ArgumentDefaultsHelpFormatter
+ formatter_class=argparse.ArgumentDefaultsHelpFormatter,
+ description=__doc__,
)
parser.add_argument('branch_name')
g = parser.add_mutually_exclusive_group()
« 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