"tag-add issue [tags/]tag" adds a tag, as was noticed before.
"dep-add issue-dst issue-src" will link issue-src in issues-dst's deps/.
"show issue" shows most of issue's information in human friendly way.
+"comment" allows you to conveniently add comment.
comment-list, recfile-export and recfile-export-all produces
recutils'es compatible recfile output, which is machine friendlier.
--- /dev/null
+#!/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