Re: [PATCH] t1006: fix %(rest) test for object names with whitespace
- From
Deveshi Dwivedi <deveshigurgaon@gmail.com>
- Date
- Feb 20, 2026, 16:59 UTC
- Message-ID
- <CAG7UgETZFiB_J3wO+OD+R76GtOR5eNNNv7XAT_HPBksM9FHGsw@mail.gmail.com>
- In-Reply-To
- <xmqqldgo148k.fsf@gitster.g>
Show 8 quoted lines
> We already _promise_ to chop the input line at the first whitespace > boundary in our documentation when we use %(rest), so there is > nothing we can do to "fix" on the implementation side. What your > original tested, i.e., if the early part of the input up to the > first whitespace does *not* name an object, then the test cannot > succeed (not just that, the test should fail, unless it happens to > name another valid object), is the advertised behaviour of this > feature.
Thank you for the clarification. I understand that the whitespace split is the documented behavior of %(rest), so there is nothing to fix on the implementation side.