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

Re: [PATCH] is_hfs_dotgit: loosen over-eager match of \u{..47}

From
Jeff King <peff@peff.net>
Date
Dec 23, 2014, 21:11 UTC
Message-ID
<20141223211152.GB13304@peff.net>
In-Reply-To
<5499D10E.5050704@kdbg.org>
On Tue, Dec 23, 2014 at 09:31:10PM +0100, Johannes Sixt wrote:
Show 9 quoted lines
> Am 23.12.2014 um 09:45 schrieb Jeff King:
> > @@ -606,7 +606,7 @@ static ucs_char_t next_hfs_char(const char **in)
> >  		 * but this is enough to catch anything that will convert
> >  		 * to ".git"
> >  		 */
> > -		return tolower(out);
> > +		return out;
> 
> Did you consider changing the comment that we see in the pre-context here?

I did consider it, but the comment that is there was actually written for the _original_ version, before I added tolower in the first place (it also applied equally to the tolower() version, so I left it).

So it was clear either way, at least in my brain. :)

Of course that does not say anything about people's brains who did not write the patch. The changes Junio suggested elsewhere in the thread do make it more clear.

-Peff
Previous: Johannes Sixt
Message 10 of 10 in “is_hfs_dotgit: loosen over-eager match of \u{..47}”
  1. is_hfs_dotgit: loosen over-eager match of \u{..47}Jeff King, Dec 23, 2014
  2. Torsten BögershausenDec 23, 2014
  3. Junio C HamanoDec 23, 2014
  4. Jeff KingDec 23, 2014
  5. Jonathan NiederDec 23, 2014
  6. Junio C HamanoDec 23, 2014
  7. Jeff KingDec 23, 2014
  8. Jeff KingDec 23, 2014
  9. Johannes SixtDec 23, 2014
  10. Jeff KingDec 23, 2014

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.