Is there a way to make git log to show differently the situations where (a) HEAD points to branch pointer and branch pointer points to commit, and (b) HEAD points directly to commit, and also branch pointer points to the same commit?
For example, if I do
git commit -m'My commit'
git log --oneline --graph --decorate
* 655c6f1 (HEAD, master) My commit
So now the situation is: 655c6f1 <- master <- HEAD. But if I do
git checkout 655c6f1
git log --oneline --graph --decorate
* 655c6f1 (HEAD, master) My commit
So now the situation is: 655c6f1 <- master, 655c6f1 <- HEAD. (And I am in a detached HEAD state.)
But in both cases the git log
output is identical. How to make git log differentiate between these two situations?