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

Re: filter-branch --env-filter GIT_AUTHOR_DATE

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Jan 19, 2011, 10:32 UTC
Message-ID
<4D36BDD9.4050108@viscovery.net>
In-Reply-To
<AANLkTi=TAhYeWbyocag2myBXA2TfH7_r=hmam51YKbhm@mail.gmail.com>
Am 1/19/2011 11:08, schrieb Tuncer Ayaz:
Show 19 quoted lines
> On Wed, Jan 19, 2011 at 8:01 AM, Johannes Sixt wrote:
>> Am 1/18/2011 17:43, schrieb Tuncer Ayaz:
>>> To fix invalid timezone info in a repo I ran
>>> git filter-branch --env-filter '
>>>   GIT_AUTHOR_DATE=`echo ${GIT_AUTHOR_DATE}|sed s/+0000/-0800/`' HEAD
>>>
>>> This fixed the invalid entries but the new timezone is -0700
>>> instead of -0800. Is this expected?
>>
>> Parse error. You fixed it, but it is not fixed? So what?
> 
> Fixed because it is not +0000 anymore. Surprised because the new
> timezone is -0700 and not -0800.
> 
>> What do you mean by "the new timezone is"? Do you mean "...is reported
>> as"? If so, reported by which tools?
> 
> git log
> git cat-file $REV

$ git filter-branch -f --env-filter 'echo; echo "$GIT_AUTHOR_DATE"; GIT_AUTHOR_DATE=`echo ${GIT_AUTHOR_DATE}|sed s/+0100/-0800/`; echo "$GIT_AUTHOR_DATE"' -- -1 Rewrite 6fb5ec91707a4433628eae5d9d68153ca8b819fe (1/1) 1292311163 +0100 1292311163 -0800

Ref 'refs/heads/master' was rewritten $ git cat-file commit HEAD tree 43554f2216bbcfc96385db0641ae212409f26f21 parent 942f54790453970cfffbfedf29e47ac27b9ba995 author Johannes Sixt <j.sixt@viscovery.net> 1292311163 -0800 committer Johannes Sixt <j.sixt@viscovery.net> 1292311163 +0100

master
*Shrug*
-- Hannes
Previous: Tuncer AyazNext: Tuncer Ayaz
Message 5 of 6 in “filter-branch --env-filter GIT_AUTHOR_DATE”
  1. Tuncer AyazJan 18, 2011
  2. Johannes SixtJan 19, 2011
  3. Tuncer AyazJan 19, 2011
  4. Tuncer AyazJan 19, 2011
  5. Johannes SixtJan 19, 2011
  6. Tuncer AyazJan 19, 2011

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.