X-Git-Url: https://git.armaanb.net/?p=bin.git;a=blobdiff_plain;f=kiss-git;fp=kiss-git;h=25c62f33c08e9d4d0bb9b5cfc3461959972a38a3;hp=0000000000000000000000000000000000000000;hb=4f23b8cfa441f439dfe849198fe10501c5d20254;hpb=ba4c894865589f7e813fca21c4995db15f8efbf1 diff --git a/kiss-git b/kiss-git new file mode 100755 index 0000000..25c62f3 --- /dev/null +++ b/kiss-git @@ -0,0 +1,13 @@ +#!/usr/bin/sh -e + +gitcmd() { + version=$(cut -d ' ' -f 1 $2/version) + pkg=$(printf %s "$2" | sed 's|/||g') + git add $2 +} + +case $1 in + new) gitcmd $@ && git commit -m "$pkg: new package at $version" ;; + bump) gitcmd $@ && git commit -m "$pkg: bump to $version" ;; + *) printf "No such subcommand.\n"; exit 1 ;; +esac