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

Re: git svn branch tracking + ignore paths

From
Lachlan Deck <lachlan.deck@gmail.com>
Date
Oct 28, 2009, 05:59 UTC
Message-ID
<19979334-07EB-48CA-8E62-4ECC5E1FA51C@gmail.com>
In-Reply-To
<32541b130910272220p59482397wef0d51b1adf1a5bd@mail.gmail.com>
On 28/10/2009, at 4:20 PM, Avery Pennarun wrote:
Show 16 quoted lines
> On Tue, Oct 27, 2009 at 11:00 PM, Lachlan Deck  
> <lachlan.deck@gmail.com> wrote:
>> :) Sure. Essentially a project that I'm contributing to has both  
>> maven poms
>> and ant/lib-based configs (with the ant ones as default for  
>> eclipse .project
>> etc files). I'd like to be able to import the projects with maven  
>> into
>> Eclipse to work on things but without committing back changes to  
>> eclipse
>> .project/.classpath/.settings/*.
>>
>> So I'm hoping for a fairly transparent process.
>
> So which are the files you don't want to import from trunk?  It
> doesn't sound like there are any... so it's getting simpler already.

There are. I've currently (as a workaround) done the following within the main branch: add the following to .git/info/exclude .settings target .classpath .project

The last two of these has no effect of course because .project and .classpath files already exist -- and thus are marked as modified. So I'm currently doing a git stash && git svn rebase && git svn dcommit && git stash pop

I'm also wanting to exclude 'lib' folders from trunk (as these are not needed).

> Also, can you just simply not commit any changes to the other files?
> That would be the easiest way to deal with committing back.

That's what I'm doing now I guess - but it means I can't share the project setups (specific for maven, for example) with anyone.

> The other
> option (slightly messier) is to change them in a single commit, and
> use git rebase to move that commit out of the way when you're about to
> push your changes back into svn.
Yeah that'd be a bit of a slippery slope.

with regards, --

Lachlan Deck
Previous: Avery PennarunNext: Avery Pennarun
Message 5 of 7 in “git svn branch tracking + ignore paths”
  1. Lachlan DeckOct 27, 2009
  2. Avery PennarunOct 27, 2009
  3. Lachlan DeckOct 28, 2009
  4. Avery PennarunOct 28, 2009
  5. Lachlan DeckOct 28, 2009
  6. Avery PennarunOct 28, 2009
  7. Lachlan DeckOct 29, 2009

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.