Skip to content

Commit

Permalink
Merge pull request #23 from Emil-Juhl/emil-juhl/choice-to-use-local-b…
Browse files Browse the repository at this point in the history
…ranch

umpf: add branch choice in case of additional commits
  • Loading branch information
michaelolbrich authored Aug 4, 2023
2 parents 60aae44 + 000e642 commit dd30788
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion umpf
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,11 @@ find_branch_rev() {
info "Warning: The following commits are in '${branch}' but not in '${remote}${name}':"
GIT_PAGER="" ${GIT} log --oneline "${reply}...${b}"
if tty -s; then
read -p "Press Enter to continue."
local choice=""
read -e -i n -p "Use ${branch} instead? [y/n]: " choice
if [ "${choice}" == "y" ]; then
reply="${branch}"
fi
fi
fi
done
Expand Down

0 comments on commit dd30788

Please sign in to comment.