Re: [PATCH] git-gui: Localize commit/author dates when displaying them

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Junio C Hamano <gitster@xxxxxxxxx> wrote:
> "Shawn O. Pearce" <spearce@xxxxxxxxxxx> writes:
> 
> > Since git-for-each-ref is presenting us formatted dates and it offers
> > no way to change that setting even in git 1.5.3.1 we need to first do
> > a parse of the text strings it produces, correct for timezones, then
> > reformat the timestamp using Tcl's formatting routines.
> 
> Hmph, would use of --pretty=format: and using iso timestamps
> make the translation easier?  At least you do not have to worry
> about Jan/Feb/Mar etc.

Raw timestamps would be easiest.

But this is for-each-ref, not git-log.  Its %(authortime) macro in
the --format string does not support any sort of date formatting
options.  So uh, no, --pretty=format won't help me here.

I'd have to make code changes to for-each-ref to allow control
of how timestamps are output.  Then I'd have to put magic flags
into git-gui to see what version of git I'm using and assume if
the flag will work or not.  And if it won't then I still have to
fall back into the current Jan/Feb/Mar code that I have right now.

So I'm actually not inclined right now to fix for-each-ref.  But I
probably should.  Its going on my "Git todo pile".  Which as
everyone on this list knows is currently about 10x what I can
actually accomplish in my natural lifetime.  ;-)

-- 
Shawn.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux