Skip to content

Commit

Permalink
Add is_source_space command
Browse files Browse the repository at this point in the history
  • Loading branch information
asherikov committed Nov 29, 2024
1 parent c5f1f09 commit 87536b3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ test_update:
${WSHANDLER} -t ${TYPE} --root tests/update/ status
${WSHANDLER} -t ${TYPE} --root tests/update/ -j 2 clean
${WSHANDLER} -t ${TYPE} -r tests/update/ --jobs 2 --policy shallow update
${WSHANDLER} -t ${TYPE} -r tests/update/ is_source_space
! ${WSHANDLER} -t ${TYPE} -r ./ is_source_space
${WSHANDLER} -t ${TYPE} -r tests/update/ unshallow staticoma
${WSHANDLER} -t ${TYPE} --root tests/update/ status
${WSHANDLER} -t ${TYPE} --root tests/update/ -j 2 clean
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Common arguments:
List commands:
Information:
status
is_source_space
Initialization:
[-p|--policy policy1[,policy2] ({default}|shallow|nolfs)] clone git <LIST_REPOSITORY> [<BRANCH>]
[-p|--policy policy1[,policy2] ({default}|shallow|nolfs)] init [git <PACKAGE_REPOSITORY> ...]
Expand Down
6 changes: 5 additions & 1 deletion wshandler
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ help()
echo "List commands:"
echo " Information:"
echo " status"
echo " is_source_space"
echo " Initialization:"
echo " [-p|--policy policy1[,policy2] ({default}|shallow|nolfs)] clone git <LIST_REPOSITORY> [<BRANCH>]"
echo " [-p|--policy policy1[,policy2] ({default}|shallow|nolfs)] init [git <PACKAGE_REPOSITORY> ...]"
Expand Down Expand Up @@ -650,7 +651,6 @@ execute_unshallow()
done
}


set_version()
{
TARGET_MATCH="$2"
Expand Down Expand Up @@ -746,6 +746,10 @@ do
execute_command "$1"
exit;;

is_source_space)
check_workspace "is_source_space"
exit;;

add|remove|merge|remove_by_url|foreach|prune|push|branch|commit|set_version_branch|unshallow)
check_workspace "$1"
"execute_$1" "${@:2}"
Expand Down

0 comments on commit 87536b3

Please sign in to comment.