git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2 2/2] git-cvsimport: allow local timezone for commits

From
Christopher Rorvick <chris@rorvick.com>
Date
Oct 14, 2012, 20:58 UTC
Message-ID
<CAEUsAPYbywPJUje8LGsOMYn_oQ-RFxznjZ1KeAsZL=skiDtG3g@mail.gmail.com>
In-Reply-To
<7vfw5hzj16.fsf@alter.siamese.dyndns.org>
On Sun, Oct 14, 2012 at 1:04 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 21 quoted lines
> Chris Rorvick <chris@rorvick.com> writes:
>
>> CVS patches are imported with the timezone offset of +0000 (UTC).
>> Allow timezone offsets to be calculated from the the local timezone by
>> adding -l to the command line or specifying cvsimport.l in the config.
>
> A single "I do not like everybody's timestamp is in GMT, so instead
> use the local timezone I the importer happen to be in" sounds more
> like an uninteresting hack with limited application than a useful
> new feature.  Even back in CVS days, many projects and repositories
> worth converting to Git were multi-people projects that span across
> timezones.
>
> I am wondering if it is sufficient to enhance existing cvs-authors
> file to tie a person to a timezone to add a feature like this in a
> more sensible manner.  I'd assume that in many multi-person project,
> one person, even when travelling, tend to record commits in a single
> timezone (i.e. his or her home timezone).  Even for a single-person
> project, adding a single entry ot the file is not too much to ask to
> the user.  Being able to view his human-readable name and timezone
> would be good value for the amount of trouble.

This sounds pretty straight forward. It had crossed my mind that using the cvs-authors file like this would be a more general solution, but I thought that what I proposed was at least a step in the right direction. But since anyone that cares about this is almost certainly putting together a cvs-authors file anyway, I agree that being able to set an alternate default timezone probably isn't a very useful addition.

I'll resubmit when I have something working.
Previous: Junio C Hamano
Message 5 of 5 in “git-cvsimport: support local timezone”
  1. 0/2 git-cvsimport: support local timezoneChris Rorvick, Oct 13, 2012
  2. 1/2 git-cvsimport: use localtime for converting timestampsChris Rorvick, Oct 13, 2012
  3. 2/2 git-cvsimport: allow local timezone for commitsChris Rorvick, Oct 13, 2012
  4. Junio C HamanoOct 14, 2012
  5. Christopher RorvickOct 14, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.