wfxr / forgit

:zzz: A utility tool powered by fzf for using git interactively.
MIT License
4.4k stars 137 forks source link

feat: Add aliases for git diff staged and cached #175

Closed hermitmaster closed 2 years ago

hermitmaster commented 2 years ago

Check list

Description

Added aliases for git diff --staged and git diff --cached

Type of change

Test environment

Closes #174

cjappl commented 2 years ago

LGTM besides the small comment. Leaving it up to @wfxr if we want to take the change or not.

Thanks for the contribution :)

wfxr commented 2 years ago

Well, why not just add two lines in your shell's config? I think it's a more elegant way.

alias gdca='gd --cached'
alias gds='gd --staged'

And more aliases like alias gdh='gd HEAD' etc.