aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/%HOME%
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2017-08-07 14:24:10 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2017-08-07 14:24:10 +0300
commit2843f7424e5fcff6988b5273c6a788538288b524 (patch)
treeda9fa3e906d7c70f2e30bc3321be3a9fb91d905c /%HOME%
parentcode style (diff)
downloadlinux-home-2843f7424e5fcff6988b5273c6a788538288b524.tar.gz
linux-home-2843f7424e5fcff6988b5273c6a788538288b524.zip
repo_branches: an alias now
Diffstat (limited to '%HOME%')
-rw-r--r--%HOME%/.bash_utils/git.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/%HOME%/.bash_utils/git.sh b/%HOME%/.bash_utils/git.sh
index ce0a4ef..afb9831 100644
--- a/%HOME%/.bash_utils/git.sh
+++ b/%HOME%/.bash_utils/git.sh
@@ -10,13 +10,13 @@ source "$HOME/.bash_utils/text.sh"
alias branch_files='git ls-tree -r --name-only HEAD'
alias branch_dirs='git ls-tree -r --name-only HEAD -d'
-repo_branches() {
- git for-each-ref --format='%(refname:short)' refs/heads/
-}
+alias repo_branches='git for-each-ref '"'"'--format=%(refname:short)'"'"' refs/heads/'
workdir_is_clean() (
set -o errexit -o nounset -o pipefail
- test -z "$( git status --porcelain )"
+ local status
+ status="$( git status --porcelain )"
+ test -z "$status"
)
alias workdir_clean_all='git clean -fdx'