mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-26 07:58:34 +02:00
use better names for command configs
This commit is contained in:
parent
e4c0b4786c
commit
31f175fbc7
4 changed files with 21 additions and 21 deletions
|
@ -9877,8 +9877,8 @@ var CommandProcessError = Errors.CommandProcessError;
|
||||||
var CommandResult = Errors.CommandResult;
|
var CommandResult = Errors.CommandResult;
|
||||||
|
|
||||||
var commandConfigs = {
|
var commandConfigs = {
|
||||||
'git': GitCommands.gitCommandConfig,
|
'git': GitCommands.commandConfig,
|
||||||
'hg': MercurialCommands.hgCommandConfig
|
'hg': MercurialCommands.commandConfig
|
||||||
};
|
};
|
||||||
|
|
||||||
var commands = {
|
var commands = {
|
||||||
|
@ -10048,7 +10048,7 @@ var GitError = Errors.GitError;
|
||||||
var Warning = Errors.Warning;
|
var Warning = Errors.Warning;
|
||||||
var CommandResult = Errors.CommandResult;
|
var CommandResult = Errors.CommandResult;
|
||||||
|
|
||||||
var gitCommandConfig = {
|
var commandConfig = {
|
||||||
commit: {
|
commit: {
|
||||||
sc: /^(gc|git ci)($|\s)/,
|
sc: /^(gc|git ci)($|\s)/,
|
||||||
regex: /^git +commit($|\s)/,
|
regex: /^git +commit($|\s)/,
|
||||||
|
@ -10515,7 +10515,7 @@ var instantCommands = [
|
||||||
}]
|
}]
|
||||||
];
|
];
|
||||||
|
|
||||||
exports.gitCommandConfig = gitCommandConfig;
|
exports.commandConfig = commandConfig;
|
||||||
exports.instantCommands = instantCommands;
|
exports.instantCommands = instantCommands;
|
||||||
|
|
||||||
|
|
||||||
|
@ -10526,7 +10526,7 @@ var intl = require('../intl');
|
||||||
|
|
||||||
var GitCommands = require('../git/commands');
|
var GitCommands = require('../git/commands');
|
||||||
|
|
||||||
var hgCommandConfig = {
|
var commandConfig = {
|
||||||
commit: {
|
commit: {
|
||||||
regex: /^hg +commit($|\s)/,
|
regex: /^hg +commit($|\s)/,
|
||||||
options: [
|
options: [
|
||||||
|
@ -10534,12 +10534,12 @@ var hgCommandConfig = {
|
||||||
'-m'
|
'-m'
|
||||||
],
|
],
|
||||||
execute: function(engine, command) {
|
execute: function(engine, command) {
|
||||||
return GitCommands.gitCommandConfig.commit.execute(engine, command);
|
return GitCommands.commandConfig.commit.execute(engine, command);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.hgCommandConfig = hgCommandConfig;
|
exports.commandConfig = commandConfig;
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -23355,8 +23355,8 @@ var CommandProcessError = Errors.CommandProcessError;
|
||||||
var CommandResult = Errors.CommandResult;
|
var CommandResult = Errors.CommandResult;
|
||||||
|
|
||||||
var commandConfigs = {
|
var commandConfigs = {
|
||||||
'git': GitCommands.gitCommandConfig,
|
'git': GitCommands.commandConfig,
|
||||||
'hg': MercurialCommands.hgCommandConfig
|
'hg': MercurialCommands.commandConfig
|
||||||
};
|
};
|
||||||
|
|
||||||
var commands = {
|
var commands = {
|
||||||
|
@ -23968,7 +23968,7 @@ var GitError = Errors.GitError;
|
||||||
var Warning = Errors.Warning;
|
var Warning = Errors.Warning;
|
||||||
var CommandResult = Errors.CommandResult;
|
var CommandResult = Errors.CommandResult;
|
||||||
|
|
||||||
var gitCommandConfig = {
|
var commandConfig = {
|
||||||
commit: {
|
commit: {
|
||||||
sc: /^(gc|git ci)($|\s)/,
|
sc: /^(gc|git ci)($|\s)/,
|
||||||
regex: /^git +commit($|\s)/,
|
regex: /^git +commit($|\s)/,
|
||||||
|
@ -24435,7 +24435,7 @@ var instantCommands = [
|
||||||
}]
|
}]
|
||||||
];
|
];
|
||||||
|
|
||||||
exports.gitCommandConfig = gitCommandConfig;
|
exports.commandConfig = commandConfig;
|
||||||
exports.instantCommands = instantCommands;
|
exports.instantCommands = instantCommands;
|
||||||
|
|
||||||
|
|
||||||
|
@ -29642,7 +29642,7 @@ var intl = require('../intl');
|
||||||
|
|
||||||
var GitCommands = require('../git/commands');
|
var GitCommands = require('../git/commands');
|
||||||
|
|
||||||
var hgCommandConfig = {
|
var commandConfig = {
|
||||||
commit: {
|
commit: {
|
||||||
regex: /^hg +commit($|\s)/,
|
regex: /^hg +commit($|\s)/,
|
||||||
options: [
|
options: [
|
||||||
|
@ -29650,12 +29650,12 @@ var hgCommandConfig = {
|
||||||
'-m'
|
'-m'
|
||||||
],
|
],
|
||||||
execute: function(engine, command) {
|
execute: function(engine, command) {
|
||||||
return GitCommands.gitCommandConfig.commit.execute(engine, command);
|
return GitCommands.commandConfig.commit.execute(engine, command);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.hgCommandConfig = hgCommandConfig;
|
exports.commandConfig = commandConfig;
|
||||||
|
|
||||||
});
|
});
|
||||||
require("/src/js/mercurial/commands.js");
|
require("/src/js/mercurial/commands.js");
|
||||||
|
|
|
@ -8,8 +8,8 @@ var CommandProcessError = Errors.CommandProcessError;
|
||||||
var CommandResult = Errors.CommandResult;
|
var CommandResult = Errors.CommandResult;
|
||||||
|
|
||||||
var commandConfigs = {
|
var commandConfigs = {
|
||||||
'git': GitCommands.gitCommandConfig,
|
'git': GitCommands.commandConfig,
|
||||||
'hg': MercurialCommands.hgCommandConfig
|
'hg': MercurialCommands.commandConfig
|
||||||
};
|
};
|
||||||
|
|
||||||
var commands = {
|
var commands = {
|
||||||
|
|
|
@ -7,7 +7,7 @@ var GitError = Errors.GitError;
|
||||||
var Warning = Errors.Warning;
|
var Warning = Errors.Warning;
|
||||||
var CommandResult = Errors.CommandResult;
|
var CommandResult = Errors.CommandResult;
|
||||||
|
|
||||||
var gitCommandConfig = {
|
var commandConfig = {
|
||||||
commit: {
|
commit: {
|
||||||
sc: /^(gc|git ci)($|\s)/,
|
sc: /^(gc|git ci)($|\s)/,
|
||||||
regex: /^git +commit($|\s)/,
|
regex: /^git +commit($|\s)/,
|
||||||
|
@ -474,6 +474,6 @@ var instantCommands = [
|
||||||
}]
|
}]
|
||||||
];
|
];
|
||||||
|
|
||||||
exports.gitCommandConfig = gitCommandConfig;
|
exports.commandConfig = commandConfig;
|
||||||
exports.instantCommands = instantCommands;
|
exports.instantCommands = instantCommands;
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ var intl = require('../intl');
|
||||||
|
|
||||||
var GitCommands = require('../git/commands');
|
var GitCommands = require('../git/commands');
|
||||||
|
|
||||||
var hgCommandConfig = {
|
var commandConfig = {
|
||||||
commit: {
|
commit: {
|
||||||
regex: /^hg +commit($|\s)/,
|
regex: /^hg +commit($|\s)/,
|
||||||
options: [
|
options: [
|
||||||
|
@ -11,9 +11,9 @@ var hgCommandConfig = {
|
||||||
'-m'
|
'-m'
|
||||||
],
|
],
|
||||||
execute: function(engine, command) {
|
execute: function(engine, command) {
|
||||||
return GitCommands.gitCommandConfig.commit.execute(engine, command);
|
return GitCommands.commandConfig.commit.execute(engine, command);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.hgCommandConfig = hgCommandConfig;
|
exports.commandConfig = commandConfig;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue