mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-26 07:58:34 +02:00
add an hg commands module
This commit is contained in:
parent
40ed5f6c9b
commit
e4c0b4786c
4 changed files with 73 additions and 54 deletions
|
@ -7,22 +7,7 @@ var GitError = Errors.GitError;
|
|||
var Warning = Errors.Warning;
|
||||
var CommandResult = Errors.CommandResult;
|
||||
|
||||
var gitCommandConfig, hgCommandConfig;
|
||||
|
||||
hgCommandConfig = {
|
||||
commit: {
|
||||
regex: /^hg +commit($|\s)/,
|
||||
options: [
|
||||
'--amend',
|
||||
'-m'
|
||||
],
|
||||
execute: function(engine, command) {
|
||||
return gitCommandConfig.commit.execute(engine, command);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
gitCommandConfig = {
|
||||
var gitCommandConfig = {
|
||||
commit: {
|
||||
sc: /^(gc|git ci)($|\s)/,
|
||||
regex: /^git +commit($|\s)/,
|
||||
|
@ -490,6 +475,5 @@ var instantCommands = [
|
|||
];
|
||||
|
||||
exports.gitCommandConfig = gitCommandConfig;
|
||||
exports.hgCommandConfig = hgCommandConfig;
|
||||
exports.instantCommands = instantCommands;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue