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, 12:32 UTC
Message-ID
<7v1wkfzqgk.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<87wt29i7hg.fsf@gmail.com>
Santi Béjar <sbejar@gmail.com> writes:
Show 8 quoted lines
> It makes git-parse-remote.sh and almost all git-fetch independent
> of the merge logic.
>
> git-fetch fetches the branches from the remote and saves this
> information in .git/FETCH_FETCHED, and at the end it generates
> the file .git/FETCH_HEAD.
>
> 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. I am too tired to check them right now, but are you sure you are not regressing with them?

It is sometimes handy to be able to say:
	$ git fetch git-gui tag spearce-gpg-pub
        $ git cat-file -p FETCH_HEAD
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 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.