mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 08:28:50 +02:00
add a vcs level to regex map
This commit is contained in:
parent
3abe620cf1
commit
54414925fa
4 changed files with 63 additions and 36 deletions
|
@ -121,10 +121,14 @@ var getAllCommands = function() {
|
|||
|
||||
var allCommands = _.extend(
|
||||
{},
|
||||
GitCommands.commands.getRegexMap(),
|
||||
require('../level').regexMap,
|
||||
regexMap
|
||||
);
|
||||
_.each(GitCommands.commands.getRegexMap(), function(map, vcs) {
|
||||
_.each(map, function(regex, method) {
|
||||
allCommands[vcs + ' ' + method] = regex;
|
||||
});
|
||||
});
|
||||
_.each(toDelete, function(key) {
|
||||
delete allCommands[key];
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue