config/git: update status shortcuts

This commit is contained in:
xeruf 2021-05-05 08:47:29 +02:00
parent 79133110dc
commit 6144359cbd
3 changed files with 38 additions and 6 deletions

View File

@ -68,7 +68,9 @@
[alias]
# GET INFO
stb = status --short --branch --show-stash
s = !git stl && git stb
st = stb .
stb = status --short --branch
stv = --paginate status -v
stvv = --paginate status -vv
@ -77,7 +79,7 @@
ba = b -a
main = !cat $(git rev-parse --git-dir)/refs/remotes/origin/HEAD | cut -d'/' -f4
s = switch
sw = switch
sc = switch -c
sm = !git switch $(git main)
@ -119,10 +121,10 @@
rbm = !git rb $(git main)
sta = stash
stl = !git --no-pager stash list
stl = !git --no-pager stash list --pretty=tformat:'%gd%h - %s (%cr)'
sts = stash show -v
stp = stash pop
std = stash drop
std = !git stash drop && git stl
rh = reset HEAD~
rs = reset --keep

View File

@ -0,0 +1,32 @@
Thank you for filling out a Git bug report!
Please answer the following questions to help us understand your issue.
What did you do before the bug happened? (Steps to reproduce your issue)
git status --short --show-stash --branch
What did you expect to happen? (Expected behavior)
The status shows info about the stash, e.g. next to the branch infos
What happened instead? (Actual behavior)
--show-stash is ignored in short mode
[System Info]
git version:
git version 2.30.1
cpu: x86_64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
uname: Linux 5.10.15-arch1-1 #1 SMP PREEMPT Wed, 10 Feb 2021 18:32:40 +0000 x86_64
compiler info: gnuc: 10.2
libc info: glibc: 2.33
$SHELL (typically, interactive shell): /bin/zsh
[Enabled Hooks]
post-commit
post-checkout
post-merge
pre-push

View File

@ -1,2 +0,0 @@
#!/bin/sh
git stl && git stb "$@"