Skip to content

Instantly share code, notes, and snippets.

@tbnorth
Created June 17, 2024 21:32
Show Gist options
  • Save tbnorth/726ddeb84453683e78d7f9c240807042 to your computer and use it in GitHub Desktop.
Save tbnorth/726ddeb84453683e78d7f9c240807042 to your computer and use it in GitHub Desktop.
Collection of git / sed / command line tricks

jira tickets referenced between two commits

PROJ=factotum ; git log ^staging dev | sed -E 's/'$PROJ'-[0-9]+/\n&\n/gI' | sed -En '/'$PROJ'-[0-9]+/I p' | tr a-z A-Z | sort -u | sed 's%.*%https://jira.example.com/browse/&%'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment