since/after not working properly

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

since/after not working properly

Jeff Hawk
[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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [hidden email]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Reply | Threaded
Open this post in threaded view
|

Re: since/after not working properly

Junio C Hamano
On Thu, May 19, 2016 at 8:41 AM, Jeff Hawk <[hidden email]> wrote:
> [jeff:~/src/git] master* 2s ± git log --pretty=format:"%ad" --date=short

Perhaps try it with %cd instead of %ad?
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [hidden email]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Reply | Threaded
Open this post in threaded view
|

Re: since/after not working properly

Jeff Hawk
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: [hidden email] <[hidden email]> on behalf of Junio C Hamano <[hidden email]>
Sent: Thursday, May 19, 2016 12:27:17 PM
To: Hawk, Jeff
Cc: Git Mailing List
Subject: Re: since/after not working properly

On Thu, May 19, 2016 at 8:41 AM, Jeff Hawk <[hidden email]> wrote:
> [jeff:~/src/git] master* 2s ± git log --pretty=format:"%ad" --date=short

Perhaps try it with %cd instead of %ad?
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [hidden email]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Reply | Threaded
Open this post in threaded view
|

Re: since/after not working properly

Junio C Hamano
"Hawk, Jeff" <[hidden email]> writes:

> 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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [hidden email]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Reply | Threaded
Open this post in threaded view
|

Re: since/after not working properly

Jeff Hawk

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

"Hawk, Jeff" <[hidden email]> writes:

> 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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [hidden email]
More majordomo info at  http://vger.kernel.org/majordomo-info.html