In Git, if I have a project with lots of projects inside, let\'s suppose, a lot of Java projects, I can just create a .gitignore
file in the root and it will \"be r
This is what I am doing to emulate .svnignore
.
Create a wrapper for svn
called ~/bin/svn
#!/bin/bash
case "$1" in
commit|status|apply-ignore)
if test -f .svnignore ; then
echo "Apply .svnignore: $(/usr/bin/svn propset svn:ignore -F .svnignore .)"
fi
;;
esac
case "$1" in
apply-ignore) ;;
*) exec /usr/bin/svn "$@" ;;
esac
Then add ~/bin
to your path before /usr/bin
PATH=~/bin:$PATH ; export PATH
It applies .svnignore
on commit
and status
commands, and can also manually apply using svn apply-ignore
.