From: Jonathan Nieder <jrnieder@gmail.com>
To: Leonid Podolny <leonidp.lists@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Vendor branches workflow
Date: Wed, 8 Dec 2010 03:09:08 -0600 [thread overview]
Message-ID: <20101208090908.GA4640@burratino> (raw)
In-Reply-To: <AANLkTi=s9p3RycRCrocHEzfc4L-pnU6S9xCKfEL7TP=i@mail.gmail.com>
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
next prev parent reply other threads:[~2010-12-08 9:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-08 8:57 Vendor branches workflow Leonid Podolny
2010-12-08 9:09 ` Jonathan Nieder [this message]
2010-12-08 21:54 ` Neal Kreitzinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101208090908.GA4640@burratino \
--to=jrnieder@gmail.com \
--cc=git@vger.kernel.org \
--cc=leonidp.lists@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.