From 6398f205b74c158eecdf2ed6a057f77f64db0340 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 11 Mar 2008 15:03:24 -0400 Subject: * Add support for bzr, thanks to Mark A. Hershberger. Closes: #470515 (Note that bzr does not support etckeeper's pre-commit hook.) --- init.d/50vcs-ignore | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'init.d/50vcs-ignore') diff --git a/init.d/50vcs-ignore b/init.d/50vcs-ignore index c11a12e..43c245d 100755 --- a/init.d/50vcs-ignore +++ b/init.d/50vcs-ignore @@ -5,6 +5,8 @@ if [ "$VCS" = git ] && [ ! -e .gitignore ]; then file=.gitignore elif [ "$VCS" = hg ] && [ ! -e .hgignore ]; then file=.hgignore +elif [ "$VCS" = bzr ] && [ ! -e .bzrignore ]; then + file=.bzrignore fi if [ -z "$file" ] || [ -e "$file" ]; then @@ -24,7 +26,7 @@ ignore() { glob="$1" case "$VCS" in - git) + git|bzr) echo "$glob" >> $file ;; hg) -- cgit v1.2.3