gd,gdc,gdcw,gdt,gdw

This commit is contained in:
Marc Beninca 2024-11-16 19:01:27 +01:00
parent c5185768b0
commit 5539baa340
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -169,39 +169,44 @@ gcun() {
}
# differences from last or between commits
alias gd="\
gd() {
git \
diff \
"
"${@}"
}
# display what is indexed in cache
alias gdc="\
gdc() {
git \
diff \
--cached \
"
"${@}"
}
# indexed character-level differences
alias gdcw="\
gdcw() {
git \
diff \
--cached \
--word-diff-regex=. \
"
--word-diff-regex "." \
"${@}"
}
# differences via external tool
alias gdt="\
gdt() {
git \
difftool \
--dir-diff \
"
"${@}"
}
# character-level differences
alias gdw="\
gdw() {
git \
diff \
--word-diff-regex=. \
"
--word-diff-regex "." \
"${@}"
}
# fetch from the remote repository
alias gf="\