summaryrefslogtreecommitdiff
path: root/commit.d/50vcs-commit
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-02-04 21:57:13 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-02-04 21:57:13 -0500
commit40c6067eb67f28d207cf57f8ba2fc549315827b5 (patch)
tree51739f8915e3ddadc5fa0815c56672eae6ba064f /commit.d/50vcs-commit
parentbc5d04189542e6da934f7c901b0765891cc5c1d1 (diff)
Support darcs. Thanks to Gian Piero Carrubba. Closes: #510032
Diffstat (limited to 'commit.d/50vcs-commit')
-rwxr-xr-xcommit.d/50vcs-commit6
1 files changed, 6 insertions, 0 deletions
diff --git a/commit.d/50vcs-commit b/commit.d/50vcs-commit
index 8a0c0b6..1f4ab03 100755
--- a/commit.d/50vcs-commit
+++ b/commit.d/50vcs-commit
@@ -32,4 +32,10 @@ elif [ "$VCS" = bzr ] && [ -d .bzr ]; then
else
bzr commit $BZR_COMMIT_OPTIONS
fi
+elif [ "$VCS" = darcs ] && [ -d _darcs ]; then
+ logfile="$( mktemp -t etckeeper-$VCS.XXXXXXXXXX )"
+ printf "%b" "$message" > "$logfile"
+ darcs record $DARCS_COMMIT_OPTIONS --logfile="$logfile"
+ rm -f "$logfile"
+ unset logfile
fi