diff options
author | Mike Lockwood <lockwood@android.com> | 2009-07-14 15:23:39 -0400 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2011-01-09 17:39:22 -0800 |
commit | 2bf9db0d3b0b4cf4e11187ea7438ddeb1262fe21 (patch) | |
tree | 5f1947cbb7afb8c0c1e4485f705aaf9df6d79a47 /main.py | |
parent | f00e0ce556fc22fef180c74a9d78f1908d9aeb0b (diff) | |
download | git-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-x | main.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |