Skip to contentSkip to conversation

git reflog on a tag tries to do something unexpected

BUG Yann Dirson 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

git reflog, when applied to a tag, should surely bail out saying there is reflog for the requested reference. However, instead it spits out a single line of abbreviated sha1's of an ancestry walk:

$ git reflog --decorate v1.8.2.1
5bda18c (tag: v1.8.2.1) 6466fbb 2137ce0 (tag: v1.8.1.6) 4bbb830 0e9b327 ...
Signature · 1 line
Yann Dirson - Bertin Technologies
#1 lore raw
Quoted 6 lines · Yann Dirson

git reflog, when applied to a tag, should surely bail out saying there is reflog for the requested reference. However, instead it spits out a single line of abbreviated sha1's of an ancestry walk:

$ git reflog --decorate v1.8.2.1
5bda18c (tag: v1.8.2.1) 6466fbb 2137ce0 (tag: v1.8.1.6) 4bbb830 0e9b327 ...

Also "git reflog --decorate origin/master^{}" should have bailed out instead of printing nothing.

Signature · 1 line
Duy