From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fout-b8-smtp.messagingengine.com (fout-b8-smtp.messagingengine.com [202.12.124.151]) (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 E6BB22AD35 for ; Mon, 20 Jul 2026 04:01:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.151 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784520077; cv=none; b=a9GRzQGPJcUwzoeHK8vUJoClq24AU0LWhQxLluRPI12ZchDLC99rN5eRtGLBbYjBAireyJZv81sxPGbLZB22ghWNT4BZLbioxMmeD7P/xD9Mr/OtCrJ3BGIqUjjpLeNZjUz3KgA76Z9TBXqJePldLzhoxnCn+W1Babikg/G44Uo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784520077; c=relaxed/simple; bh=YKQnTGub8B59E82vl3Z7kBdlsyYL9Iim4lkw6+VS8oM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=d7/IMwQ6llKpAWp+blQfh2oPj4wu71cAQ3APVtr3loJEVKR18A4GUqQwoXFOOM6DgSxa2DvNp/4rfYbrCUzIYd96zQ+6UTxKxl5kPb+G1vNhXhwSXf50MAEPDWKbQtRQXdjH7TxNqBZ2yHNMzS9QPgLJhndIWBealqwbw5sdlGw= 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=dyH8iSZk; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=ogHAP6nq; arc=none smtp.client-ip=202.12.124.151 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="dyH8iSZk"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="ogHAP6nq" Received: from phl-compute-09.internal (phl-compute-09.internal [10.202.2.49]) by mailfout.stl.internal (Postfix) with ESMTP id 00ADF1D0004A; Mon, 20 Jul 2026 00:01:14 -0400 (EDT) Received: from phl-frontend-01 ([10.202.2.160]) by phl-compute-09.internal (MEProxy); Mon, 20 Jul 2026 00:01:15 -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=fm1; t=1784520074; x=1784606474; bh=EGF+rgcM7b eYoSXNpU+1CoHUw5LsQr4iVJ6D6+G9EfY=; b=dyH8iSZkJaCkr+9DxaCIEpKJl5 IqMqJT9OtCjbU6DUdHIyWgJuyQOe7rmNa8jFo7RYJFGX9GhwgsEieRvNc2sOT2kH +/p4bvZBMS9Xkc215vfNjfrcbdg0aXIoJpXBZA3lMcX7ZN3mTzzq+8dbvpCQeNPx 6OGE5+uR5UA2m2TbOxy1pfJpiOVGkeELRCsiLFTt8lyLosU0yg2OTUlUUUFT+Pk4 okrEs16iZvH2FbT018k89VYMIyPHCWL00DKd5a5mO/Hf/8zgdniRqSBsLqAIx5Zs zFyQiAMwiz6zGNqMf7k5PL/sA0r9e5ROt/6E/wuOSrVTGkIOtrYNEPsYAPlA== 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=fm2; t= 1784520074; x=1784606474; bh=EGF+rgc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/aoLwURkotc7f6wc36NFplD1tqynYe9SyQ X-ME-Proxy: Feedback-ID: if26b431b:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 20 Jul 2026 00:01:14 -0400 (EDT) From: Junio C Hamano To: Lucas Seiki Oshiro Cc: K Jayatheerth , git@vger.kernel.org, jltobler@gmail.com Subject: Re: [GSoC Patch v2 6/7] repo: add path.grafts with absolute and relative suffix formatting In-Reply-To: (Lucas Seiki Oshiro's message of "Sun, 19 Jul 2026 21:20:22 -0300") References: <20260716012138.6714-1-jayatheerthkulkarni2005@gmail.com> <20260717133015.32040-1-jayatheerthkulkarni2005@gmail.com> <20260717133015.32040-7-jayatheerthkulkarni2005@gmail.com> Date: Sun, 19 Jul 2026 21:01:12 -0700 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 Lucas Seiki Oshiro writes: >> Introduce `path.grafts.absolute` and `path.grafts.relative` keys to >> `git repo info`. This allows scripting layers to query the active grafts >> context cleanly while scaling transparently with active `GIT_GRAFT_FILE` >> environment variable overrides. > > I ran `git repo info path.grafts.relative` in a repository with no > `grafts` file, and it returned `.git/info/grafts`, which obviously > doesn't exist. > > Wouldn't it be better if we check if that file exists before > returning this value? That is an interesting question, but I think it depends on who is querying and for what purpose. If a script is asking where to write the file, then the author wants to know where the file is supposed to be, even if no such file exists yet. Since the file format is public, they are free to write their own tools to manipulate it. Thanks.