Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 10 lines (7 sloc) 305 Bytes
#!/bin/bash
# Like |hg qparent|, gives last common revision between HEAD and upstream
#
# The upstream branch is set via git branch --set-upstream <branch> <upstream>.
# If no upstream branch has been explicitly set, we use origin/master.
PATH="$(dirname $0):$PATH"
git merge-base HEAD $(git tracks -d)