forked from kiss-community/kiss
kiss: Allow #arg to be a branch name
This commit is contained in:
parent
b1fe5c876c
commit
5bfc5cb0ae
4
kiss
4
kiss
@ -231,7 +231,7 @@ pkg_extract() {
|
|||||||
git+*\#*)
|
git+*\#*)
|
||||||
log "Checking out ${src##*#}"
|
log "Checking out ${src##*#}"
|
||||||
|
|
||||||
git reset --hard "${src##*#}" ||
|
git -c advice.detachedHead=false checkout "${src##*#}" ||
|
||||||
die "Commit hash ${src##*#} doesn't exist"
|
die "Commit hash ${src##*#} doesn't exist"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
@ -1308,7 +1308,7 @@ args() {
|
|||||||
l|list) pkg_list "$@" ;;
|
l|list) pkg_list "$@" ;;
|
||||||
u|update) pkg_updates ;;
|
u|update) pkg_updates ;;
|
||||||
s|search) for pkg; do pkg_find "$pkg" all; done ;;
|
s|search) for pkg; do pkg_find "$pkg" all; done ;;
|
||||||
v|version) log kiss 1.5.2 ;;
|
v|version) log kiss 1.5.3 ;;
|
||||||
|
|
||||||
h|help|-h|--help|'')
|
h|help|-h|--help|'')
|
||||||
log 'kiss [a|b|c|i|l|r|s|u|v] [pkg] [pkg] [pkg]'
|
log 'kiss [a|b|c|i|l|r|s|u|v] [pkg] [pkg] [pkg]'
|
||||||
|
Loading…
Reference in New Issue
Block a user