Re: [PATCH v2] [GSOC] cherry-pick: fix bug when used with GIT_CHERRY_PICK_HELP
- From
ZheNing Hu <adlternative@gmail.com>
- Date
- Jul 28, 2021, 11:34 UTC
- Message-ID
- <CAOLTT8SR86q+q37traSpk7iWEzAaGTtZzAWrck+0LnqgSefKRA@mail.gmail.com>
- In-Reply-To
- <xmqqtukfcvzv.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> 于2021年7月28日周三 上午5:00写道:
Show 7 quoted lines
> Otherwise we can allocate a new bit in the structure, have relevant > callers set it, and teach cherry-pick an unadvertised command line > option that sets the bit, and use that option only from > git-rebase--preserve-merges when it makes a call to cherry-pick. > When "rebase -p" is either retired or rewritten in C, we can retire > the option from cherry-pick. >
Just use a PARSE_OPT_HIDDEN cannot prevent the user from using the option... Is there a better way?
-- ZheNing Hu