threads / discuss / 19337

add comments to reflog?

Subject: add comments to reflog?

## tl;dr

2 messages between May 13, 2009 and May 13, 2009.

replies: 1people: 2as markdown or json

Michael S. Tsirkin· May 13, 2009, 10:35 UTC · lore
I noticed that I am often doing this
hack commit hack commit  hack commit ...

git tag -s works -m "works on xyz, must rewrite abc" git reset --hard HEAD~1

hack ...

I only tag just in case I want to revisit the design. However, after I reset, I often forget how did I name the tag. It would be nice if reflog would show tag descriptions, which it does not seem to.

Comments?
-- 
MST
Michael J Gruber· May 13, 2009, 12:08 UTC · re: Michael S. Tsirkin · lore

Re: add comments to reflog?

Michael S. Tsirkin venit, vidit, dixit 13.05.2009 12:35:
Show 17 quoted lines
> I noticed that I am often doing this
> 
> hack commit hack commit  hack commit ...
> 
> git tag  -s works -m "works on xyz, must rewrite abc"
> git reset --hard HEAD~1
> 
> hack ...
> 
> I only tag just in case I want to revisit the design.
> However, after I reset, I often forget how did
> I name the tag. It would be nice if reflog would
> show tag descriptions, which it does not seem to.
> 
> Comments?
> 
> 
I'm not sure about your exact requirements, but maybe
git log --tags --simplify-by-decoration

does something useful for you. Also remember gitk etc. which takes the same arguments for commit selection (those of git-rev-list). I always forget about the power of git-rev-list options when used with log and gitk. Thanks for reminding me :)

Cheers, Michael

← back to recent threads