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

a partial git-svn checkout

From
TNTim Newsome <nuisance@casualhacker.net>
Date
Feb 28, 2008, 19:43 UTC
Message-ID
<b930b3f10802281143j7be7398eg5ec5fdf5a288cfbc@mail.gmail.com>
In-Reply-To
<b930b3f10802280848g4c11960fx800f71761287e2f1@mail.gmail.com>

I'm trying to make git-svn only grab a couple of top-level directories from the svn repository. I can only see how to grab the entire repository, or a single subdirectory. Is this possible? How?

A little more background info:
At work we have a giant repository. A full checkout is about 8GB,
because it contains several projects and some cruft. So nobody makes a
full checkout. Specifically, there are 3 kinds of directories in
trunk/
1. development directories, which I personally do work on
2. library directories, which I need to build but don't actually work on
3. irrelevant directories, which I never need

Right now I just manually checked out all of 1, made symlinks for 2, and added that to git. That's a workable checkout size. However, I'm finding myself writing some scripts to deal with that, and I keep thinking: git-svn already does this (and better), except that I don't know how to tell it which directories to grab.

I don't really care about correctly importing tags and branches from svn, although it would be a nice bonus. Is there a good solution for this scenario already?

Tim
-- 
Tim Newsome  nuisance.at.casualhacker.net http://www.casualhacker.net/
Message 1 of 1 in “a partial git-svn checkout”
  1. Tim NewsomeFeb 28, 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.