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
1 changed files with 2 additions and 1 deletions

View File

@ -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";