|
|
|
@ -30,12 +30,15 @@ elif [[ "$*" =~ '--header=select the target commit' ]] && [[ "$*" =~ "diff --col
|
|
|
|
|
elif [[ "$*" =~ '--header=select a file to checkout' ]] && [[ "$*" =~ "preview.sh ${DOTBARE_TREE}/{}" ]]; then
|
|
|
|
|
# dotbare fcheckout --yes -s -- "./fcheckout.bats" @test "fcheckout select"
|
|
|
|
|
echo "fcheckout_select_gitfile"
|
|
|
|
|
elif [[ "$*" =~ "--header=select a commit to rename --no-multi" ]] && [[ "$*" =~ "show --color=always" ]]; then
|
|
|
|
|
# dotbare fedit --commit -- "./fedit.bats" @test "fedit edit commits"
|
|
|
|
|
echo "fedit_commits"
|
|
|
|
|
elif [[ "$*" =~ "--header=select tracked files to edit" ]]; then
|
|
|
|
|
# dotbare fedit -- "./fedit.bats" @test "fedit edit files"
|
|
|
|
|
exit
|
|
|
|
|
elif [[ "$*" =~ '--no-multi --header=select the target commit for HEAD' ]] && [[ "$*" =~ "show --color" ]]; then
|
|
|
|
|
# dotbare freset --commit -y -- "./freset.bats" @test "freset select commit"
|
|
|
|
|
echo "--freset_commit"
|
|
|
|
|
elif [[ "$*" =~ "--no-multi --header=select a commit to rename" ]] && [[ "$*" =~ "show --color=always" ]]; then
|
|
|
|
|
# dotbare fedit --commit -- "./fedit.bats" @test "fedit edit commits"
|
|
|
|
|
echo "fedit_commits"
|
|
|
|
|
elif [[ "$*" =~ '--header=select a commit' ]] && [[ "$*" =~ "show --color" ]]; then
|
|
|
|
|
# dotbare flog --reset -y -- "./flog.bats" @test "flog reset"
|
|
|
|
|
echo "--flog_reset"
|
|
|
|
@ -54,9 +57,6 @@ elif [[ "$*" =~ '--header=select stash to apply' ]] && [[ "$*" =~ "show -p __ --
|
|
|
|
|
elif [[ "$*" =~ "--header=select files to unstage" ]] && [[ "$*" =~ "diff HEAD --color=always" ]]; then
|
|
|
|
|
# dotbare freset -- "./freset.bats" @test "freset select files"
|
|
|
|
|
echo "-- freset_file"
|
|
|
|
|
elif [[ "$*" =~ "--header=select tracked files to edit" ]]; then
|
|
|
|
|
# dotbare fedit -- "./fedit.bats" @test "fedit edit files"
|
|
|
|
|
exit
|
|
|
|
|
elif [[ "$*" =~ "--no-multi --header=commit --flog_reset" ]]; then
|
|
|
|
|
# dotbare flog -- "./flog.bats" @test "flog checkout routing"
|
|
|
|
|
echo "exit"
|
|
|
|
|