diff --git a/umpf b/umpf index c7b5001..656b6d0 100755 --- a/umpf +++ b/umpf @@ -187,6 +187,7 @@ usage() { -p, --patchdir with format-patch: write patches to / --relative create patches relative to -r, --remote use to resolve branch names + -l, --local use local branches, alias for --remote refs/heads --override [=] use commit-ish instead for the topic. May be specified more than once. If only is @@ -238,8 +239,8 @@ setup() { GIT_FALLBACK_REMOTE="${tmp}" fi - o="fhisub:n:p:r:v:" - l="auto-rerere,bb,nix,flags:,force,help,identical,stable,update,base:,name:,patchdir:,relative:,override:,remote:,version:" + o="fhilsub:n:p:r:v:" + l="auto-rerere,bb,nix,flags:,force,help,identical,stable,update,base:,name:,patchdir:,relative:,override:,remote:,local,version:" if ! args="$(getopt -n umpf -o "${o}" -l "${l}" -- "${@}")"; then usage exit 1 @@ -303,6 +304,9 @@ setup() { GIT_REMOTE="${1}" shift ;; + -l|--local) + GIT_REMOTE="refs/heads" + ;; --override) IFS="=" read -r topic commitish <<< "${1}" if [ -n "${commitish}" ]; then