summaryrefslogtreecommitdiff
path: root/init.d/50vcs-ignore
diff options
context:
space:
mode:
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