I have a repository for which a regular git reflog --date=iso
shows a lot of entries, for example see this fragment https://gist.github.com/FreddieChopin/0206c9ef530a056c624b065eed048c9d
As you may notice, there are reflogs for 19th, 22nd, 23rd, 24th, 25th and 26th of February.
But if I would like to limit the output to certain dates, this doesn't work as expected. For example git reflog --date=iso --since="2017-02-20"
gives only this https://gist.github.com/FreddieChopin/fb7619dee8fde055a1cce6f6ff2f6eb6 - it stops at "52896f49 HEAD@{2017-02-24 20:53:29 +0100}", even though there are reflogs since 20th of February before that. There are even reflogs for 24th with smaller hours, so I have no idea why it stops exactly there.
The same problem is with another repository I've checked, so this seems to be related to the reflog itself, not the particular repository. The problem with the other repo is even weirder, as for example git reflog --since="50.weeks"
gives my commits from the last several days, while git reflog --since="60.weeks"
starts to go further back in time - in that repo there are also regular commits since a few years back.
On the other hand, git log --since=...
works exactly as expected, so I'm not sure what's the problem here...
Note that Git 2.14.x/2.15 has fixed some issues with reflog.
See commit de23944, commit d08565b, commit 7f97de5, commit 7c2f08a, commit f35650d, commit 82fd0f4, commit 7cf686b (07 Jul 2017), and commit 822601e (09 Jul 2017) by Jeff King (
peff
).(Merged by Junio C Hamano --
gitster
-- in commit 3ab01ac, 11 Aug 2017)A new series of tests has been added for
reflog-walk
.