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

Re: [RFC/PATCH] Fast forward strategies only, common, fork and path

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 4, 2008, 07:31 UTC
Message-ID
<7vsl09kwjg.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<402c10cd0802032313la7d3a8cqa4ec34e100385fb4@mail.gmail.com>
"Sverre Hvammen Johansen" <hvammen@gmail.com> writes:
Show 6 quoted lines
> git-pull only accepts one repository.  With this patch it makes sense
> to accept more than one repository.  I would like to rewrite git-pull
> to accept more than one repository.  This might break compatibility
> with existing git-pull.  One solution could be to introduce a new
> command that does the same as git-pull and more.  What about naming
> such a command git-update and deprecate git-pull.

Just add contrib/multi-pull/ directory and put your shell script there, something like:

	#!/bin/sh
	append=
	for repo
        do
        	git fetch $append $repo
                append=--append
	done
	merge_name=$(git fmt-merge-msg <"$GIT_DIR/FETCH_HEAD")
        git merge -m "$merge_name" $(sed -e '/	not-for-merge	/d'
        		-e 's/	.*//' "$GIT_DIR/FETCH_HEAD")

If it turns out to be useful for many people, it may become part of the main Porcelain. It's too early to talk about touching git-pull at all.

Previous: Sverre Hvammen JohansenNext: Sverre Hvammen Johansen
Message 12 of 14 in “Fast forward strategies only, common, fork and path”
  1. Fast forward strategies only, common, fork and pathSverre Hvammen Johansen, Feb 4, 2008
  2. Stefan (metze) MetzmacherFeb 4, 2008
  3. Sverre Hvammen JohansenFeb 4, 2008
  4. Junio C HamanoFeb 4, 2008
  5. Sverre Hvammen JohansenFeb 4, 2008
  6. Junio C HamanoFeb 4, 2008
  7. Sverre Hvammen JohansenFeb 5, 2008
  8. Jakub NarebskiFeb 5, 2008
  9. Junio C HamanoFeb 5, 2008
  10. Sverre Hvammen JohansenFeb 6, 2008
  11. Sverre Hvammen JohansenFeb 4, 2008
  12. Junio C HamanoFeb 4, 2008
  13. Sverre Hvammen JohansenFeb 4, 2008
  14. Sverre Hvammen JohansenFeb 4, 2008

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.