mirror of
https://github.com/markqvist/LXMF-Tools.git
synced 2025-08-05 21:24:12 -04:00
Updates build_git.sh script
This commit is contained in:
parent
50fda242de
commit
2ce31fcee2
1 changed files with 13 additions and 4 deletions
17
build_git.sh
17
build_git.sh
|
@ -21,17 +21,18 @@ COMMENT_INIT="Initial commit"
|
||||||
_prompt() {
|
_prompt() {
|
||||||
echo -e "Origin: ${ORIGIN}"
|
echo -e "Origin: ${ORIGIN}"
|
||||||
echo -e "Branch: ${BRANCH}"
|
echo -e "Branch: ${BRANCH}"
|
||||||
echo -e "Diff:"
|
|
||||||
git diff --numstat
|
|
||||||
echo -e ""
|
echo -e ""
|
||||||
echo -e ""
|
echo -e ""
|
||||||
echo -e "Select an option:"
|
echo -e "Select an option:"
|
||||||
options=("Diff" "Commit/Push" "Clear History" "Init" "Init (Pull only)" "Init (Push only)" "Exit")
|
options=("Diff" "Pull" "Commit/Push" "Clear History" "Init" "Init (Pull only)" "Init (Push only)" "Exit")
|
||||||
select opt in "${options[@]}"; do
|
select opt in "${options[@]}"; do
|
||||||
case $opt in
|
case $opt in
|
||||||
"Diff"*)
|
"Diff"*)
|
||||||
_diff
|
_diff
|
||||||
break;;
|
break;;
|
||||||
|
"Pull"*)
|
||||||
|
_pull
|
||||||
|
break;;
|
||||||
"Commit/Push"*)
|
"Commit/Push"*)
|
||||||
_commit
|
_commit
|
||||||
break;;
|
break;;
|
||||||
|
@ -71,7 +72,15 @@ _define_files() {
|
||||||
|
|
||||||
|
|
||||||
_diff() {
|
_diff() {
|
||||||
git diff
|
git diff --numstat
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
_pull() {
|
||||||
|
echo -e ""
|
||||||
|
echo -e "Pull"
|
||||||
|
|
||||||
|
git pull origin "${BRANCH}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue