git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] stash: disable literal treatment when passing top pathspec

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 8, 2022, 18:47 UTC
Message-ID
<xmqq5ynjmmy1.fsf@gitster.g>
In-Reply-To
<220408.868rsgc67o.gmgdl@evledraar.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 14 quoted lines
> On Fri, Apr 08 2022, Bagas Sanjaya wrote:
>
>> On 08/04/22 10.12, Kyle Meyer wrote:
>>> +test_expect_success 'stash -u works with --literal-pathspecs' '
>>> +	>untracked &&
>>> +	git --literal-pathspecs stash -u &&
>>> +	test_path_is_missing untracked
>>> +'
>>
>> Why not "touch untracked" instead?
>
> The ">" form is correct here. We use "touch" when updating the timestamp
> to something in particular is important, but here we're just creating an
> empty file.
Maybe it is better to have it in CodingGuidelines or t/README?
Thanks.
Previous: Ævar Arnfjörð BjarmasonNext: Junio C Hamano
Message 4 of 7 in “stash: disable literal treatment when passing top pathspec”
  1. stash: disable literal treatment when passing top pathspecKyle Meyer, Apr 8, 2022
  2. Bagas SanjayaApr 8, 2022
  3. Ævar Arnfjörð BjarmasonApr 8, 2022
  4. Junio C HamanoApr 8, 2022
  5. Junio C HamanoApr 8, 2022
  6. Kyle MeyerApr 9, 2022
  7. Junio C HamanoApr 11, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.