Re: [PATCH v3 2/2] sequencer: fix quoting in write_author_script

2018-08-07 Thread Junio C Hamano
Phillip Wood writes: > Yes I think the earlier approach with the more robust detection you > suggested is probably a good compromise. Junio does that sound good to > you? Surely, and thanks.

Re: [PATCH v3 2/2] sequencer: fix quoting in write_author_script

2018-08-03 Thread Phillip Wood
Hi Eric On 03/08/18 11:02, Eric Sunshine wrote: On Fri, Aug 3, 2018 at 5:33 AM Phillip Wood wrote: If there isn't some backward compatibility then if git gets upgraded while rebase is stopped then the author data will be silently corrupted if it contains "'". read_author_ident() will error out

Re: [PATCH v3 2/2] sequencer: fix quoting in write_author_script

2018-08-03 Thread Eric Sunshine
On Fri, Aug 3, 2018 at 5:33 AM Phillip Wood wrote: > If there isn't some backward compatibility then if git gets upgraded > while rebase is stopped then the author data will be silently corrupted > if it contains "'". read_author_ident() will error out but that is only > used for the root commit.

Re: [PATCH v3 2/2] sequencer: fix quoting in write_author_script

2018-08-03 Thread Phillip Wood
Dear Eric and Junio On 03/08/18 08:59, Eric Sunshine wrote: > On Thu, Aug 2, 2018 at 1:27 PM Junio C Hamano wrote: >> Phillip Wood writes: >>> For other interactive rebases this only affects external scripts that >>> read the author script and users whose git is upgraded from the shell >>> versio

Re: [PATCH v3 2/2] sequencer: fix quoting in write_author_script

2018-08-03 Thread Eric Sunshine
On Thu, Aug 2, 2018 at 1:27 PM Junio C Hamano wrote: > Phillip Wood writes: > > For other interactive rebases this only affects external scripts that > > read the author script and users whose git is upgraded from the shell > > version of rebase -i while rebase was stopped when the author contain

Re: [PATCH v3 2/2] sequencer: fix quoting in write_author_script

2018-08-02 Thread Junio C Hamano
Phillip Wood writes: > From: Phillip Wood > > Single quotes should be escaped as \' not \\'. The bad quoting breaks > the interactive version of 'rebase --root' (which is used when there is > no '--onto' even if the user does not specify --interactive) for authors > that contain "'" as sq_dequot

[PATCH v3 2/2] sequencer: fix quoting in write_author_script

2018-08-02 Thread Phillip Wood
From: Phillip Wood Single quotes should be escaped as \' not \\'. The bad quoting breaks the interactive version of 'rebase --root' (which is used when there is no '--onto' even if the user does not specify --interactive) for authors that contain "'" as sq_dequote() called read_author_ident() err