identity: implemented the show subcommand

This commit is contained in:
kalmenn 2023-12-22 17:52:36 +01:00
parent 870cf53409
commit 256b21234c
Signed by: kalmenn
GPG key ID: F500055C44BC3834

View file

@ -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 <command>";