* git log --since --until
@ 2012-01-04 21:46 Hilco Wijbenga
2012-01-04 22:16 ` Junio C Hamano
0 siblings, 1 reply; 4+ messages in thread
From: Hilco Wijbenga @ 2012-01-04 21:46 UTC (permalink / raw)
To: Git Users
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git log --since --until
2012-01-04 21:46 git log --since --until Hilco Wijbenga
@ 2012-01-04 22:16 ` Junio C Hamano
2012-01-04 22:32 ` Hilco Wijbenga
0 siblings, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2012-01-04 22:16 UTC (permalink / raw)
To: Hilco Wijbenga; +Cc: Git Users
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?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git log --since --until
2012-01-04 22:16 ` Junio C Hamano
@ 2012-01-04 22:32 ` Hilco Wijbenga
2012-01-04 22:58 ` Junio C Hamano
0 siblings, 1 reply; 4+ messages in thread
From: Hilco Wijbenga @ 2012-01-04 22:32 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Git Users
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git log --since --until
2012-01-04 22:32 ` Hilco Wijbenga
@ 2012-01-04 22:58 ` Junio C Hamano
0 siblings, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2012-01-04 22:58 UTC (permalink / raw)
To: Hilco Wijbenga; +Cc: Git Users
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-01-04 22:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-04 21:46 git log --since --until Hilco Wijbenga
2012-01-04 22:16 ` Junio C Hamano
2012-01-04 22:32 ` Hilco Wijbenga
2012-01-04 22:58 ` Junio C Hamano
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).