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: AS3215 2.0.0.0/16 X-Spam-Status: No, score=-3.2 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from out1.migadu.com (out1.migadu.com [IPv6:2001:41d0:2:863f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id EDAA71F5AE for ; Sun, 16 May 2021 02:42:52 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1621132968; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=fhENHYVX0ZozwHfWzmTRhfDuH7SgkSvny8lZrH9DIwE=; b=fgJQKuq+JXsTU5N/iN+0DHu8X/K+N4SbD1dfEsJfJzuUgi34R4CFecyTGeZ217SFuKjE+P xrhjaFgGAcH8PTEzHZnZI2NIsxEVe69Lx4OwGbViWi9gESJQwIVPFoFdFqi634wCOAd6Jh 0h1gM53g7oHNiaKOrwyJ2MrhBeJXO8nZ/5tr1qN+pjrdXPvaiPgLC/aIQQQkG82Q279uGZ RU9W5bm0tUVQ/nLhgK1fd8K2e7IkQ9kAp+yxLHLraI4iQQnLjfNQmmO502sVGEi69ZrcT6 7/w3hxwUVgUh+0U8ykuOQJkMUQuFumVSg3HBnImdDOOxZEXEkWmEzLROtsLCSA== From: Kyle Meyer To: meta@public-inbox.org Subject: [PATCH] lei rediff: handle stdin like other commands Date: Sat, 15 May 2021 22:42:42 -0400 Message-Id: <20210516024242.8998-1-kyle@kyleam.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: kyle@kyleam.com List-Id: `lei rediff' reads from stdin when no argument is specified, but this is likely unintentional given that other lei commands instead have a --stdin|- option and that `lei rediff --help' includes --stdin. Align rediff's handling with the other commands'. --- lib/PublicInbox/LEI.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm index 5f178418..2144e390 100644 --- a/lib/PublicInbox/LEI.pm +++ b/lib/PublicInbox/LEI.pm @@ -180,8 +180,9 @@ our %CMD = ( # sorted in order of importance/use: qw(git-dir=s@ cwd! verbose|v+ mail! oid-a|A=s path-a|a=s path-b|b=s), @lxs_opt, @c_opt ], -'rediff' => [ '[--stdin|LOCATION...]', +'rediff' => [ '--stdin|LOCATION...', 'regenerate a diff with different options', + 'stdin|', # /|\z/ must be first for lone dash qw(git-dir=s@ cwd! verbose|v+ color:s no-color), @diff_opt, @lxs_opt, @c_opt ], base-commit: 79e274b293a71fb41dd8bf6e9598a8e8a24fed4f -- 2.31.1