kiss: Allow #arg to be a branch name

This commit is contained in:
Dylan Araps 2020-02-12 09:27:48 +02:00
parent b1fe5c876c
commit 5bfc5cb0ae
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

4
kiss
View File

@ -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]'