From: Rogan Dawes <rogan@dawes.za.net>
To: Alex K <spaceoutlet@gmail.com>
Cc: Miklos Vajna <vmiklos@frugalware.org>,
Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>,
git@vger.kernel.org
Subject: Re: date change of commit?
Date: Thu, 29 Oct 2009 16:47:03 +0200 [thread overview]
Message-ID: <4AE9AAE7.2080404@dawes.za.net> (raw)
In-Reply-To: <e4a904790910290555n61bca296g3624c1aced50ed85@mail.gmail.com>
Alex K wrote:
> And how do you actually set those variables? Sorry to ask such a
> trivial question but it's been an hour that i'm going through the doc
> for such a simple feature. I thought those were environment variables
> ... but they are not seen under git var -l. Thank you.
>
As you suspected, they are environment variables.
i.e. :
$ GIT_AUTHOR_DATE="1112911993 -0700" git commit x
Hope that helps.
Rogan
> 2009/10/27 Miklos Vajna <vmiklos@frugalware.org>:
>> On Tue, Oct 27, 2009 at 10:41:47AM +0100, Alex K <spaceoutlet@gmail.com> wrote:
>>> Thank you. And how would you use git-filter-branch to create another
>>> branch with a different time stamp? Is it possible to commit under a
>>> different time stamp than the one provided by your default local time?
>> You can set GIT_AUTHOR_DATE and GIT_COMMITTER_DATE. Both expect a format
>> like: "1112911993 -0700" (unix timestamp + timezone info).
>>
next prev parent reply other threads:[~2009-10-29 14:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-25 11:35 date change of commit? Alex K
2009-10-25 17:14 ` Matthieu Moy
2009-10-27 9:41 ` Alex K
2009-10-27 12:21 ` Miklos Vajna
2009-10-29 12:55 ` Alex K
2009-10-29 14:47 ` Rogan Dawes [this message]
2009-10-29 16:43 ` Thomas Rast
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4AE9AAE7.2080404@dawes.za.net \
--to=rogan@dawes.za.net \
--cc=Matthieu.Moy@grenoble-inp.fr \
--cc=git@vger.kernel.org \
--cc=spaceoutlet@gmail.com \
--cc=vmiklos@frugalware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).