mirror of
https://github.com/initialcommit-com/git-sim.git
synced 2026-04-27 03:25:53 +03:00
[GH-ISSUE #39] Explicit merge --ff is not supported, and a plain merge that would fast forward is incorrectly projected to create a merge commit #29
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/git-sim#29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hlovdal on GitHub (Jan 27, 2023).
Original GitHub issue: https://github.com/initialcommit-com/git-sim/issues/39
I have a clone of the phoronix-test-suite repository with no modifications of my own and it is currently a few commits behind upstream. The following gitk screenshot shows the situation:
With git if I run
git merge origin/masterfrom this situation it will do a fast forward and just update themasterbranch to point to exactly the same asorigin/master. When I rangit-sim merge origin/masterit produced the following result:which incorrectly suggest that a merge commit would be created. If I try to force fast forward git-sim complains:
I installed (latest) git-sim for the first time today with pip, Fedora 36.
@initialcommit-io commented on GitHub (Jan 27, 2023):
@hlovdal Thanks for reporting this and for the super detailed description! I was able to reproduce this on my end - it looks like a bug when merging from a remote tracking branch. You're right it should just do the fast forward by default and if the user wants to supply the
--no-ffthen it will create the merge commit.I will dig deeper today and hopefully resolve this in a new release tonight.
@initialcommit-io commented on GitHub (Jan 27, 2023):
(fyi regular fast forward merges between two non remote-tracking branches work and are something I tested, but didn't test merging a remote-tracking branch :D)
@initialcommit-io commented on GitHub (Jan 28, 2023):
@hlovdal Just pushed a fix for this in git-sim 0.1.7. Remote tracking branches can now be merged as a fast-forward and remote tracking branch names will also display in commands that traverse history like
git-sim log.Please upgrade to git-sim 0.1.7 by running:
Then test it out and let me know if it works for you! =D
@hlovdal commented on GitHub (Jan 28, 2023):
Looks good.