X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=home%2Fbin%2Fx;h=eb5aee2d4950dd89925da05e70b1cad35cfd3910;hb=cdfb443f36e824c606cf2c194d645735d53065f3;hp=59a47106a5d0f55804d983ae054fb142423cd0fd;hpb=0443168ac4d6036193dde0a2ece8fc858c732033;p=khome.git diff --git a/home/bin/x b/home/bin/x index 59a4710..eb5aee2 100755 --- a/home/bin/x +++ b/home/bin/x @@ -6,12 +6,13 @@ name=$(echo "$@" | sed 's/\s\+/-/g'); if [ "$name" != "" ]; then - timestamp=$(date +'%F--%H-%M--%S'); + timestamp=$(date +'%F--%H-%M-%S'); directory="$HOME/x/$timestamp--$name"; mkdir -p "$directory"; cd "$directory"; printf '# %s\n' "$name" > README; git init >&2 + git commit --allow-empty -m 'Root commit' >&2 git add . >&2 git commit -m 'Initial commit' >&2 echo "$directory";