Re: [PATCH v5] builtin/reflog.c: use parse-options api for expire, delete subcommands

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 6 Jan 2022, at 16:09, Junio C Hamano wrote:

> "John Cai via GitGitGadget" <gitgitgadget@xxxxxxxxx> writes:
>
>> From: John Cai <johncai86@xxxxxxxxx>
>>
>> Switching out manual arg parsing for the parse-options API for the
>> expire and delete subcommands.
>>
>> Move explicit_expiry flag into cmd_reflog_expire_cb struct so callbacks
>> can set both the value of the timestamp as well as the explicit_expiry
>> flag.
>>
>> Signed-off-by: "John Cai" <johncai86@xxxxxxxxx>
>> ---
>
> Thanks.  Will queue.
>
>>      @@ builtin/reflog.c: static void set_reflog_expiry_param(struct cmd_reflog_expire_c
>>       +	const struct option options[] = {
>>       +		OPT_BIT(0, "dry-run", &flags, N_("do not actually prune any entries"),
>>       +			EXPIRE_REFLOGS_DRY_RUN),
>>      -+		OPT_BIT(0, "rewrite", &flags,
>>      ++			OPT_BIT(0, "rewrite", &flags,
>>       +			N_("rewrite the old SHA1 with the new SHA1 of the entry that now precedes it"),
>
> I think this change is a fat-finger; will correct while queuing.

Oops, yes. Thanks for that and helping me through the review process :)




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux