Skip to content

Commit

Permalink
fix: add inlastpr alias to show diff since last release
Browse files Browse the repository at this point in the history
  • Loading branch information
cerico committed May 1, 2023
1 parent f9e6e26 commit fd83dca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions files/zsh/git
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ ghpr () {
fi
}

inlastpr () {
git diff $(git changed | grep "Conventional Changelog Action" | head -n 1 | awk -F" " '{ print $1 }')
}

nonewlines () {
find . -type f -not -path "./.git*" -exec sh -c 'file -b "{}" | grep -q text' \; -exec sh -c '[ "$(tail -c 1 "{}" | od -An -a | tr -d "[:space:]")" != "nl" ]' \; -print
find . -name '*.json' -exec sh -c '[ "$(tail -c 1 "{}" | od -An -a | tr -d "[:space:]")" != "nl" ]' \; -print
Expand Down

0 comments on commit fd83dca

Please sign in to comment.