Commit 4beb043d authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add short-flag -b to git-supertree mv subcommand

parent b7a913a0
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -65,8 +65,8 @@ $SCRIPT add [--from SOURCE] BRANCH[:PATH]
$SCRIPT mv [--branch] NAME NEW-NAME
  Move a worktree to a new path.

  --branch  Create a new branch with the name NEW-NAME and check it out in the
            moved worktree.
  -b --branch  Create a new branch with the name NEW-NAME and check it out in
               the moved worktree.

$SCRIPT rm [--branch] NAME
  Remove a worktree named NAME.
@@ -400,7 +400,7 @@ action_mv()
	local NAME NEW_NAME CREATE
	while [[ $# -gt 0 ]]; do
		case $1 in
			--branch) CREATE=yes ;;
			-b|--branch) CREATE=yes ;;
			*) case '' in
				${NAME-}) NAME=$1 ;;
				${NEW_NAME-}) NEW_NAME=$1 ;;