mirror of
https://gitlab.com/JKANetwork/jka-toolkit.git
synced 2026-02-15 17:41:31 +01:00
Changes in odiwhan (NAME PLEASE)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
gitopt=`dialog --stdout --nocancel --scrollbar --menu "Odiwhan, git simple" 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)"`
|
||||
gitopt=`dialog --stdout --nocancel --scrollbar --menu "Odiwhan, git simple" 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;;
|
||||
@@ -17,5 +17,13 @@ case $gitopt in
|
||||
gitbranch=`dialog --stdout --inputbox "Nueva rama/branch" 10 60`
|
||||
git checkout $gitbranch
|
||||
;;
|
||||
|
||||
"m")
|
||||
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`
|
||||
done
|
||||
git checkout $gitbmerge
|
||||
git merge $gitbusing
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user