mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 08:28:50 +02:00
reset bug on removing parts of a collection in place
This commit is contained in:
parent
5246580b27
commit
925497377e
3 changed files with 26 additions and 19 deletions
|
@ -123,8 +123,8 @@ GitEngine.prototype.instantiateFromTree = function(tree) {
|
|||
};
|
||||
|
||||
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;
|
||||
|
@ -134,7 +134,7 @@ GitEngine.prototype.reloadGraphics = function() {
|
|||
this.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... one day TODO
|
||||
// a member of a collection and not this annoying edge case stuff... one day
|
||||
this.gitVisuals.initHeadBranch();
|
||||
|
||||
// when the paper is ready
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue