mirror of
https://github.com/markqvist/LXMF-Tools.git
synced 2024-10-01 03:15:38 -04:00
Updates build_git.sh script
This commit is contained in:
parent
50fda242de
commit
2ce31fcee2
17
build_git.sh
17
build_git.sh
@ -21,17 +21,18 @@ COMMENT_INIT="Initial commit"
|
||||
_prompt() {
|
||||
echo -e "Origin: ${ORIGIN}"
|
||||
echo -e "Branch: ${BRANCH}"
|
||||
echo -e "Diff:"
|
||||
git diff --numstat
|
||||
echo -e ""
|
||||
echo -e ""
|
||||
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
|
||||
case $opt in
|
||||
"Diff"*)
|
||||
_diff
|
||||
break;;
|
||||
"Pull"*)
|
||||
_pull
|
||||
break;;
|
||||
"Commit/Push"*)
|
||||
_commit
|
||||
break;;
|
||||
@ -71,7 +72,15 @@ _define_files() {
|
||||
|
||||
|
||||
_diff() {
|
||||
git diff
|
||||
git diff --numstat
|
||||
}
|
||||
|
||||
|
||||
_pull() {
|
||||
echo -e ""
|
||||
echo -e "Pull"
|
||||
|
||||
git pull origin "${BRANCH}"
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user