diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-02-04 21:57:13 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-02-04 21:57:13 -0500 |
commit | 40c6067eb67f28d207cf57f8ba2fc549315827b5 (patch) | |
tree | 51739f8915e3ddadc5fa0815c56672eae6ba064f /commit.d/50vcs-commit | |
parent | bc5d04189542e6da934f7c901b0765891cc5c1d1 (diff) |
Support darcs. Thanks to Gian Piero Carrubba. Closes: #510032
Diffstat (limited to 'commit.d/50vcs-commit')
-rwxr-xr-x | commit.d/50vcs-commit | 6 |
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 |