mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 16:38:50 +02:00
stuck on weird load issues
This commit is contained in:
parent
ec5c40141c
commit
b944a23790
1 changed files with 8 additions and 0 deletions
|
@ -109,6 +109,14 @@ GitEngine.prototype.instantiateFromTree = function(tree) {
|
|||
};
|
||||
|
||||
GitEngine.prototype.reloadGraphics = function() {
|
||||
var rootCommit = null;
|
||||
this.commitCollection.each(function(commit) {
|
||||
if (commit.get('id') == 'C0') {
|
||||
rootCommit = commit;
|
||||
}
|
||||
});
|
||||
gitVisuals.rootCommit = rootCommit;
|
||||
|
||||
// this just basically makes the HEAD branch. the head branch really should have been
|
||||
// a member of a collection and not this annoying edge case stuff...
|
||||
console.log('calling when git engine ready');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue