Toot

Written by Adrianna Pińska on 2025-01-13 at 13:05

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

Mentions

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113821190038503156
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
220.988185 milliseconds
Gemini-to-HTML Time
0.300414 milliseconds

This content has been proxied by September (3851b).