mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-16 17:44:28 +02:00
git help symlnked to blank git
This commit is contained in:
parent
8732dc6690
commit
c523d3735a
1 changed files with 12 additions and 0 deletions
|
@ -135,6 +135,18 @@ var Command = Backbone.Model.extend({
|
||||||
msg: "Directory Changed to '/directories/dont/matter/in/this/demo'"
|
msg: "Directory Changed to '/directories/dont/matter/in/this/demo'"
|
||||||
});
|
});
|
||||||
}],
|
}],
|
||||||
|
[/^git help($|\s)/, function() {
|
||||||
|
// sym link this to the blank git command
|
||||||
|
var allCommands = Command.prototype.getSandboxCommands();
|
||||||
|
// wow this is hacky :(
|
||||||
|
var equivalent = 'git';
|
||||||
|
_.each(allCommands, function(bits) {
|
||||||
|
var regex = bits[0];
|
||||||
|
if (regex.test(equivalent)) {
|
||||||
|
bits[1]();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}],
|
||||||
[/^git$/, function() {
|
[/^git$/, function() {
|
||||||
var lines = [
|
var lines = [
|
||||||
'Git Version PCOTTLE.1.0',
|
'Git Version PCOTTLE.1.0',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue