add an hg commands module

This commit is contained in:
Siddharth Agarwal 2013-07-31 02:17:27 -07:00
parent 40ed5f6c9b
commit e4c0b4786c
4 changed files with 73 additions and 54 deletions

View file

@ -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;