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

Re: [PATCH] Make is_gitfile a non-static generic function

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 12, 2011, 18:08 UTC
Message-ID
<7vmxd69j72.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CABURp0p4_oVMmkFDPue4kvhO_bEr_dBh-XFGArdSJFMz-Eboeg@mail.gmail.com>
Phil Hord <phil.hord@gmail.com> writes:
Show 17 quoted lines
> On Tue, Oct 11, 2011 at 7:45 PM, Junio C Hamano <gitster@pobox.com> wrote:
>> After looking at this patch and the way the other caller in transport.c
>> uses it, I am more and more convinced that "is_gitfile()" is a stupid and
>> horrible mistake.
>
> I think I misunderstood your objection before.  Now I think I
> understand.  Tell me if I am right.
>
>
> I think you mean that instead of this:
>         } else if (is_local(url) && is_file(url) && !is_gitfile(url)) {
>
> you would like to see this:
>         } else if (is_local(url) && is_file(url) && is_bundle(url)) {
>
> Or maybe even this:
>         } else if (is_bundle(url)) {
Exactly.
Previous: Phil HordNext: Phil Hord
Message 6 of 7 in “Make is_gitfile a non-static generic function”
  1. Make is_gitfile a non-static generic functionPhil Hord, Oct 11, 2011
  2. Junio C HamanoOct 11, 2011
  3. Junio C HamanoOct 11, 2011
  4. Phil HordOct 12, 2011
  5. Phil HordOct 12, 2011
  6. Junio C HamanoOct 12, 2011
  7. Phil HordOct 12, 2011

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.