mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-25 15:38:33 +02:00
refresh fromt ree bug and clicik bug
This commit is contained in:
parent
a83a12b211
commit
4db83ba808
6 changed files with 31 additions and 64 deletions
|
@ -164,21 +164,15 @@ GitEngine.prototype.instantiateFromTree = function(tree) {
|
|||
}
|
||||
this.refs = createdSoFar;
|
||||
|
||||
this.gitVisuals.gitReady = false;
|
||||
this.branchCollection.each(function(branch) {
|
||||
this.gitVisuals.addBranch(branch);
|
||||
}, this);
|
||||
};
|
||||
|
||||
GitEngine.prototype.reloadGraphics = function() {
|
||||
// get the root commit, no better way to do it
|
||||
var rootCommit = null;
|
||||
this.commitCollection.each(function(commit) {
|
||||
if (commit.get('id') == 'C0') {
|
||||
rootCommit = commit;
|
||||
}
|
||||
});
|
||||
this.gitVisuals.rootCommit = rootCommit;
|
||||
|
||||
// get the root commit
|
||||
this.gitVisuals.rootCommit = this.refs['C0'];
|
||||
// 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... one day
|
||||
this.gitVisuals.initHeadBranch();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue