mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 08:50:06 +02:00
more progress
This commit is contained in:
parent
5e2bace639
commit
01fb9ec25b
3 changed files with 47 additions and 32 deletions
|
@ -194,15 +194,8 @@ var Command = Backbone.Model.extend({
|
|||
}
|
||||
});
|
||||
|
||||
// then check if shortcut exists, and replace, but
|
||||
// preserve options if so
|
||||
_.each(GitCommands.getShortcutMap(), function(regex, method) {
|
||||
var results = regex.exec(str);
|
||||
if (results) {
|
||||
str = method + ' ' + str.slice(results[0].length);
|
||||
}
|
||||
this.set('rawStr', str);
|
||||
}, this);
|
||||
str = GitCommands.expandShortcut(str);
|
||||
this.set('rawStr', str);
|
||||
|
||||
// see if begins with git
|
||||
if (str.slice(0,3) !== 'git') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue