Re: [PATCH] t2400: Fix test failures when using grep 2.5

From
Jacob Abel <hidden>
Date
2023-07-21 04:35:39
Reply to
Phillip Wood, 2023-07-18
On 23/07/18 02:36PM, Phillip Wood wrote:
[...]

The existing code is not consistent on this point but I think there are
more instances of "    " than "\t". Using "    " makes the indentation
consistent as the "hint: " prefix is translated so we don't know how far
the next tab stop will be from the end of the prefix.
Agreed.
quoted
[...]
In the test we are redirecting the output to a file so things like tmux
do not come into play. I think it would be a bit odd for the system libc
to convert tabs to spaces.
Understood. It was just a bit of paranoia on my part then.
[...]
quoted
Understood. I'll start working on a separate patch to update that
warning once this patch settles then.
That's great. I think just telling the user something like

    branch 'main' does not exist

when HEAD contains the dangling symbolic ref "refs/heads/main" and

     HEAD is corrupt

when it is not a symbolic ref and repo_get_oid() fails would be fine.
Noted. I'll workshop it a bit before I put v1 of that patch out.
Thread (17 messages) 17 messages, 2 authors, last reply 2023-07-26
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help