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

Re: [PATCH] http: add_fill_function checks if function has been added

From
Tay Ray Chuan <rctay89@gmail.com>
Date
Mar 7, 2009, 20:49 UTC
Message-ID
<be6fef0d0903071249s42ac7f94o82461ca32dcdfcd5@mail.gmail.com>
In-Reply-To
<7vy6vhm6it.fsf@gitster.siamese.dyndns.org>
Hi,
On Sun, Mar 8, 2009 at 4:18 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 9 quoted lines
> Could you care to explain the following a bit better?
>
>  - what "possible issues" you are addressing;
>
>  - what changes in the behaviour that are not "obvious" we would be
>   suffering from, if we apply this patch;
>
>  - in what situation the performance _might_ be affected, in what way and
>   to what extent.

(note: "repeatedly" here means looping over it, eg. while(condition) fill_function(). )

Thanks for taking the time to give this clear and detailed example explanation.

However, at this point of time, I couldn't come up with a convincing instance of where

 *a fill function is added twice or more, and as a result
 *something breaks as a result of invoking the function repeatedly

that was why I used the word "possible" as in "possible issues", because this patch doesn't solve any existing issues (at least none that I know of now).

Calling a fill function repeatedly won't break behaviour, because fill functions (those that are currently defined in git) are designed to be called repeatedly. But it's just useless to call the same fill function repeatedly without any reason.

So should I still address the "THIS and THAT breakages"?
-- 
Cheers,
Ray Chuan
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 7 in “http: add_fill_function checks if function has been added”
  1. http: add_fill_function checks if function has been addedTay Ray Chuan, Mar 7, 2009
  2. Junio C HamanoMar 7, 2009
  3. Tay Ray ChuanMar 7, 2009
  4. Junio C HamanoMar 7, 2009
  5. Tay Ray ChuanMar 8, 2009
  6. Junio C HamanoMar 8, 2009
  7. Tay Ray ChuanMar 9, 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.