1
0
mirror of https://gitlab.com/JKANetwork/jka-toolkit.git synced 2026-02-16 18:11:33 +01:00
This commit is contained in:
kprkpr
2016-06-18 23:10:00 +02:00
parent 9d5e42daea
commit 96a485adb6

View File

@@ -1,10 +1,10 @@
#!/bin/bash
VERSION="0.1.1"
VERSION="0.1.2"
gitopt=`dialog --stdout --scrollbar --menu "gitdit - Git DIalog inTerface" 0 0 6 p "Descargar actualizaciones del git (Hacer pull)" s "Subir actualizaciones al git (Hacer push)" c "Descargar un nuevo git (Hacer clone)" b "Cambiar de branch/rama (Hacer checkout)" m "Unir ramas (Hacer merge)"`
case $gitopt in
"p") git pull;;
"s") commit=`dialog --stdout --inputbox "Cambios (texto commit)" 10 50`
"s") commit=`dialog --stdout --inputbox "Cambios (texto commit)" 10 50 "changes"`
if [[ -z $commit ]];then
commit="changes"
fi
@@ -22,10 +22,10 @@ case $gitopt in
until [[ $gitbusing && $gitbmerge ]]
do
gitbusing=`dialog --stdout --inputbox "Rama actual" 10 60`
gitbmerge=`dialog --stdout --inputbox "Rama con la que unir (la final,normalmente master)" 10 60`
gitbmerge=`dialog --stdout --inputbox "Rama con la que unir (la final,normalmente master)" 10 60 "master"`
done
git checkout $gitbmerge
git merge $gitbusing
git push
;;
esac
esac