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
|
||||
alias gd="\
|
||||
git \
|
||||
diff \
|
||||
"
|
||||
gd() {
|
||||
git \
|
||||
diff \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
# display what is indexed in cache
|
||||
alias gdc="\
|
||||
git \
|
||||
diff \
|
||||
--cached \
|
||||
"
|
||||
gdc() {
|
||||
git \
|
||||
diff \
|
||||
--cached \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
# indexed character-level differences
|
||||
alias gdcw="\
|
||||
git \
|
||||
diff \
|
||||
--cached \
|
||||
--word-diff-regex=. \
|
||||
"
|
||||
gdcw() {
|
||||
git \
|
||||
diff \
|
||||
--cached \
|
||||
--word-diff-regex "." \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
# differences via external tool
|
||||
alias gdt="\
|
||||
git \
|
||||
difftool \
|
||||
--dir-diff \
|
||||
"
|
||||
gdt() {
|
||||
git \
|
||||
difftool \
|
||||
--dir-diff \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
# character-level differences
|
||||
alias gdw="\
|
||||
git \
|
||||
diff \
|
||||
--word-diff-regex=. \
|
||||
"
|
||||
gdw() {
|
||||
git \
|
||||
diff \
|
||||
--word-diff-regex "." \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
# fetch from the remote repository
|
||||
alias gf="\
|
||||
|
|
Loading…
Reference in a new issue