git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git log date filter behavior with --date-order
@ 2015-08-21 14:56 Kirill Likhodedov
  0 siblings, 0 replies; only message in thread
From: Kirill Likhodedov @ 2015-08-21 14:56 UTC (permalink / raw)
  To: git; +Cc: Julia Beliaeva

Hi,

I’ve faced a strange behavior when filtering git log by date.

When used with “--date-order” it gives significantly less results that when used without that option:

#  git log --pretty=oneline --remotes "--after=Wed May 20 23:00:00 MSK 2015" "--before=Fri May 22 00:00:00 MSK 2015" -- | wc -l
      85
#  git log --pretty=oneline --remotes "--after=Wed May 20 23:00:00 MSK 2015" "--before=Fri May 22 00:00:00 MSK 2015" --date-order -- | wc -l
      25

My assumption is that git log walks from the specified heads down to the past until it finds a commit which commit date matches the filter. Then it continues until it finds a commit which commit date doesn’t match the filter. Is it true?

Commits from “matching” and “unmatching” parts of the output are located in different branches which are being developed in parallel. 
AFAIU the flag “--date-order” is meant to place commits from different branches near each other, if they were performed at the same time.

But when I looked both at the “matching" and the “unmatching” commits in the whole `git log --date-order` view, I’ve noticed that they are placed really far away from each other (with about 4K commits between them).

Could you please give me a hint, why can git log --date-order behave like that? 

I’ll be happy to provide more details if needed. 

Thanks a lot!
Kirill.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-08-21 14:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-21 14:56 git log date filter behavior with --date-order Kirill Likhodedov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).