Re: [PATCH v2 24/24] Rename functions to avoid breaking in-flight topics
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 4, 2018, 20:56 UTC
- Message-ID
- <xmqqo9dd6kx1.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <20180903180932.32260-25-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy <pclouds@gmail.com> writes:
Show 5 quoted lines
> The three functions init_revisions(), diff_setup() and rerere() are > prefixed temporarily with repo_ to avoid breaking other topics which > add new call sites for these functions. This is a temporary > measure. Once everything is merged, it will be reverted and the new > call sites fixed.
That's a sensible thing to do, but isn't it too late at 24/24 stage? IOW, doesn't in-flight topics break if up to 23/24 of this series is merged?
IOW, the one that teaches "work in this repository" to rerere(int) for example should have introduced
repo_rerere(struct repository *, int); #define rerere(x) repo_rerere(the_repository, x)
in its own step, not this late in the series, no?
Show 13 quoted lines
> diff --git a/apply.c b/apply.c > index fc52993548..fdae1d423b 100644 > --- a/apply.c > +++ b/apply.c > @@ -4632,7 +4632,7 @@ static int write_out_results(struct apply_state *state, struct patch *list) > } > string_list_clear(&cpath, 0); > > - rerere(state->repo, 0); > + repo_rerere(state->repo, 0); > } > > return errs;