Git : Fix gdc default value.

This commit is contained in:
Dmitry Voronin 2024-02-27 03:53:51 +03:00
parent b378c2044a
commit 2fc7fc150c

View file

@ -169,7 +169,7 @@ function gg() {
# Usage: gdc [COMMITHASH]
function gdc() {
local hash="${1}"
[[ "${hash}" = "" ]] && hash="HEAD~"
[[ "${hash}" = "" ]] && hash="HEAD"
git diff "${hash}^!"
}