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

Re: Vendor branches workflow

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Dec 8, 2010, 09:09 UTC
Message-ID
<20101208090908.GA4640@burratino>
In-Reply-To
<AANLkTi=s9p3RycRCrocHEzfc4L-pnU6S9xCKfEL7TP=i@mail.gmail.com>
Hi Leonid,
Leonid Podolny wrote:
Show 7 quoted lines
> In our project, we have two upstreams, which are rather massively
> patched. One of the upstreams is an SF svn repository, the other
> arrives in form of tgz's with sources. Now git is tracking the patched
> version, and I want to add a vendor branch to simplify future vendor
> drops.
>
> Out of the SVN upstream, we use only specific directories.

If I were in this situation, I would use "git svn" with its ignore-paths option. Like so:

	git svn -Rsvn init --ignore-paths='^(?!directory-a|directory-b)' \
		$url/trunk

This way, using "git svn fetch" causes the history of these files to be fetched, and one can use gitk, git log -S, git bisect, and other familiar tools to browse through it.

Alternatively, a more usual vendor branch workflow (manually committing the relevant files) can work well, too. In either case I would only track the upstream files relevant to the history of my project. A .gitignore file can be useful to avoid accidentally tracking other files (like the .svn metadata).

Hope that helps, Jonathan

Previous: Leonid PodolnyNext: Neal Kreitzinger
Message 2 of 3 in “Vendor branches workflow”
  1. Leonid PodolnyDec 8, 2010
  2. Jonathan NiederDec 8, 2010
  3. Neal KreitzingerDec 8, 2010

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.