Re: [GSoC][PATCH v4] fixup! rebase -i: rewrite write_basic_state() in C
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 31, 2018, 15:23 UTC
- Message-ID
- <xmqqy3drctu4.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <20180731121115.12296-1-alban.gruin@gmail.com>
Alban Gruin <alban.gruin@gmail.com> writes:
Show 13 quoted lines
> As pointed out by SZEDER Gábor, git-rebase.sh wrote to to 'quiet' with > an `echo`: > > echo "$GIT_QUIET" > "$state_dir/quiet" > > This mean that even if $GIT_QUIET is empty, a newline is written to > quiet. The rewrite of write_basic_state() changed this behaviour, which > could lead to problems. This patch changes the rewritten version to > behave like the shell version. > > Signed-off-by: Alban Gruin <alban.gruin@gmail.com> > --- > Hi Junio, could you apply this patch on top of ag/rebase-i-in-c, please?
Hmph, from reading your other message
https://public-inbox.org/git/dce8c99b-51e9-4ed1-8ae4-28049cb6e7ec@gmail.com/
I got an impression that a rerolled version is coming anyway. Is this fix so urgent that it needs tobe squashed in in the meantime and cannot wait?
Show 17 quoted lines
> > sequencer.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sequencer.c b/sequencer.c > index d257903db0..0d41e82953 100644 > --- a/sequencer.c > +++ b/sequencer.c > @@ -2332,7 +2332,7 @@ int write_basic_state(struct replay_opts *opts, const char *head_name, > if (quiet) > write_file(rebase_path_quiet(), "%s\n", quiet); > else > - write_file(rebase_path_quiet(), ""); > + write_file(rebase_path_quiet(), "\n"); > > if (opts->verbose) > write_file(rebase_path_verbose(), "");