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

Re: remotes/* for "foreign" archives

From
Seth Falcon <sethfalcon@gmail.com>
Date
Nov 21, 2006, 15:13 UTC
Message-ID
<m2y7q4bzo7.fsf@ziti.local>
In-Reply-To
<86r6vwkfti.fsf@blue.stonehenge.com>
merlyn@stonehenge.com (Randal L. Schwartz) writes:
Show 15 quoted lines
> It occurred to me after posting this, and while still thinking about the
> presentation I'm writing, that it'd be interesting if "get-fetch" could hide
> this from me.
>
> If the file in remotes/origin looked something like:
>
>         Pull: !git-svn multi-fetch trunk
>         Push: !git-svn commit
>
> then git-fetch and git-push could treat "origin" as a "foreign" branch
> and indirect through these commands.
>
> Then I could just use "git-pull" naively, and it would git-fetch origin,
> invoking git-svn multi-fetch trunk to update it, and later I could
> git-push and it would use git-svn commit.

This sort of integration could be quite cool. But I think the most common use of git-svn is with rebase and not pull. My experience with git-svn and pull is that I very quickly ended up making broken commits to svn --- I've had much better luck rebasing.

Previous: Randal L. SchwartzNext: Randal L. Schwartz
Message 3 of 6 in “tracking many cvs/svn/git remote archives”
  1. Randal L. SchwartzNov 20, 2006
  2. remotes/* for "foreign" archives (was Re: tracking many cvs/svn/git remote archives)Randal L. Schwartz, Nov 21, 2006
  3. Seth FalconNov 21, 2006
  4. Randal L. SchwartzNov 21, 2006
  5. Junio C HamanoNov 21, 2006
  6. Petr BaudisNov 21, 2006

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.