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

Re: [PATCH v3] send-email: recognize absolute path on Windows

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Apr 17, 2014, 01:45 UTC
Message-ID
<20140417014532.GA579226@vauxhall.crustytoothpaste.net>
In-Reply-To
<xmqqbnw1i43p.fsf@gitster.dls.corp.google.com>
On Wed, Apr 16, 2014 at 10:19:54AM -0700, Junio C Hamano wrote:
Show 10 quoted lines
> Ahh, OK, if you did so, you won't have any place to hook the "only
> on msys do this" trick into.
> 
> It somehow feels somewhat confusing that we define a sub with the
> same name as the system one, while not overriding it entirely but
> delegate back to the system one.  I am debating myself if it is more
> obvious if it is done this way:
> 
>         use File::Spec::Functions qw(file_name_is_absolute);
>         if ($^O eq 'msys') {
You would probably want a "no warnings 'redefine'" here as well.
>                 sub file_name_is_absolute {
>                 	return $_[0] =~ /^\// || $_[0] =~ /^[A-Z]:/i;
>                 }
>         }
-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
Previous: Junio C HamanoNext: Erik Faye-Lund
Message 4 of 7 in “send-email: recognize absolute path on Windows”
  1. send-email: recognize absolute path on WindowsErik Faye-Lund, Apr 16, 2014
  2. Junio C HamanoApr 16, 2014
  3. Junio C HamanoApr 16, 2014
  4. brian m. carlsonApr 17, 2014
  5. Erik Faye-LundApr 22, 2014
  6. Junio C HamanoApr 22, 2014
  7. Erik Faye-LundApr 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.