summaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2009-07-14 15:23:39 -0400
committerShawn O. Pearce <sop@google.com>2011-01-09 17:39:22 -0800
commit2bf9db0d3b0b4cf4e11187ea7438ddeb1262fe21 (patch)
tree5f1947cbb7afb8c0c1e4485f705aaf9df6d79a47 /main.py
parentf00e0ce556fc22fef180c74a9d78f1908d9aeb0b (diff)
downloadgit-repo-2bf9db0d3b0b4cf4e11187ea7438ddeb1262fe21.tar.gz
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 33f0e786bb35ea11da1e3d1746c431da5f1d93eb)
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.py b/main.py
index 31a18e18..f068fd47 100755
--- a/main.py
+++ b/main.py
@@ -61,6 +61,8 @@ class _Repo(object):
61 def __init__(self, repodir): 61 def __init__(self, repodir):
62 self.repodir = repodir 62 self.repodir = repodir
63 self.commands = all_commands 63 self.commands = all_commands
64 # add 'branch' as an alias for 'branches'
65 all_commands['branch'] = all_commands['branches']
64 66
65 def _Run(self, argv): 67 def _Run(self, argv):
66 name = None 68 name = None