FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

WIP: ``Fix merge --no-ff`` by IanLee1521 · Pull Request #98 · git-school/visualizing-git · GitHub

WIP: Fix merge --no-ff - #98

Open
IanLee1521 wants to merge 2 commits into
git-school:gh-pagesfrom
IanLee1521:gh-83-merge-no-ff
Open

WIP: Fix merge --no-ff#98
IanLee1521 wants to merge 2 commits into
git-school:gh-pagesfrom
IanLee1521:gh-83-merge-no-ff

Conversation

Copy link
Copy Markdown
Contributor

Work in progress at fixing #83

So far I have fixed the short case, but broken the previous working case...

Copy link
Copy Markdown

👋 @IanLee1521 ! Any luck with this since your last update? Just ran into the same bug myself while working on a demo.

Copy link
Copy Markdown
Contributor Author

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!

Comment thread js/historyview.js
@@ -1416,15 +1416,21 @@ define(['d3'], function() {
throw new Error('Already up-to-date.');
} else if (noFF === true) {
var branchStartCommit = this.getCommit(mergeTarget.parent);

udovicic Nov 10, 2018
edited
Loading

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL