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

Re: [PATCH v6 2/3] compat: add a basename() compatibility function

From
Junio C Hamano <gitster@pobox.com>
Date
May 31, 2009, 04:53 UTC
Message-ID
<7vbpp9vpot.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20090531044246.GA23995@gmail.com>
David Aguilar <davvid@gmail.com> writes:
Show 13 quoted lines
>> +#ifdef USE_WIN32_FS
>> +	/* Skip over the disk name in MSDOS pathnames. */
>> +	if (isalpha(path[0]) && path[1] == ':')
>> +		path += 2;
>> +#endif
>
> Thanks for bearing through this series everyone.. ;)
>
> Can someone with better win32 knowledge let me know if the
> USE_WIN32_FS stuff is needed for msysgit?
>
> I would really like it if there was a way to do without the
> #define.
Isn't this essentially the same as has_dos_drive_prefix()?
Previous: David Aguilar
Message 5 of 5 in “compat: add a mkstemps() compatibility function”
  1. 1/3 compat: add a mkstemps() compatibility functionDavid Aguilar, May 31, 2009
  2. 2/3 compat: add a basename() compatibility functionDavid Aguilar, May 31, 2009
  3. 3/3 diff: generate pretty filenames in prep_temp_blob()David Aguilar, May 31, 2009
  4. David AguilarMay 31, 2009
  5. Junio C HamanoMay 31, 2009

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.