git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git merge --date --author
@ 2014-03-07 10:30 Yann Droneaud
  2014-03-07 11:41 ` Michael Haggerty
  2014-03-07 12:58 ` Andreas Schwab
  0 siblings, 2 replies; 5+ messages in thread
From: Yann Droneaud @ 2014-03-07 10:30 UTC (permalink / raw)
  To: git; +Cc: Yann Droneaud

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-03-10 12:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-07 10:30 git merge --date --author Yann Droneaud
2014-03-07 11:41 ` Michael Haggerty
2014-03-07 12:58 ` Andreas Schwab
2014-03-07 19:43   ` Junio C Hamano
2014-03-10 12:52     ` Yann Droneaud

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).