I am trying to use git bisect
I identified the bad commit to be:
2ac4ac0a46d902235a51216b24257a977877979a at 19 Oct 2016
The first good commit that I found is:
6a1d1ec5599d011a75df18075feb1819f1ad8877 at 9 Jan 2016
So i run:
> git bisect start
> git bisect good 6a1d1ec5599d011a75df18075feb1819f1ad8877
> git bisect bad 2ac4ac0a46d902235a51216b24257a977877979a
Bisecting: 3639 revisions left to test after this (roughly 12 steps)
[51450765b77e07b853b7efd0799aaeb2fbb5a0ea] only show canvas-player controls when not playing && controls = true
Now the issue is that the first guess that the bisect tool made is:
51450765b77e07b853b7efd0799aaeb2fbb5a0ea at 21 May 2015
Which is outside of the initial 2 commit dates. How can this be?
git bisect
uses the "parent" relation between commits, not their dates.With actions such as
git commit --amend
,git rebase
orgit cherry-pick
, you can create sequences of commits where the dates do not match the sequence of commits.You can check on a graphical tool if
51450765b77
lies between6a1d1ec
and2ac4ac0
, or in a terminal usinggit log --graph --oneline
: