gunk-dev/the-valley

review-notes-editor.sh

source1cb0f4ba6ed2main's published tip history
514 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\/body.md/a a note beside the message' \
7 -e '/^diff --git a\/alpha.md/a alpha reads like two files' \
8 -e '/^+alpha 3 changed$/a why is 3 changed at all?' \
9 -e '/^ alpha 13$/a and this hunk is fine' \
10 -e '/^+beta 5 changed$/a beta wants the same treatment' \
11 -e 's/^ alpha 17$/ alpha SEVENTEEN/' \
12 "$f"