First work-related bash script of the year: getting a list of modified files in the current branch (with dev as the default base branch). Can be piped to xargs MYEDITOR to open all the files (I didn't bake it into the script, for flexibility).
current_branch=$(git rev-parse --abbrev-ref HEAD)
base_branch="${1:-dev}"
git diff --name-only $current_branch $(git merge-base $current_branch $base_branch)
(MYEDITOR is kate; still the least bad of the 1000000 editors I've tried.)
=> More informations about this toot | View the thread | More toots from confluency@hachyderm.io
text/gemini
This content has been proxied by September (3851b).