git-reset --hard: tell the user what the HEAD was reset to
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
f79c73ce9c
commit
95f2fb7d9f
@ -86,7 +86,12 @@ update_ref_status=$?
|
|||||||
|
|
||||||
case "$reset_type" in
|
case "$reset_type" in
|
||||||
--hard )
|
--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 )
|
--soft )
|
||||||
;; # Nothing else to do
|
;; # Nothing else to do
|
||||||
--mixed )
|
--mixed )
|
||||||
|
Loading…
Reference in New Issue
Block a user