citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

git-pr (232B)


      1 #!/usr/bin/env bash
      2 
      3 usage () {
      4   printf "usage: git prlog <pr>\n" >&2
      5   exit 1
      6 }
      7 [ -z "$1" ] && usage
      8 
      9 ref="$1"
     10 shift
     11 upstream="${1:-origin}"
     12 shift
     13 exec git log --reverse "$@" "refs/merge/$upstream/$ref^..refs/pull/$upstream/$ref"