git-svn: implement git svn create-ignore
authorBenoit Sigoure <redacted>
Tue, 16 Oct 2007 14:36:49 +0000 (16:36 +0200)
committerShawn O. Pearce <redacted>
Wed, 17 Oct 2007 06:47:36 +0000 (02:47 -0400)
commitd05ddec51e4e23923f8f6c633f0a125c9a27a391
treebdd04e5f3f2d0794e3d6c30377957568674646b1
parent01bdab84e31763a98206c31cf99b9dc3cb221356
git-svn: implement git svn create-ignore

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, but when you
import a repo with tons of ignores (>1000), using git svn show-ignore
to build .git/info/exclude is *not* a good idea, because things like
git-status will end up doing >1000 fnmatch *per file* in the repo,
which leads to git-status taking more than 4s on my Core2Duo 2Ghz 2G
RAM)

* git-svn.perl (%cmd): Add the new command `create-ignore'.
(&cmd_create_ignore): New.
* t/t9101-git-svn-props.sh: Adjust the test-case for show-ignore and
add a test case for create-ignore.

[ew: added commit message from
  <redacted> ]

Signed-off-by: Benoit Sigoure <redacted>
Acked-by: Eric Wong <redacted>
Signed-off-by: Shawn O. Pearce <redacted>
git-svn.perl
t/t9101-git-svn-props.sh
git clone https://git.99rst.org/PROJECT