git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Vendor branches workflow
@ 2010-12-08  8:57 Leonid Podolny
  2010-12-08  9:09 ` Jonathan Nieder
  2010-12-08 21:54 ` Neal Kreitzinger
  0 siblings, 2 replies; 3+ messages in thread
From: Leonid Podolny @ 2010-12-08  8:57 UTC (permalink / raw)
  To: git

Hi, list,
I would like an advice on organizing a vendor branch workflow, to
minimize the risk of it biting me in the future.
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.
So, two questions:
- How do I deal with unneeded directories? Do I filter them out before
commiting to the vendor branch or while merging the vendor branch into
the master?
- Do you think it would be a good idea to keep .svn directories around
at the vendor branch? (Kind of connected to the first question,
because if I keep the .svn's, I will also have to keep the unneeded
dirs).

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Vendor branches workflow
  2010-12-08  8:57 Vendor branches workflow Leonid Podolny
@ 2010-12-08  9:09 ` Jonathan Nieder
  2010-12-08 21:54 ` Neal Kreitzinger
  1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Nieder @ 2010-12-08  9:09 UTC (permalink / raw)
  To: Leonid Podolny; +Cc: git

Hi Leonid,

Leonid Podolny wrote:

> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Vendor branches workflow
  2010-12-08  8:57 Vendor branches workflow Leonid Podolny
  2010-12-08  9:09 ` Jonathan Nieder
@ 2010-12-08 21:54 ` Neal Kreitzinger
  1 sibling, 0 replies; 3+ messages in thread
From: Neal Kreitzinger @ 2010-12-08 21:54 UTC (permalink / raw)
  To: git

"Leonid Podolny" <leonidp.lists@gmail.com> wrote in message 
news:AANLkTi=s9p3RycRCrocHEzfc4L-pnU6S9xCKfEL7TP=i@mail.gmail.com...
> Hi, list,
> I would like an advice on organizing a vendor branch workflow, to
> minimize the risk of it biting me in the future.
> 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.
> So, two questions:
> - How do I deal with unneeded directories? Do I filter them out before
> commiting to the vendor branch or while merging the vendor branch into
> the master?
> - Do you think it would be a good idea to keep .svn directories around
> at the vendor branch? (Kind of connected to the first question,
> because if I keep the .svn's, I will also have to keep the unneeded
> dirs).

The git-rm manpage explains a methodology for vendor branches.  Maybe you've 
already read it...

v/r,
Neal 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-12-08 21:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-08  8:57 Vendor branches workflow Leonid Podolny
2010-12-08  9:09 ` Jonathan Nieder
2010-12-08 21:54 ` Neal Kreitzinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).