gunk-dev/the-valley

review-notes-editor.sh

source1a3e2182ecdemain's published tip history
449 bytes
1f="$1"
2case "$1" in +*) f="$2" ;; esac
3printf 'editor got: %s\n' "$*" >> "$XDG_STATE_HOME/editor.log"
4sed -i \
5 -e '/^branch scratch, log against/a a note above every file' \
6 -e '/^diff --git a\/alpha.md/a alpha reads like two files' \
7 -e '/^+alpha 3 changed$/a why is 3 changed at all?' \
8 -e '/^ alpha 13$/a and this hunk is fine' \
9 -e '/^+beta 5 changed$/a beta wants the same treatment' \
10 -e 's/^ alpha 17$/ alpha SEVENTEEN/' \
11 "$f"