Chromium Code Reviews| Index: git_new_branch.py |
| diff --git a/git_new_branch.py b/git_new_branch.py |
| index 03b0fcc484bb1d3f6f693e734436ff3ee82e6ee9..1f94f688c0495c70fce5b40eda4d0111f63080ad 100755 |
| --- a/git_new_branch.py |
| +++ b/git_new_branch.py |
| @@ -3,6 +3,11 @@ |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| +""" |
| +Create new branch on top of upstream (origin/master). This is different |
| +from 'git branch`, which creates branch on top of current changeset. |
| +""" |
|
agable
2016/04/12 16:11:17
This description isn't strictly correct. In partic
anatoly techtonik
2016/04/12 20:19:24
Yes, I constantly forgot that `git branch` for rem
agable
2016/04/13 16:41:55
Yeah, I meant the other git-extensions, not gclien
|
| + |
| import argparse |
| import sys |
| @@ -14,7 +19,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() |