From: Yann Droneaud <ydroneaud@opteya.com>
To: git@vger.kernel.org
Cc: Yann Droneaud <ydroneaud@opteya.com>
Subject: git merge --date --author
Date: Fri, 07 Mar 2014 11:30:15 +0100 [thread overview]
Message-ID: <1394188215.3257.17.camel@localhost.localdomain> (raw)
Hi,
I was trying to rebuild some history and found myself trying to use some
options with git merge which are available in git commit:
git merge \
--date "2013-12-31 23:59:59 +0000" \
--author "Happy New Year <happy.new-year@gregorian.calendar>" \
current-year
But unfortunately, unlike git commit, git merge doesn't support either
--date or --author.
I can work around with environment variables:
GIT_AUTHOR_DATE="2013-12-31 23:59:59 +0000" \
GIT_AUTHOR_NAME="Happy New Year" \
GIT_AUTHOR_EMAIL="happy.new-year@gregorian.calendar" \
git merge current-year
But I'd like to know if there's a specific reason for git merge to not
support --date and --author ?
Regards.
--
Yann Droneaud
OPTEYA
next reply other threads:[~2014-03-07 10:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-07 10:30 Yann Droneaud [this message]
2014-03-07 11:41 ` git merge --date --author Michael Haggerty
2014-03-07 12:58 ` Andreas Schwab
2014-03-07 19:43 ` Junio C Hamano
2014-03-10 12:52 ` Yann Droneaud
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=1394188215.3257.17.camel@localhost.localdomain \
--to=ydroneaud@opteya.com \
--cc=git@vger.kernel.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).