mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-26 07:58:34 +02:00
rename commandConfig to gitCommandConfig
This commit is contained in:
parent
1402136bb2
commit
c3e58b3063
2 changed files with 14 additions and 14 deletions
|
@ -7,7 +7,7 @@ var GitError = Errors.GitError;
|
|||
var Warning = Errors.Warning;
|
||||
var CommandResult = Errors.CommandResult;
|
||||
|
||||
var commandConfig, hgCommandConfig;
|
||||
var gitCommandConfig, hgCommandConfig;
|
||||
|
||||
var commands = {
|
||||
execute: function(vcs, name, engine, commandObj) {
|
||||
|
@ -82,12 +82,12 @@ hgCommandConfig = {
|
|||
'-m'
|
||||
],
|
||||
execute: function(engine, command) {
|
||||
return commandConfig.commit.execute(engine, command);
|
||||
return gitCommandConfig.commit.execute(engine, command);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
commandConfig = {
|
||||
gitCommandConfig = {
|
||||
commit: {
|
||||
sc: /^(gc|git ci)($|\s)/,
|
||||
regex: /^git +commit($|\s)/,
|
||||
|
@ -525,7 +525,7 @@ commandConfig = {
|
|||
}
|
||||
};
|
||||
|
||||
var commandConfigs = {'git': commandConfig, 'hg': hgCommandConfig};
|
||||
var commandConfigs = { 'git': gitCommandConfig, 'hg': hgCommandConfig };
|
||||
|
||||
var instantCommands = [
|
||||
[/^(git help($|\s)|git$)/, function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue