mirror of https://github.com/kazhala/dotbare
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
605 B
Bash
31 lines
605 B
Bash
#!/bin/bash
|
|
#
|
|
# interactive git status menu
|
|
# allow editing staging ustaging actions
|
|
#
|
|
# @params
|
|
# Globals
|
|
# None
|
|
# Arguments
|
|
# None
|
|
|
|
set -e
|
|
set -f
|
|
|
|
mydir="${0%/*}"
|
|
source "${mydir}"/../helper/set_variable.sh
|
|
source "${mydir}"/../helper/git_query.sh
|
|
|
|
function usage() {
|
|
echo -e "Usage: dotbare fstat [-h] ...\n"
|
|
echo -e "Display interactive git status menu"
|
|
echo -e "Stage, unstage, edit file interactively\n"
|
|
echo -e "optional arguments:"
|
|
echo -e " -h\t\tshow this help message and exit"
|
|
}
|
|
|
|
while true; do
|
|
selected_files=$(get_modified_file)
|
|
[[ -z "${selected_files}" ]] && break
|
|
done
|