summaryrefslogtreecommitdiff
path: root/init.d/50vcs-ignore
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-02-13 22:10:50 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-02-13 22:10:50 -0500
commit82e4e6da6df00c1f1c22abf186a94e3160b942e3 (patch)
tree7d7b25e7235509b914ea71a4997595de688caf45 /init.d/50vcs-ignore
parent03a4aed6540049e3a9a95a65b57a434a52d4270a (diff)
Add vim .*.sw? files to default ignores.
And enhance the darcs glob to re code to support `?`
Diffstat (limited to 'init.d/50vcs-ignore')
-rwxr-xr-xinit.d/50vcs-ignore5
1 files changed, 3 insertions, 2 deletions
diff --git a/init.d/50vcs-ignore b/init.d/50vcs-ignore
index 1b6441a..c8f4841 100755
--- a/init.d/50vcs-ignore
+++ b/init.d/50vcs-ignore
@@ -56,7 +56,7 @@ ignore() {
else
glob='(^|/)'"$glob"
fi
- glob="$( printf %s $glob | sed -e 's/\./\\./g;s/\*/[^\/]*/g;' )"
+ glob="$( printf %s $glob | sed -e 's/\./\\./g;s/\*/[^\/]*/g;s/\?/[^\/]/g' )"
echo "$glob" >> $file
esac
}
@@ -96,6 +96,7 @@ ignore adjtime
ignore lvm/cache
nl
-comment "editor backup files"
+comment "editor temp files"
ignore "*~"
+ignore ".*.sw?"
nl