# git log --since --until

4 messages from 2012-01-04 to 2012-01-04. Participants: Hilco Wijbenga, Junio C Hamano.
Thread: https://gitlist.dev/t/29294

## Hilco Wijbenga, 2012-01-04 21:46

Subject: git log --since --until
Message-ID: <CAE1pOi30FL+hRSqr3XRNgvOr4yBcTsbTpiNXpxJ=CN1Q=JVo3w@mail.gmail.com>
URL: https://gitlist.dev/e/CAE1pOi30FL%2BhRSqr3XRNgvOr4yBcTsbTpiNXpxJ%3DCN1Q%3DJVo3w%40mail.gmail.com

```
Hi all,

I need to write sort of a report listing what we worked on (month by
month) over the last year. Yippie. ;-)

Luckily most of the information I can get from our Git logs but I
noticed some "anomalies". The quotes are there because I do understand
(or I think I do anyway) why those "anomalies" are there.

As an example, I ran (on master)

git log --since="01-Dec-2011" --until="31-Dec-2011"

The returned list of commits also included a few from November. I'm
guessing that's because --since and --until simply determine a start
commit and an end commit in master and any commit that falls in that
range is included, whether its actual commit date is in the originally
specified date range or not.

Is there a way to just get the commits made in December? (I can
manually go through the list, of course, [and that's probably what
I'll do] but playing with Git is more fun than writing a report. ;-) )

Cheers,
Hilco

```

## Junio C Hamano, 2012-01-04 22:16

Subject: Re: git log --since --until
Message-ID: <7v62grp0z4.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7v62grp0z4.fsf%40alter.siamese.dyndns.org
In-Reply-To: <CAE1pOi30FL+hRSqr3XRNgvOr4yBcTsbTpiNXpxJ=CN1Q=JVo3w@mail.gmail.com>

```
Hilco Wijbenga <hilco.wijbenga@gmail.com> writes:

> git log --since="01-Dec-2011" --until="31-Dec-2011"
>
> The returned list of commits also included a few from November.

These limits act on committer dates. Are you by any chance looking at
author dates instead?

```

## Hilco Wijbenga, 2012-01-04 22:32

Subject: Re: git log --since --until
Message-ID: <CAE1pOi2vi8WHFNg2+NJCWnQ_atnCTRKXyBDJJpA8GM6nHmj6HQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAE1pOi2vi8WHFNg2%2BNJCWnQ_atnCTRKXyBDJJpA8GM6nHmj6HQ%40mail.gmail.com
In-Reply-To: <7v62grp0z4.fsf@alter.siamese.dyndns.org>

```
On 4 January 2012 14:16, Junio C Hamano <gitster@pobox.com> wrote:
> Hilco Wijbenga <hilco.wijbenga@gmail.com> writes:
>
>> git log --since="01-Dec-2011" --until="31-Dec-2011"
>>
>> The returned list of commits also included a few from November.
>
> These limits act on committer dates. Are you by any chance looking at
> author dates instead?

I had to look that up. :-) Yes, I'm apparently looking at (and for)
author dates. I don't really care when the commit was merged into
master (that's the committer date, right?), I want to know when the
work was done.

I didn't really see any useful switches for git log in this regard but
then the author date seems to be additional data without special
meaning to Git.

```

## Junio C Hamano, 2012-01-04 22:58

Subject: Re: git log --since --until
Message-ID: <7v1urfoz26.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7v1urfoz26.fsf%40alter.siamese.dyndns.org
In-Reply-To: <CAE1pOi2vi8WHFNg2+NJCWnQ_atnCTRKXyBDJJpA8GM6nHmj6HQ@mail.gmail.com>

```
Hilco Wijbenga <hilco.wijbenga@gmail.com> writes:

> ... the author date seems to be additional data without special
> meaning to Git.

That is exactly correct. The author date is merely for human consumption.

```
