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 25, 2007, 05:07 UTC
Message-ID
<7vlkimx1t1.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<7v1wkfzqgk.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> writes:
Show 8 quoted lines
> Santi Béjar <sbejar@gmail.com> writes:
> ...
>> The current merge behaviour is unchanged.
>
> I overlooked your earlier huge testcase patch, but I noticed it
> does not include any test that fetches an annotated tag that
> points at a commit or a non-commit, nor an unannotated tag that
> is a tree or a blob.

A couple of other things I think the users of information in FETCH_HEAD rely on need to be checked by the test suite.

 * Automated following of tags when a branch head is fetched.
   When this happens, I think the users (not just git-pull
   script but end users) expect the branch head to be listed
   first in the FETCH_HEAD file, so that:
	$ git fetch git://some.repo/
	$ git show FETCH_HEAD
   gives stable and useful result.
 * When two refs are listed on the command line explicitly, are
   they listed in the order given by the user in the resulting
   FETCH_HEAD file?
	$ git fetch git://some.repo/ one two
	$ git fetch git://some.repo/ two one
   Again, "git show FETCH_HEAD" after that expects the first one
   to show 'one' and the second one 'two'.  Replacing 'fetch'
   with 'pull' in the example would affect the parent order in
   the resulting Octopus.
Previous: Junio C Hamano
Message 6 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.