From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: phillip.wood@dunelm.org.uk
Cc: Junio C Hamano <gitster@pobox.com>,
git@vger.kernel.org, Eric Sunshine <sunshine@sunshineco.com>
Subject: pw/rebase-i-author-script-fix, was Re: What's cooking in git.git (Aug 2018, #04; Fri, 17)
Date: Mon, 20 Aug 2018 21:36:42 +0200 (DST) [thread overview]
Message-ID: <nycvar.QRO.7.76.6.1808202132510.73@tvgsbejvaqbjf.bet> (raw)
In-Reply-To: <7b340c01-f57d-1a71-e4d5-0346bb042d0c@talktalk.net>
Team,
On Mon, 20 Aug 2018, Phillip Wood wrote:
> On 17/08/2018 23:44, Junio C Hamano wrote:
> > Here are the topics that have been cooking. Commits prefixed with
> > '-' are only in 'pu' (proposed updates) while commits prefixed with
> > '+' are in 'next'. The ones marked with '.' do not appear in any of
> > the integration branches, but I am still holding onto them.
>
> > * pw/rebase-i-author-script-fix (2018-08-07) 2 commits
> > - sequencer: fix quoting in write_author_script
> > - sequencer: handle errors from read_author_ident()
> >
> > Recent "git rebase -i" update started to write bogusly formatted
> > author-script, with a matching broken reading code. These are
> > being fixed.
> >
> > Undecided.
> > Is it the list consensus to favor this "with extra code, read the
> > script written by bad writer" approach?
>
> I think there was agreement between myself and Eric on the last version,
> I'm not sure anyone else has expressed an opinion. The problem with
> fixing the quoting without any backwards compatibility is that if git is
> upgraded while a rebase is stopped read_author_script() will happily use
> the broken quoting to create a corrupted author name in the new commit
> if the name contains "'".
>
> The compatibility code in the latest version relies on the missing "'"
> at the end of the GIT_AUTHOR_DATE line which is fixed by
> es/rebase-i-author-script-fix which is now in master. If there is a
> release with es/rebase-i-author-script-fix but not
> pw/rebase-i-author-script-fix we'll have to rethink as the detection
> wont be reliable. I have a branch that fixes read_author_script() to use
> sq_dequote() at
> https://github.com/phillipwood/git/commits/wip/fix-author-script. At the
> moment it has compatibility with broken quoting, but I could strip that
> out and then sq_dequote() will return an error with the broken quoting
> and the user would have to restart the rebase. So one option is to drop
> this series and wait for me to finish the improved solution next month.
Having thought about it, I am now convinced that it wold be overkill to
cater to "upgrade in the middle of a rebase". I think we should drop that
part, as it uglifies the code rather a lot, and the impact is not worth
the effort IMHO.
Ciao,
Johannes
next prev parent reply other threads:[~2018-08-20 19:36 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-17 22:44 What's cooking in git.git (Aug 2018, #04; Fri, 17) Junio C Hamano
2018-08-18 6:29 ` Duy Nguyen
2018-08-18 6:59 ` Jonathan Nieder
2018-08-20 17:26 ` Junio C Hamano
2018-08-20 18:14 ` Derrick Stolee
2018-08-18 9:34 ` Christian Couder
2018-08-18 11:34 ` Ævar Arnfjörð Bjarmason
2018-08-18 12:54 ` Christian Couder
2018-08-18 11:10 ` Ævar Arnfjörð Bjarmason
2018-08-20 10:23 ` Phillip Wood
2018-08-20 17:44 ` Eric Sunshine
2018-08-20 19:36 ` Johannes Schindelin [this message]
2018-08-20 18:11 ` Stefan Beller
2018-08-20 21:32 ` Junio C Hamano
2018-08-20 18:19 ` Jonathan Nieder
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=nycvar.QRO.7.76.6.1808202132510.73@tvgsbejvaqbjf.bet \
--to=johannes.schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=phillip.wood@dunelm.org.uk \
--cc=sunshine@sunshineco.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).