From 1dabf5a8d511db458dd529588e57a8ed8185787a Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Thu, 28 May 2020 16:45:43 +0300 Subject: added new utilities, changed repository structure --- repo/git/kiss-add | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 repo/git/kiss-add (limited to 'repo/git/kiss-add') diff --git a/repo/git/kiss-add b/repo/git/kiss-add new file mode 100755 index 0000000..3f29946 --- /dev/null +++ b/repo/git/kiss-add @@ -0,0 +1,13 @@ +#!/bin/sh +# Commit the current directory as a new package + +case "$1" in --help|-h) printf '%s\n' "usage: ${0##*/}"; exit 0; esac + +read -r ver _ < version || { + printf '%s\n' "could not find version file, are you on a package directory?" + exit 1 +} + +# Unstage all changes and stage the current directory +git reset; git add . +git commit -m "${PWD##*/}: add new package at $ver" -- cgit v1.2.3