Skip to contentSkip to conversation

since/after not working properly

DISCUSSION Jeff Hawk 2 participants 5 messages Jun 16, 2016

lore
Share & tools
lore

Jeff Hawk

author
#0 lore raw

[jeff:~/src/git] master* 2s ± git log --pretty=format:"%ad" --date=short --after=2016-05-01 | sort -u 2016-04-14
2016-04-27
2016-04-29
2016-05-01
2016-05-02
2016-05-03
2016-05-04
2016-05-05
2016-05-06
2016-05-07
2016-05-08
2016-05-09
2016-05-10
2016-05-11
2016-05-12
2016-05-13
2016-05-17
2016-05-18
[jeff:~/src/git] master* ± git --version
git version 2.8.2.537.gb153d2a

[jeff:~/src/git] master* ± git log --pretty=format:"%ad" --date=short --after=2016-04-01 | sort -u 2016-02-27
2016-03-08
2016-03-11
2016-03-14
2016-03-16
2016-03-18
2016-03-25
2016-03-27
2016-03-28
2016-03-30
2016-03-31
2016-04-01
2016-04-02
2016-04-03
2016-04-04
2016-04-05
2016-04-06
2016-04-07
2016-04-08
2016-04-09
2016-04-10
2016-04-12
2016-04-13
2016-04-14
2016-04-15
2016-04-17
2016-04-18
2016-04-19
2016-04-20
2016-04-21
2016-04-22
2016-04-24
2016-04-25
2016-04-26
2016-04-27
2016-04-28
2016-04-29
2016-05-01
2016-05-02
2016-05-03
2016-05-04
2016-05-05
2016-05-06
2016-05-07
2016-05-08
2016-05-09
2016-05-10
2016-05-11
2016-05-12
2016-05-13
2016-05-17
2016-05-18

#1 lore raw
Quoted 1 line · Jeff Hawk

[jeff:~/src/git] master* 2s ± git log --pretty=format:"%ad" --date=short

Perhaps try it with %cd instead of %ad?

author
#2 lore raw

Thanks Junio,

Do you think that code-maat has the wrong format documented on their github page?

At: https://github.com/adamtornhill/code-maat

They suggest this:
git log --all --numstat --date=short --pretty=format:'--%h--%ad--%aN' --no-renames

Seems like the %ad should be %cd.

Regards,
Jeff H

________________________________________
From: [email protected] <[email protected]> on behalf of Junio C Hamano <[email protected]>
Sent: Thursday, May 19, 2016 12:27:17 PM
To: Hawk, Jeff
Cc: Git Mailing List
Subject: Re: since/after not working properly

Quoted 1 line · Jeff Hawk

[jeff:~/src/git] master* 2s ± git log --pretty=format:"%ad" --date=short

Perhaps try it with %cd instead of %ad?

#3 lore raw
Quoted 4 lines · Jeff

They suggest this:
git log --all --numstat --date=short --pretty=format:'--%h--%ad--%aN' --no-renames

Seems like the %ad should be %cd.

I have no opinion on that. If somebody wants to show author dates, that's her choice.

author
#4 lore raw

Thanks for your help and sorry for my confused regarding ad and cd.
________________________________________
From: Junio C Hamano <[email protected]>
Sent: Thursday, May 19, 2016 2:03:54 PM
To: Hawk, Jeff
Cc: Git Mailing List
Subject: Re: since/after not working properly

Quoted 4 lines · Jeff

They suggest this:
git log --all --numstat --date=short --pretty=format:'--%h--%ad--%aN' --no-renames

Seems like the %ad should be %cd.

I have no opinion on that. If somebody wants to show author dates, that's her choice.