From: Jeff King <peff@peff.net>
To: Michael Haggerty <mhagger@alum.mit.edu>
Cc: David Glasser <glasser@davidglasser.net>,
git@vger.kernel.org, Fabian Ruch <bafain@gmail.com>
Subject: Re: Keep original author with git merge --squash?
Date: Thu, 12 Feb 2015 07:12:58 -0500 [thread overview]
Message-ID: <20150212121258.GA28801@peff.net> (raw)
In-Reply-To: <54DC9014.1010200@alum.mit.edu>
On Thu, Feb 12, 2015 at 12:35:48PM +0100, Michael Haggerty wrote:
> > I assume you are already munging in your editor the template provided by
> > "git commit" after the squash? What would be really nice, IMHO, is if
> > there was a way to set the author during that edit (e.g., by moving one
> > of the "Author:" lines to the top of the file). That would cover your
> > use case, I think, and would also be useful in general.
>
> If only Git supported options on todo list lines [1], this could be
> implemented via a "--use-author" option:
>
> pick --use-author 1234556 blah
> squash 84392ab etc
> fixup 49106a5 another
>
> Happily, this would work with fixup, too, without forcing the user to go
> into the editor. Also, it wouldn't require metadata to be read in-band
> from the commit message.
Yes, that would be nice, but I don't think David is using a sequencer
todo list here at all. It's just:
git merge --squash pr/100
git commit
-Peff
next prev parent reply other threads:[~2015-02-12 12:13 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-11 17:21 Keep original author with git merge --squash? David Glasser
2015-02-12 9:28 ` Jeff King
2015-02-12 11:35 ` Michael Haggerty
2015-02-12 12:12 ` Jeff King [this message]
2015-02-12 18:42 ` David Glasser
2015-02-12 20:18 ` Junio C Hamano
2015-02-12 20:53 ` David Glasser
2015-02-12 21:23 ` Junio C Hamano
2015-02-12 22:16 ` David Glasser
2015-02-12 22:19 ` David Glasser
2015-02-12 22:34 ` Junio C Hamano
2015-02-12 22:50 ` Jeff King
2015-02-12 23:32 ` Junio C Hamano
2015-02-13 7:10 ` Jeff King
2015-02-13 19:30 ` Junio C Hamano
2015-02-13 19:55 ` Jeff King
2015-02-13 0:17 ` David Glasser
2015-02-13 0:21 ` David Glasser
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=20150212121258.GA28801@peff.net \
--to=peff@peff.net \
--cc=bafain@gmail.com \
--cc=git@vger.kernel.org \
--cc=glasser@davidglasser.net \
--cc=mhagger@alum.mit.edu \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.