mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-26 07:58:34 +02:00
add a vcs level to the shortcut map
This commit is contained in:
parent
f14c128174
commit
3c1887f1d0
6 changed files with 34 additions and 38 deletions
|
@ -25,12 +25,12 @@ var commands = {
|
|||
},
|
||||
|
||||
getShortcutMap: function() {
|
||||
var map = {};
|
||||
this.loop(function(config, name) {
|
||||
var map = {'git': {}};
|
||||
this.loop(function(config, name, vcs) {
|
||||
if (!config.sc) {
|
||||
return;
|
||||
}
|
||||
map['git ' + name] = config.sc;
|
||||
map[vcs][name] = config.sc;
|
||||
}, this);
|
||||
return map;
|
||||
},
|
||||
|
@ -73,7 +73,7 @@ var commands = {
|
|||
},
|
||||
|
||||
loop: function(callback, context) {
|
||||
_.each(commandConfig, callback);
|
||||
_.each(commandConfig, function (config, name) { callback(config, name, 'git') });
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue