mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 00:40:07 +02:00
Move commands/index.js to git/commands.js
This commit is contained in:
parent
1372a8eead
commit
ecbe9cb19a
12 changed files with 1646 additions and 1692 deletions
|
@ -10,7 +10,6 @@ var log = require('../log');
|
|||
var Errors = require('../util/errors');
|
||||
var Sandbox = require('../level/sandbox').Sandbox;
|
||||
var Constants = require('../util/constants');
|
||||
var Commands = require('../commands');
|
||||
|
||||
var Visualization = require('../visuals/visualization').Visualization;
|
||||
var ParseWaterfall = require('../level/parseWaterfall').ParseWaterfall;
|
||||
|
@ -310,8 +309,8 @@ var Level = Sandbox.extend({
|
|||
}
|
||||
|
||||
var matched = false;
|
||||
_.each(Commands.getCommandsThatCount(), function(name) {
|
||||
var regex = Commands.getRegex(name);
|
||||
_.each(GitCommands.commands.getCommandsThatCount(), function(name) {
|
||||
var regex = GitCommands.commands.getRegex(name);
|
||||
matched = matched || regex.test(command.get('rawStr'));
|
||||
});
|
||||
if (matched) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue