From 2fc7fc150caf145480033a8f4ce4ead6a9e607f5 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Tue, 27 Feb 2024 03:53:51 +0300 Subject: [PATCH] Git : Fix gdc default value. --- .config/linux/system/module/common/bash/module/Git.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/linux/system/module/common/bash/module/Git.sh b/.config/linux/system/module/common/bash/module/Git.sh index 3e4ffb9..e596382 100644 --- a/.config/linux/system/module/common/bash/module/Git.sh +++ b/.config/linux/system/module/common/bash/module/Git.sh @@ -169,7 +169,7 @@ function gg() { # Usage: gdc [COMMITHASH] function gdc() { local hash="${1}" - [[ "${hash}" = "" ]] && hash="HEAD~" + [[ "${hash}" = "" ]] && hash="HEAD" git diff "${hash}^!" }