Permalink
Browse files

Add "repo branch" as an alias for "repo branches"

For those of us that are used to typing "git branch".

Signed-off-by: Mike Lockwood <lockwood@android.com>
(cherry picked from commit 33f0e78)
  • Loading branch information...
1 parent f00e0ce commit 2bf9db0d3b0b4cf4e11187ea7438ddeb1262fe21 @mikeandroid mikeandroid committed with spearce Jul 14, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 main.py
View
@@ -61,6 +61,8 @@ class _Repo(object):
def __init__(self, repodir):
self.repodir = repodir
self.commands = all_commands
+ # add 'branch' as an alias for 'branches'
+ all_commands['branch'] = all_commands['branches']
def _Run(self, argv):
name = None

0 comments on commit 2bf9db0

Please sign in to comment.