]> Sergey Matveev's repositories - schwabrak.git/blobdiff - comment
Another simplification
[schwabrak.git] / comment
diff --git a/comment b/comment
deleted file mode 100755 (executable)
index a2fc9e4..0000000
--- a/comment
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/usr/bin/env zsh
-
-root=$0:h:a
-. $root/lib.zsh.rc
-
-usage() {
-    die Usage: $0 ISSUE
-}
-
-[[ -n $1 ]] || usage
-issue=${1#issues/}
-comment=issues/$issue/comment
-
-$PERL -i -npe 's/^/# /' $comment
-zmodload -F zsh/stat b:zstat
-zstat -A ctimePrev +ctime $comment
-$EDITOR $comment
-zstat -A ctime +ctime $comment
-[[ $ctime != $ctimePrev ]] || {
-    echo Aborting comment >&2
-    $PERL -i -npe 's/^# //' $comment
-    exit 0
-}
-$PERL -i -ne 'print if $can; if (/^$/) { $can=1 };' $comment
-git add $comment