mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-08 13:44:25 +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
19
src/js/mercurial/commands.js
Normal file
19
src/js/mercurial/commands.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
var _ = require('underscore');
|
||||
var intl = require('../intl');
|
||||
|
||||
var GitCommands = require('../git/commands');
|
||||
|
||||
var hgCommandConfig = {
|
||||
commit: {
|
||||
regex: /^hg +commit($|\s)/,
|
||||
options: [
|
||||
'--amend',
|
||||
'-m'
|
||||
],
|
||||
execute: function(engine, command) {
|
||||
return GitCommands.gitCommandConfig.commit.execute(engine, command);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
exports.hgCommandConfig = hgCommandConfig;
|
Loading…
Add table
Add a link
Reference in a new issue