Re: [GSoC][PATCH v3 12/13] rebase -i: implement the logic to initialize the variable $revision in C
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 12, 2018, 18:24 UTC
- Message-ID
- <xmqqk1q0xqfj.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <xmqqo9fcxquk.fsf@gitster-ct.c.googlers.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 12 quoted lines
> If I am reading the body of this if() block correctly, I think it > does everything init_revisions_and_shortrevisions shell function > does, i.e. compute $revisions for both cases with or without > upstream and write squash-onto state if needed, so that we can call > the sequencer_make_script() helper with necessary $revisions arg > without being passed from the command line of --make-script helper. > > But the hunk below tells me that you are still calling > init_revisions_and_shortrevisions shell function before we are > called. Why? IOW, why isn't this step removing that shell function > *and* the call to it, now its logic is fully implemented in the body > of this if() block?
You can ignore this part (but not the rest) of my comments, as 13/13 answers it adequately. After this step, the shell function still needs to be called to set $shortrevisions.
Thanks.