From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS53758 23.128.96.0/24 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS,URIBL_CSS,URIBL_CSS_A shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id 9B89E1F953 for ; Tue, 4 Jan 2022 22:04:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235103AbiADWEs (ORCPT ); Tue, 4 Jan 2022 17:04:48 -0500 Received: from pb-smtp21.pobox.com ([173.228.157.53]:65173 "EHLO pb-smtp21.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235102AbiADWEr (ORCPT ); Tue, 4 Jan 2022 17:04:47 -0500 Received: from pb-smtp21.pobox.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id D82CD1760D0; Tue, 4 Jan 2022 17:04:46 -0500 (EST) (envelope-from junio@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=bu+BLYJNQnNFgBDNdLjSO1riL1RMr3295AHrFh YOfHw=; b=lofQiNCzMs9bXpsxvCHN8d1nKZ3NRuStg7L24kqFxOVdn+8N73+vUW wW83gCdtin82SYyhENynOxCxg5TB8pZ/dg7ftZOFbSRsnQH8CgwxhOex2AjgS0MD q6q9Gm7wxFthdXEQ3v18O65iy9dXbkNTE+l6IsCdkyHovXi7Izzro= Received: from pb-smtp21.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id D07C91760CF; Tue, 4 Jan 2022 17:04:46 -0500 (EST) (envelope-from junio@pobox.com) Received: from pobox.com (unknown [104.133.2.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp21.pobox.com (Postfix) with ESMTPSA id 2519F1760CB; Tue, 4 Jan 2022 17:04:43 -0500 (EST) (envelope-from junio@pobox.com) From: Junio C Hamano To: "John Cai via GitGitGadget" Cc: git@vger.kernel.org, =?utf-8?Q?Ren=C3=A9?= Scharfe , John Cai Subject: Re: [PATCH v3] builtin/reflog.c: use parse-options api for expire, delete subcommands References: Date: Tue, 04 Jan 2022 14:04:41 -0800 In-Reply-To: (John Cai via GitGitGadget's message of "Tue, 04 Jan 2022 17:41:01 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 5224C0D6-6DAA-11EC-BB76-CBA7845BAAA9-77302942!pb-smtp21.pobox.com Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org "John Cai via GitGitGadget" writes: > From: John Cai > > 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" Makes sense. > -/* NEEDSWORK: switch to using parse_options */ > -static const char reflog_expire_usage[] = > -N_("git reflog expire [--expire=