Add shell alias to list staged files

This commit is contained in:
Riley Apeldoorn 2023-06-15 20:41:51 +02:00 committed by Riley Apeldoorn
parent c931649486
commit 4ffd801836

View file

@ -46,7 +46,8 @@ in with lib; {
"uncommit" = "git reset --soft HEAD~"; "uncommit" = "git reset --soft HEAD~";
# Git selectors # 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 '^.. ' ''"; ".conflicted" = "git status --porcelain | rg '^UU' | sd '^.. ' ''";
".branches" = "git branch -a | rg -v '\*|HEAD' | sd 'remotes/origin/' '' | sd '^ *' '' | uniq"; ".branches" = "git branch -a | rg -v '\*|HEAD' | sd 'remotes/origin/' '' | sd '^ *' '' | uniq";