From 82e4e6da6df00c1f1c22abf186a94e3160b942e3 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 13 Feb 2009 22:10:50 -0500 Subject: Add vim .*.sw? files to default ignores. And enhance the darcs glob to re code to support `?` --- init.d/50vcs-ignore | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'init.d/50vcs-ignore') 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 -- cgit v1.2.3