| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
where to branches are not able to fast forward anyways
|
👋 @IanLee1521 ! Any luck with this since your last update? Just ran into the same bug myself while working on a demo. |
Sorry, something went wrong.
|
I haven't, not, but I need to circle back and resolve this and a few other issues. Would be happy to take help over at: https://github.com/ianlee1521/visualizing-git/tree/gh-83-merge-no-ff to try to get to a final working PR though! |
Sorry, something went wrong.
| @@ -1416,15 +1416,21 @@ define(['d3'], function() { | |||
| throw new Error('Already up-to-date.'); | |||
| } else if (noFF === true) { | |||
| var branchStartCommit = this.getCommit(mergeTarget.parent); | |||
There was a problem hiding this comment.
Changing this, and following lines with:
var branchStartCommit = this.getCommit(mergeTarget.id);
var base = (currentCommit.isNoFFCommit === true) ? currentCommit.parent2 : null;
while (branchStartCommit.parent !== base && branchStartCommit.parent !== currentCommit.id) {
branchStartCommit = this.getCommit(branchStartCommit.parent);
}
will fix several issues, but unfortunately still does not work as expected in some edge cases. Hope this helps
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Work in progress at fixing #83
So far I have fixed the short case, but broken the previous working case...