SVN: Ignore files not under version control

Add all files which aren’t currently under version control to the svn:ignore property.

for line in $(svn status | grep ^? | awk '{print $2}')
do
    pushd $(dirname $line)
    svn propset svn:ignore "$(svn propget svn:ignore)$(echo -e "\n$(basename $line)")" .  
    popd
done
svn commit
This entry was posted in <code> and tagged , , , . Bookmark the permalink.
  • mike

    Hello,

    It appears that you got bash highlighting working on your site. Do you mind telling me how you were finally able to do this. I would love to know. Cool site btw!!

  • http://moosechips.com moosechips

    I have been using wp-syntax for my wordpress highlighting. It works for a lot of languages, but it’s a bit difficult to customize the colors. A plugin like wp-syntax-colorizer is useful for starting customization.

<RSS Feed>