From 3732e4e98dc6349a5d8c479e8943cf29a3e742b8 Mon Sep 17 00:00:00 2001 From: Luke Kysow Date: Sun, 17 Feb 2013 17:26:57 -0800 Subject: [PATCH] Added common git aliases. git ci => git commit, git co => git checkout, git st => git status, git br => git branch --- src/js/git/commands.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/js/git/commands.js b/src/js/git/commands.js index f0ebe905..9ec5f8fb 100644 --- a/src/js/git/commands.js +++ b/src/js/git/commands.js @@ -7,12 +7,12 @@ var Warning = Errors.Warning; var CommandResult = Errors.CommandResult; var shortcutMap = { - 'git commit': /^gc($|\s)/, + 'git commit': /^(gc|git ci)($|\s)/, 'git add': /^ga($|\s)/, - 'git checkout': /^go($|\s)/, + 'git checkout': /^(go|git co)($|\s)/, 'git rebase': /^gr($|\s)/, - 'git branch': /^gb($|\s)/, - 'git status': /^gs($|\s)/, + 'git branch': /^(gb|git br)($|\s)/, + 'git status': /^(gst|git st)($|\s)/, 'git help': /^git$/ };