Git : Fix gdc default value.
This commit is contained in:
parent
b378c2044a
commit
2fc7fc150c
|
@ -169,7 +169,7 @@ function gg() {
|
||||||
# Usage: gdc [COMMITHASH]
|
# Usage: gdc [COMMITHASH]
|
||||||
function gdc() {
|
function gdc() {
|
||||||
local hash="${1}"
|
local hash="${1}"
|
||||||
[[ "${hash}" = "" ]] && hash="HEAD~"
|
[[ "${hash}" = "" ]] && hash="HEAD"
|
||||||
git diff "${hash}^!"
|
git diff "${hash}^!"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue