Debian stable has git 1.5.6.5 which is missing the –ff-only options in git pull/git merge. Is there a way to simulate this behavior with a series of alternative git commands?
Debian stable has git 1.5.6.5 which is missing the –ff-only options in git pull/git
Share
You can test if one of the commits is a descendant of the other. If one is, then that’s the definition of a fast-forward merge.
If commit A is a descendant of commit B (as in, B is some Nth parent of A), then:
But testing if commits are descendants is not the easiest. That answer lies here: How can I tell if one commit is a descendant of another commit?