Add shell alias to list staged files
This commit is contained in:
parent
c931649486
commit
4ffd801836
1 changed files with 2 additions and 1 deletions
|
@ -46,7 +46,8 @@ in with lib; {
|
|||
"uncommit" = "git reset --soft HEAD~";
|
||||
|
||||
# Git selectors
|
||||
".changed" = "git diff --name-only";
|
||||
".changed" = "git diff --diff-filter=AM --name-only";
|
||||
".staged" = "git diff --diff-filter=AM --name-only --cached";
|
||||
".conflicted" = "git status --porcelain | rg '^UU' | sd '^.. ' ''";
|
||||
".branches" = "git branch -a | rg -v '\*|HEAD' | sd 'remotes/origin/' '' | sd '^ *' '' | uniq";
|
||||
|
||||
|
|
Loading…
Reference in a new issue