mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-08 13:44:25 +02:00
Sid0 work its awesome
This commit is contained in:
parent
37a9fccec0
commit
e2cd621c96
2 changed files with 18 additions and 15 deletions
|
@ -53,9 +53,20 @@ var commandConfig = {
|
|||
},
|
||||
|
||||
log: {
|
||||
regex: /^hg +log *$/,
|
||||
regex: /^hg +log($|\s)/,
|
||||
options: [
|
||||
'-f'
|
||||
],
|
||||
dontCountForGolf: true,
|
||||
delegate: function(engine, command) {
|
||||
var options = command.getSupportedMap();
|
||||
command.acceptNoGeneralArgs();
|
||||
|
||||
if (!options['-f']) {
|
||||
throw new GitError({
|
||||
msg: intl.str('hg-error-log-no-follow')
|
||||
});
|
||||
}
|
||||
command.mapDotToHead();
|
||||
return {
|
||||
vcs: 'git',
|
||||
|
@ -183,19 +194,6 @@ var commandConfig = {
|
|||
}
|
||||
},
|
||||
|
||||
ammend: {
|
||||
regex: /^hg +ammend *$/,
|
||||
delegate: function(engine, command) {
|
||||
command.setOptionMap({
|
||||
'--amend': true
|
||||
});
|
||||
return {
|
||||
vcs: 'hg',
|
||||
name: 'commit'
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
summary: {
|
||||
regex: /^hg +(summary|sum) *$/,
|
||||
delegate: function(engine, command) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue