mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 00:18:56 +02:00
ok optimistic parsing going
This commit is contained in:
parent
8a1986a923
commit
f8b9c8b583
9 changed files with 1509 additions and 1317 deletions
|
@ -116,11 +116,18 @@ var init = function() {
|
|||
$('#commandTextField').on('keyup', makeKeyListener('keyup'));
|
||||
$(window).trigger('resize');
|
||||
|
||||
/* hacky demo functionality */
|
||||
// demo functionality
|
||||
if (/\?demo/.test(window.location.href)) {
|
||||
setTimeout(function() {
|
||||
eventBaton.trigger('commandSubmitted', "gc; git checkout HEAD~1; git commit; git checkout -b bugFix; gc; gc; git rebase -i HEAD~2; git rebase master; git checkout master; gc; gc; git merge bugFix; help");
|
||||
}, 500);
|
||||
sandbox.mainVis.customEvents.on('gitEngineReady', function() {
|
||||
eventBaton.trigger(
|
||||
'commandSubmitted',
|
||||
[
|
||||
"gc; git checkout HEAD~1; git commit; git checkout -b bugFix; gc;",
|
||||
"git rebase -i HEAD~3; git rebase master; git checkout master; gc;",
|
||||
"git merge bugFix; levels; level rebase1; delay 3000;",
|
||||
"git checkout -b win; git commit; help"
|
||||
].join(''));
|
||||
});
|
||||
}
|
||||
if (/(iPhone|iPod|iPad).*AppleWebKit/i.test(navigator.userAgent)) {
|
||||
setTimeout(function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue