From 9d980b3581dcd481f8e698627cd39c34820f7973 Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Sat, 17 Dec 2011 23:06:39 -0800 Subject: [PATCH] app: Add 'git cola branch' sub-command Show the 'Create Branch' widget when 'git cola branch' is run. Signed-off-by: David Aguilar --- cola/app.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cola/app.py b/cola/app.py index cb6c0d9c..5e010c82 100644 --- a/cola/app.py +++ b/cola/app.py @@ -40,6 +40,7 @@ from cola.main.controller import MainController from cola.widgets import cfgactions from cola.widgets import startup from cola.widgets.createtag import create_tag +from cola.widgets.createbranch import create_new_branch from cola.widgets.search import search @@ -219,7 +220,7 @@ def main(context): os.chdir(model.git.worktree()) # Prepare to launch a sub-command - builtins = set(('cola', + builtins = set(('branch', 'classic', 'dag', 'fetch', @@ -233,7 +234,9 @@ def main(context): context = args[0] # Show the GUI - if context == 'git-dag' or context == 'dag': + if context == 'branch': + view = create_new_branch() + elif context == 'git-dag' or context == 'dag': ctl = git_dag(model, opts=opts, args=args) view = ctl.view elif context == 'classic': -- 2.11.4.GIT