mirror of
https://gitlab.com/JKANetwork/jka-toolkit.git
synced 2026-02-16 18:11:33 +01:00
changes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user