From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qt1-f174.google.com (mail-qt1-f174.google.com [209.85.160.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 49BBF40F73B for ; Wed, 22 Jul 2026 10:29:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784716198; cv=none; b=PqtY8WxZ3vtx+m1Wn/7MFYXQwdWCMRRDO+YfUiTIf8UUSPTN6n/V9jwBYGzuI9Y/CYyPoL6QyzIrpeyJzOdNAs+daxjsiL2fbxR3L7JvD5tJFHP5Qr3/4tIXALEzcNNwthf4L14tWtMYRi0vHKOk/UVa6JGb8o7oVl32T6Yv/vQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784716198; c=relaxed/simple; bh=epV4m39BZguOzNSUstZvTbACncACL1yVYMsjGRmgOsY=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Cc:Date: Message-Id:References:To; b=ISp6rW+uFqnZ3IKKDxJ+hunwy00Ws22ev3eZ33nOK2l/jpB1Y1WVqaYCoSKnZuJs9DuPApmyUpsxJITPaRLLvxZMAalMQOCTZykwGAC79EGyt8ZJQZDe7xGssUDRYz4sNITRkCkifqoRw2Sm0ZCHgS1crzUNfA7P7WclVhkkFNM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=e2KkhYYI; arc=none smtp.client-ip=209.85.160.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="e2KkhYYI" Received: by mail-qt1-f174.google.com with SMTP id d75a77b69052e-51c1372f84dso86475501cf.2 for ; Wed, 22 Jul 2026 03:29:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784716196; x=1785320996; darn=vger.kernel.org; h=to:references:message-id:date:cc:in-reply-to:from:subject :mime-version:content-transfer-encoding:content-type:from:to:cc :subject:date:message-id:reply-to:content-type; bh=2cVXAnz0JdlskThqIixsSCj4Clo7UNnHRq5jMfLzp7E=; b=e2KkhYYI9U56J1OVEGPx2CR+CpBQ7hMj32MVkrZRHpxy8Kl8tSCwWXzlV9itv4U9P9 8bWAwzLtqUstAJ54zYDdKfdMqCVWwtk8CoEHGk8puUNvD307U6U4xZc8fXryit5Kpaoa trPw16ZF3BKzFyf5JeiHEzkL17zppdkZ2TEFNcuaNJH6ICm4rL6Wvc92+kaXOc9J4hap U3XffvW78MXzqXW2hMEX3ABz/pjQvGqJIF21Z975VHNhzorCwPfTMJDppzozE1D8stDM UQbrsG90h/LATOEjxr0yn7WzDCWyvoJEmuMoOQepPQVfv/1p2mgyRaLhC+Ll1zxc6qrQ fmyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784716196; x=1785320996; h=to:references:message-id:date:cc:in-reply-to:from:subject :mime-version:content-transfer-encoding:content-type:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=2cVXAnz0JdlskThqIixsSCj4Clo7UNnHRq5jMfLzp7E=; b=CVpopV74T8ftuzAQRoCMxuxnHiwCyvLZKDh37Em/fFoxDCLh9jRNx7fv9HUFwpzb5x 3Lz8QC57qE+m82nXqv50vdUB0AOi/VAPcr4fcvuW9GHTGL7CZk9IQJj3sRKZXHBdDIvE C1z0SbDkia/zPTzSJ+TlAxfqWQUF9tbVevHFpX2sFnETAq8Rx3vlJgqPOwU59Wg5alWO j1cFjvroVierP25ZHKIyZ/AW9Dz9m0lm02OYyaelzs6WYKlCzVAd6LmBUrjeT8EqEuFz nZydC3g4sIqzh37GLOIhVPJiPJZVliV9mcfqtkDLVZDdQhPSeEsY5rkXnf4WPdC47vV+ vZgA== X-Forwarded-Encrypted: i=1; AHgh+RpmTxqxAIkLgq5Cwx15Njd9hFI+suE0GVLBPSOHiUUbi8Lrml5DG6t+Ud4P4Q2DxsiXDZp9jNt4O4QyIp8=@vger.kernel.org X-Gm-Message-State: AOJu0Yy9b8QaPNGpjmZd0lLyTQLwKQjoKaMU5+0fqeM1J6DiSVIaf01U 9KwBK4lmqIXIYZWXG9wjmU4B/BMRrTDU6afIX2FnI+3XdKjOhOJK0Kg+o/IYfPaL X-Gm-Gg: AR+sD12OdIaRWc9xc48noEd2NyEobKDqm1qMz4VrsSioXzSNCM0OtXtpL/ocQi2hmv5 /OL3LLPRz+W+NxxvqiF6TXiaCd2ySU1MR7xhrcVbumyzgOv6Cv5ywl6nyDK3NMUMiqcy8dgW9dQ BFl7M7XViaIF8tq1ZIO/tPC/79Mmmb5ika5FhtxKF0CSRBw3s+0fmutbTy4Jp1aSrjmvgx2jpHo 0ynYTjfjrRgOItWzRyzFuxX4BgJfZ+LqDBd6zC/dXFeNFamSd3a+Of7t0J64SN+TIon8RuxJKoC o3cftrNPeno79psaqxvSZTxlxyNU6vsvcbNnrzRFiktGKR/dwIWTTshqAN2tajlKgEzrEdSJVC+ kQZOkFOmlFivXr6pCL9KrK6AI8H9f+6d1AVWUvEHnbZz0+utrziyDD1Ckx49ICgoMtqIiIZ3TQl dwDJEVBdbQ90O+sYukl2vfik3nwNjB40COqjxWFaZmweO41nEHG33oasMEY/ESoTDt7+RYuM/Gn kQBHMf8pmVjtPau5p416TLk+JrzdmK2j1yWkOIFEvzdQvzJunH2PB8= X-Received: by 2002:a05:622a:1453:b0:51c:2022:cef5 with SMTP id d75a77b69052e-5213b147021mr219035321cf.26.1784716195897; Wed, 22 Jul 2026 03:29:55 -0700 (PDT) Received: from smtpclient.apple ([2600:1004:b089:8e47:e4dd:73f0:fa4:cadd]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-527d3555e7bsm12410841cf.23.2026.07.22.03.29.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jul 2026 03:29:55 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (1.0) Subject: Re: [PATCH] completion: complete paths for git send-email From: Ben Knoble In-Reply-To: Cc: Yury Norov , Yury Norov , git@vger.kernel.org, Thiago Perrotta , Philippe Blain , =?utf-8?Q?Rub=C3=A9n_Justo?= , linux-kernel@vger.kernel.org, Codex Date: Wed, 22 Jul 2026 06:29:43 -0400 Message-Id: References: To: Junio C Hamano X-Mailer: iPhone Mail (23D8133) > Le 21 juil. 2026 =C3=A0 15:22, Junio C Hamano a =C3=A9= crit : >=20 > =EF=BB=BFYury Norov writes: >=20 >>> In any case, when both a '0001-my-changes.patch' file and a >>> '0-tolerance-policy' branch exist in your repository and current >>> working directory, running: >>> $ git send-email 0 >>> should offer both as candidates, I thihk. Since I only ever pass >>> filenames to the command, I personally do not think it is a huge >>> loss if the completion script stops looking at refs and sticks to >>> filenames only, but others may have a use for that feature. >> Agree. The test should create a file 0001.patch, then a tag >> 0-tag, then a branch 0-branch, maybe something else that is >> relevant; and then make sure every option is correctly offered >> by autocompletion. >> Guys please let me know if everything else is needed before I send v2. >=20 > So in short, we want the problem description updated to something > like: >=20 > When branches and tags whose names share the same prefix as a > file (or a directory???) that stores a patch exist, the attempt > to complete that shared prefix >=20 > $ git send-email that-shared-prefix >=20 > should offer both branches, tags, and files (and directories???). > But the completion only offers branches and tags and fails to > offer files. >=20 > And the description of the solution would follow after that in the > proposed log message. >=20 > As to the tests, using 40-hex is misleading, and 0-branch as you > said would be sufficient to reproduce and demonstrate the issue, and > that your code change fixes it. >=20 > Ben, anything I missed? >=20 > Thanks. Not from my end, though SZEDER=E2=80=99s review merits some thinking. Traveling the next week+; replies may be slower (than usual, hah).=