From: Thomas Rast <trast@student.ethz.ch>
To: Jeff King <peff@peff.net>
Cc: Chris Lamb <lamby@debian.org>, <git@vger.kernel.org>
Subject: Re: [PATCH] git-rebase--interactive: Handle commit messages that end in backslash
Date: Fri, 14 May 2010 12:15:55 +0200 [thread overview]
Message-ID: <201005141215.55746.trast@student.ethz.ch> (raw)
In-Reply-To: <20100513143350.GA2742@sigill.intra.peff.net>
Jeff King wrote:
> As I understand it[1], the subject line shown is for
> human consumption only, and the actual operations happen on the included
> sha1. So we could munge it in a non-reversible way without breaking
> anything.
>
> -Peff
>
> [1] I may be wrong. This is not code I'm too familiar with, and I do
> remember a proposal at some point for automagically handling subjects
> with "wip" or "squash" in them. Still, a light munging may work.
During the actual rebasing, only the 'cmd sha' portion of the line
matters, as evidenced by the code doing
do_next () {
rm -f "$MSG" "$AUTHOR_SCRIPT" "$AMEND" || exit
read command sha1 rest < "$TODO"
and then not using $rest except in status messages.
The automatic handling you are referring to is --autosquash, which
happens in rearrange_squash() which is a preprocessing stage. AFAICS
that function is still okay iff the munging maps prefixes to prefixes.
--
Thomas Rast
trast@{inf,student}.ethz.ch
prev parent reply other threads:[~2010-05-14 10:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-13 12:39 [PATCH] git-rebase--interactive: Handle commit messages that end in backslash Chris Lamb
2010-05-13 12:58 ` Chris Lamb
2010-05-13 14:33 ` Jeff King
2010-05-14 10:15 ` Thomas Rast [this message]
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=201005141215.55746.trast@student.ethz.ch \
--to=trast@student.ethz.ch \
--cc=git@vger.kernel.org \
--cc=lamby@debian.org \
--cc=peff@peff.net \
/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).