From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: Chris Packham <judge.packham@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [RFC/PATCH] rebase--interactive: Add "sign" command
Date: Wed, 3 Aug 2016 16:31:41 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.2.20.1608031621590.107993@virtualbox> (raw)
In-Reply-To: <20160803084743.3299-1-judge.packham@gmail.com>
Hi Chris,
On Wed, 3 Aug 2016, Chris Packham wrote:
> This is similar to the existing "reword" command in that it can be used
> to update the commit message the difference is that the editor presented
> to the user for the commit. It provides a useful shorthand for "exec git
> commit --amend --no-edit -s"
I can understand how this "sign" command helps you. I myself wished for
new commands when working on my Git garden shears [*1*] (essentially, what
git rebase --interactive --preserve-merges *should* have been).
My solution was to introduce a new fake editor that calls the real editor
and afterwards converts the "new" commands into exec lines.
Having said that, this patch clashes seriously with my current effort to
move a lot of the interactive rebase from shell into plain C. It is
actually ready, but getting this into the code base is really slow-going,
unfortunately.
Now, after looking at your patch it looks to me as if this would be easily
ported, so there is not a big deal here.
However, I could imagine that we actually want this to be more extensible.
After all, all you are doing is to introduce a new rebase -i command that
does nothing else than shelling out to a command. Why not introduce a much
more flexible feature, where you add something like "rebase -i aliases"?
Maybe something like this:
[rebase "command"]
sign = git commit --amend -s --no-post-rewrite --no-edit -S
I have not completely thought this through, but maybe this direction would
make the interactive rebase even more powerful?
Ciao,
Johannes
next prev parent reply other threads:[~2016-08-03 14:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-03 8:47 [RFC/PATCH] rebase--interactive: Add "sign" command Chris Packham
2016-08-03 14:31 ` Johannes Schindelin [this message]
2016-08-03 15:19 ` Johannes Schindelin
2016-08-03 16:08 ` Junio C Hamano
2016-08-03 16:15 ` Johannes Schindelin
2016-08-03 18:08 ` Jeff King
2016-08-04 0:53 ` Chris Packham
2016-08-04 16:05 ` Junio C Hamano
2016-08-05 16:04 ` Johannes Schindelin
2016-08-04 0:41 ` Chris Packham
2016-08-03 15:58 ` Junio C Hamano
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=alpine.DEB.2.20.1608031621590.107993@virtualbox \
--to=johannes.schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=judge.packham@gmail.com \
/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).