From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fhigh-b8-smtp.messagingengine.com (fhigh-b8-smtp.messagingengine.com [202.12.124.159]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5FD77218EBA for ; Mon, 1 Jun 2026 05:33:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.159 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780291996; cv=none; b=YP+Ux7fD1DaM5fuM7mt0ZIUgp4v/P8oVjIJTfdbRI6gWYp8TjfzMbibuDtE5gUOos1da7VBOcfy9g452B2FrB/84gLR9Y+F/BW+dIR+QP9rkay7KyC58MIfLHDvzavOZtTAg2KS8WfPvqCzltSfFA2cNdwwF53uQIwuFNLTe36g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780291996; c=relaxed/simple; bh=a7a9zWD0TqhveFuGgNl5rnPZdme1BzRWjrT/18uNpiU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Tn2ZpOiwE286GgMyXGlI8MYOGLf/r6taOg3st6J5qzccTnPSyeDC0vDHjFJHPtjls72Wi7wnP727byWYO9TQvx4hT/bJO3dqfO3m+YDZgceWyQLXuMW3mhD4wmHEedO6f/72UsTOTm1ObEgyxa9hFQUclfwvsAGnntCNsCpJ47k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com; spf=pass smtp.mailfrom=pobox.com; dkim=pass (2048-bit key) header.d=pobox.com header.i=@pobox.com header.b=P7GHb0L7; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=cDP90flu; arc=none smtp.client-ip=202.12.124.159 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pobox.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pobox.com header.i=@pobox.com header.b="P7GHb0L7"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="cDP90flu" Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id A13757A0197; Mon, 1 Jun 2026 01:33:14 -0400 (EDT) Received: from phl-frontend-02 ([10.202.2.161]) by phl-compute-04.internal (MEProxy); Mon, 01 Jun 2026 01:33:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pobox.com; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1780291994; x=1780378394; bh=iCp6BXKL78 X8EFR89sUmmogP/LlCf7LHe34QvUSAVhg=; b=P7GHb0L7rK4toKEVqLenSi69Ta vrFfcfT5GdUnPgGLSZiStxG6YR4phByb+vm3qRDro18CicatyMlOV9Cofe77Kb8L hYgbf3iDW6PU2kNHj1L/o/Qd0fPFcsbyKPrSptTCta9sgfIqAGIU9A7WRHkLFB7o MGUWPn26WkgteOf+8MZgjXSDuD/VAgBX7Hy23dzzfEWcA5qRX+bAbQicZqOr/pQx 6poJznD2afidglWCJPDWqGY4LmLWGLwvs4EXliv8EXve/eb8kZNzPyW0S/4BYMon agwjQs6DHfSodNQdhzCjhACUixY2FheISfMDgzM/6XbtakG90h2PsFtNf6MA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1780291994; x=1780378394; bh=iCp6BXKL78X8EFR89sUmmogP/LlCf7LHe34 QvUSAVhg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-ME-Proxy: Feedback-ID: if26b431b:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 1 Jun 2026 01:33:13 -0400 (EDT) From: Junio C Hamano To: Jeff King Cc: Wesley Schwengle , Git maillinglist Subject: Re: git hook question In-Reply-To: <20260529052141.GA1099450@coredump.intra.peff.net> (Jeff King's message of "Fri, 29 May 2026 01:21:41 -0400") References: <20260529052141.GA1099450@coredump.intra.peff.net> Date: Mon, 01 Jun 2026 14:33:13 +0900 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Jeff King writes: > I don't think so; the command is expected to handle (or ignore) the > arguments as appropriate. We should also caution that the command is expected to handle not just the arguments but its standard input. Not reading any and exiting may be a no-no for some hooks. And unlike command line arguments, there is no handy way to say "I do not care what the input is" (other than putting "cat >/dev/null;" in front of what you really want to do, that is).