.gitignore and svn:ignore [WAS: git-svn and submodules]
- From
- Chris Shoemaker <c.shoemaker@cox.net>
- Date
- Oct 15, 2007, 15:14 UTC
- Message-ID
- <20071015151405.GA1655@pe.Belkin>
- In-Reply-To
- <20071015144513.GB7351@diana.vm.bytemark.co.uk>
On Mon, Oct 15, 2007 at 04:45:13PM +0200, Karl Hasselström wrote:
Show 19 quoted lines
> On 2007-10-15 09:07:21 +0200, Benoit SIGOURE wrote: > > > - git svn create-ignore (to create one .gitignore per directory > > from the svn:ignore properties. This has the disadvantage of > > committing the .gitignore during the next dcommit, > > I built ignore support for git-svnignore a long time ago. It converts > the per-directory svn:ignore to per-directory .gitignore at commit > import time, which is very handy: > > -I <ignorefile_name>:: > Import the svn:ignore directory property to files with this > name in each directory. (The Subversion and GIT ignore > syntaxes are similar enough that using the Subversion patterns > directly with "-I .gitignore" will almost always just work.) > > The only downside with that is that svn ignore patterns are > non-recursive, while git ignore patterns are recursive. This could be > solved by prefixing them with a "/".
Has anyone put any thought into mapping the other direction? i.e. .gitignore -> svn:ignore
-chris