Code

add .mailmap for git-shortlog output with the git repository
[git.git] / git-reset.sh
index 8d95e3748d2cfdaa248dee385766dedde5ff4075..2379db082f956e68a360cfbd667761490ecad5dd 100755 (executable)
@@ -86,7 +86,12 @@ update_ref_status=$?
 
 case "$reset_type" in
 --hard )
-       ;; # Nothing else to do
+       test $update_ref_status = 0 && {
+               echo -n "HEAD is now at "
+               GIT_PAGER= git log --max-count=1 --pretty=oneline \
+                       --abbrev-commit HEAD
+       }
+       ;;
 --soft )
        ;; # Nothing else to do
 --mixed )