git-school / visualizing-git

:framed_picture: Visualize how common Git operations affect the commit graph

Home Page:http://git-school.github.io/visualizing-git/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inconsistent Reflog Entry Format Missing Commit Messages

rsantanatech opened this issue · comments

Steps to reproduce:

  1. Start from a new clean local repository.
  2. Create a few commits (git commit -m "<any message>")
  3. Execute reflog command (git reflog)

Expected result: for each entry in the reflog that the reason is a commit, the expected format is <commit id> HEAD@{<integer>}: commit: <commit message>

Actual result: for each entry in the reflog that the reason is a commit, the current format is <commit id> HEAD@{<integer>}: commit:. Note that the commit message does not exist.

See screenshot below:
image

The commit message is important because an important use case of the reflog is to recover lost commits, in which case the user recovers through the message