Re: [PATCH] stash: disable literal treatment when passing top pathspec
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Apr 8, 2022, 08:46 UTC
- Message-ID
- <220408.868rsgc67o.gmgdl@evledraar.gmail.com>
- In-Reply-To
- <e93e9bb1-8bd1-a70f-f671-ca322c14c7a1@gmail.com>
On Fri, Apr 08 2022, Bagas Sanjaya wrote:
Show 8 quoted lines
> 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.