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

Re: t6200: avoid path mangling issue on Windows

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 19, 2013, 21:22 UTC
Message-ID
<7va9ouz04y.fsf@alter.siamese.dyndns.org>
In-Reply-To
<51719F18.3020508@kdbg.org>
Johannes Sixt <j6t@kdbg.org> writes:
> A patch auther whose first instinct is to write 'foo=/' will never write
> 'foo=x', let alone 'foo="""/"""'. Someone will have to discover the
> issue eventually and write a patch to fix it, and someone will have to
> apply it.

That is a separate issue. Didn't I say I'll apply it as-is at the very beginning?

Our _tests_ can afford to use an unrealistic setting like
    git -c core.commentchar="x" fmt-merge-msg

to work it around, because the tests do not _care_ how the final outcome looks like. It only cares what we specified gets used.

But a _real user_ who wants to use a slash there has no way of doing so. It is still not realistic, as it is more likely that she would want to use a double-slash, but that would not fit in a commentchar, and she is a lot more likely to have it in the configuration file, but I wouldn't imagine that there are things other than "-c var=val" that are more commonly given on the command line that share the same pain point as this one.

That is what I meant by "feels painful to the users" and wondered if bash on Windows can be more helpful to them.

Previous: Johannes SixtNext: Jonathan Nieder
Message 8 of 12 in “fmt-merge-msg: respect core.commentchar in people credits”
  1. 1/2 fmt-merge-msg: respect core.commentchar in people creditsRalf Thielow, Apr 7, 2013
  2. 2/2 fmt-merge-msg: use core.commentchar in tag signatures completelyRalf Thielow, Apr 7, 2013
  3. t6200: avoid path mangling issue on WindowsJohannes Sixt, Apr 18, 2013
  4. Junio C HamanoApr 18, 2013
  5. Johannes SixtApr 19, 2013
  6. Junio C HamanoApr 19, 2013
  7. Johannes SixtApr 19, 2013
  8. Junio C HamanoApr 19, 2013
  9. Jonathan NiederApr 21, 2013
  10. Johannes SixtApr 21, 2013
  11. Jonathan NiederApr 21, 2013
  12. Junio C HamanoApr 21, 2013

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.