Re: [PATCH 07/14] revert: Introduce struct to keep command-line options
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Jul 12, 2011, 06:33 UTC
- Message-ID
- <20110712063335.GA10742@elie>
- In-Reply-To
- <CALkWK0mxXwvurJzDOYOdXS33cb563WnKmG1_cue6F4pgqOU_WQ@mail.gmail.com>
Ramkumar Ramachandra wrote:
> Since I'm not sure the function you propose will make it to > sequencer.c, I don't want to introduce it now.
Wouldn't it be easy to remove such a function later?
Practically speaking, it is not obvious to me that making any of these variables non-static is needed for "cherry-pick --continue" to work, but given that most of the state is being made non-static anyway, readers will be likely to wonder why "me" is left behind. So the obvious choices would be to
a. make "me" a member of the replay_opts struct; or
b. compute "me" in each function that needs it by calling a helper
function; or
c. add some explanation to the commit message to clarify the status
of "me" as static-but-won't-be-in-the-long-term and a reason for
thatbased on the needs of the current code. (b) sounds simplest to me, though I haven't tried it.