Re: [PATCH 1/3] Add 'human' date format

2019-01-05 Thread Jeff King
On Fri, Jan 04, 2019 at 06:03:18AM -0700, Stephen P Smith wrote: > On Friday, January 4, 2019 12:50:35 AM MST Jeff King wrote: > > On Thu, Jan 03, 2019 at 06:19:56AM -0700, Stephen P. Smith wrote: > > > > > > I didn't see anything in the code which would prohibit setting something > > > like that

Re: [PATCH 1/3] Add 'human' date format

2019-01-04 Thread Stephen P Smith
On Friday, January 4, 2019 12:50:35 AM MST Jeff King wrote: > On Thu, Jan 03, 2019 at 06:19:56AM -0700, Stephen P. Smith wrote: > > > > I didn't see anything in the code which would prohibit setting something > > like that. > > Yeah, I don't think supporting that is too hard. I was thinking > som

Re: [PATCH 1/3] Add 'human' date format

2019-01-03 Thread Jeff King
On Thu, Jan 03, 2019 at 06:19:56AM -0700, Stephen P. Smith wrote: > On Thursday, January 3, 2019 12:37:35 AM MST Jeff King wrote: > > I like the idea of "human", and I like the idea of "auto", but it seems > > to me that these are really two orthogonal things. E.g., might some > > people not want

Re: [PATCH 1/3] Add 'human' date format

2019-01-03 Thread Stephen P. Smith
On Thursday, January 3, 2019 12:37:35 AM MST Jeff King wrote: > I like the idea of "human", and I like the idea of "auto", but it seems > to me that these are really two orthogonal things. E.g., might some > people not want to do something like: > > git config log.date auto:relative I didn't see

Re: [PATCH 1/3] Add 'human' date format

2019-01-02 Thread Jeff King
On Sun, Dec 30, 2018 at 05:31:48PM -0700, Stephen P. Smith wrote: > Also add 'auto' date mode, which defaults to human if we're using the > pager. So you can do > > git config --add log.date auto > > and your "git log" commands will show the human-legible format unless > you're scripting

[PATCH 1/3] Add 'human' date format

2018-12-30 Thread Stephen P. Smith
From: Linus Torvalds This adds --date=human, which skips the timezone if it matches the current time-zone, and doesn't print the whole date if that matches (ie skip printing year for dates that are "this year", but also skip the whole date itself if it's in the last few days and we can just say w