From 256b21234cae89ac0327108b912acf94b8e3d6f6 Mon Sep 17 00:00:00 2001 From: kalmenn Date: Fri, 22 Dec 2023 17:52:36 +0100 Subject: [PATCH] identity: implemented the show subcommand --- scripts/identity.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/identity.sh b/scripts/identity.sh index 948d177..c163e89 100755 --- a/scripts/identity.sh +++ b/scripts/identity.sh @@ -140,6 +140,13 @@ case $1 in [ ! -z "$email" ] && git config user.email "$email"; [ ! -z "$sigkey" ] && git config user.signingKey "$sigkey"; ;; + show) + if [ -z "$2" ]; then + display_parts "current" "$(git config user.name)" "$(git config user.email)" "$(git config user.signingKey)"; + else + display_identity "$2"; + fi + ;; *) echo "USAGE:"; echo " git identity ";