Re: Possibly a bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Nov 17, 2013 at 04:59:20AM +0200, Jiergir Ogoerg wrote:

> As suggested by the git book/tutorial I cloned "simplegit-progit" to
> learn using git.
> The issue:
> git log --since=5.years
> yields 2 commits, while
> git log --since=6.years
> yields 3 commits, despite the "Date" in both cases being March 2008.
> Is it a bug?

No, but it is confusing.

The `--since` and `--until` flags use the committer date, not the author
date. Try `git log --pretty=fuller`, and you will see that the author
and committer dates do not match for the top two commits (their
committer date is within 5 years).

Usually the two dates are the same, but they can be different if a
commit is rebased, or applied via patch.

-Peff
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]