summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog6
-rwxr-xr-xinit.d/50vcs-ignore5
2 files changed, 9 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index 90e4ab9..db6080d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+etckeeper (0.30) UNRELEASED; urgency=low
+
+ * Add vim .*.sw? files to default ignores.
+
+ -- Joey Hess <joeyh@debian.org> Fri, 13 Feb 2009 22:09:28 -0500
+
etckeeper (0.29) unstable; urgency=low
* Add a daily cron job to autocommit changes to /etc. Closes: #515100
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