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

Re: [PATCHv3] git-fetch: Split fetch and merge logic

From
Junio C Hamano <junkio@cox.net>
Date
Feb 24, 2007, 09:30 UTC
Message-ID
<7vd53zzyvo.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<8aa486160702230242r4059811ewbc4cb5c6d33500df@mail.gmail.com>
"Santi Béjar" <sbejar@gmail.com> writes:
Show 8 quoted lines
> On 2/23/07, Junio C Hamano <junkio@cox.net> wrote:
>
>> I am wondering if FETCH_FETCHED is purely for internal use by
>> git-fetch (it appears so), and if so if it is worth trying to do
>> without the temporary file, but that is a minor detail.
>
> Yes, it's purely internal. With "without the temporary file" you mean
> to put the content in a variable or removing at the end?

If a variable suffices that would be quite nice, but it is not a big deal. As the script does fair amount of computation in subprocess, I suspect it may not be worth trying to use variable, only to get rid of the temporary file.

Show 8 quoted lines
>> I appreciate the cleverness of the intersection.  However, is
>> "echo -e" portable?  I think we have avoided it so far (we have
>> avoided even "echo -n" which is traditionally much more
>> available).
>
> printf '%s\n%s' "$merge_branches" "$fetch_branches"
>
> is OK?

Yes. I think printf is what people who rewrote my "echo -n" have done elsewhere.

Previous: Santi BéjarNext: Junio C Hamano
Message 4 of 6 in “[PATCHv3] git-fetch: Split fetch and merge logic”
  1. Santi BéjarFeb 23, 2007
  2. Junio C HamanoFeb 23, 2007
  3. Santi BéjarFeb 23, 2007
  4. Junio C HamanoFeb 24, 2007
  5. Junio C HamanoFeb 24, 2007
  6. Junio C HamanoFeb 25, 2007

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.