config/git: update status shortcuts
This commit is contained in:
parent
79133110dc
commit
6144359cbd
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/sh
|
||||
git stl && git stb "$@"
|
Loading…
Reference in New Issue