gd,gdc,gdcw,gdt,gdw
This commit is contained in:
parent
c5185768b0
commit
5539baa340
1 changed files with 30 additions and 25 deletions
|
@ -169,39 +169,44 @@ gcun() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# differences from last or between commits
|
# differences from last or between commits
|
||||||
alias gd="\
|
gd() {
|
||||||
git \
|
git \
|
||||||
diff \
|
diff \
|
||||||
"
|
"${@}"
|
||||||
|
}
|
||||||
|
|
||||||
# display what is indexed in cache
|
# display what is indexed in cache
|
||||||
alias gdc="\
|
gdc() {
|
||||||
git \
|
git \
|
||||||
diff \
|
diff \
|
||||||
--cached \
|
--cached \
|
||||||
"
|
"${@}"
|
||||||
|
}
|
||||||
|
|
||||||
# indexed character-level differences
|
# indexed character-level differences
|
||||||
alias gdcw="\
|
gdcw() {
|
||||||
git \
|
git \
|
||||||
diff \
|
diff \
|
||||||
--cached \
|
--cached \
|
||||||
--word-diff-regex=. \
|
--word-diff-regex "." \
|
||||||
"
|
"${@}"
|
||||||
|
}
|
||||||
|
|
||||||
# differences via external tool
|
# differences via external tool
|
||||||
alias gdt="\
|
gdt() {
|
||||||
git \
|
git \
|
||||||
difftool \
|
difftool \
|
||||||
--dir-diff \
|
--dir-diff \
|
||||||
"
|
"${@}"
|
||||||
|
}
|
||||||
|
|
||||||
# character-level differences
|
# character-level differences
|
||||||
alias gdw="\
|
gdw() {
|
||||||
git \
|
git \
|
||||||
diff \
|
diff \
|
||||||
--word-diff-regex=. \
|
--word-diff-regex "." \
|
||||||
"
|
"${@}"
|
||||||
|
}
|
||||||
|
|
||||||
# fetch from the remote repository
|
# fetch from the remote repository
|
||||||
alias gf="\
|
alias gf="\
|
||||||
|
|
Loading…
Reference in a new issue