git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff King <peff@peff.net>
To: Jiergir Ogoerg <f35f22fan@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Possibly a bug
Date: Sun, 17 Nov 2013 04:49:47 -0500	[thread overview]
Message-ID: <20131117094946.GA22166@sigill.intra.peff.net> (raw)
In-Reply-To: <CAJbVpmyoZCCQU3w8oMTJfxFr4f1cSNTgF+qQW6QD5e44LYg_Ug@mail.gmail.com>

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

      reply	other threads:[~2013-11-17  9:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-17  2:59 Possibly a bug Jiergir Ogoerg
2013-11-17  9:49 ` Jeff King [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131117094946.GA22166@sigill.intra.peff.net \
    --to=peff@peff.net \
    --cc=f35f22fan@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).