I've below output from the --reflog
$ git log --reflog --grep=Merge --oneline
29645bc (origin/master) Merge branch 'develop' into 'master'
dd2977c (origin/develop) Merge branch 'jira2' into 'develop'
73f655b Merge branch 'jira3' into 'develop'
9bda53e Merge branch 'develop' into 'master'
ae082fa Merge branch 'jira1' into 'develop'
If I do a from and to commit, ae08afa does come in the list which shouldn't be.
$ git log --reflog --grep=Merge --oneline 9bda53e..eab02a5
29645bc (origin/master) Merge branch 'develop' into 'master'
dd2977c (origin/develop) Merge branch 'jira2' into 'develop'
73f655b Merge branch 'jira3' into 'develop'
ae082fa Merge branch 'jira1' into 'develop'
Above should return 1,2,3,row; but It always return 1,2,3,5. if there are 2 commit prior to the develop to master; it also return those 2 commits also in the reflog query.
Why is that do? Is that expected behavior? How I can achieve the required output?
NOTE: since, the master itself an 8+GB of data; hence I don't want to checkout develop branch.