From: Ori Avtalion Date: Thu, 21 Jul 2011 19:28:30 GMT Subject: A few questions about git-reset's reflog messages Message-ID: <4E287DDE.8020108@avtalion.name> Hi, I noticed an inconsistency with the reset command's reflog messages. The command: g reset Prints this reflog message: : updating HEAD Usually, actual lines from "git reflog" are: 640a027 HEAD@{0}: HEAD~1: updating HEAD 0657539 HEAD@{1}: 0657539: updating HEAD This feels redundant and not very informative. Is there any reason to print the tree-ish in the command? The 'raw' sha1 is already recorded in the reflog. Why does the message not mention 'reset' in the beginning like (most?) other commands? I dug into builtin/reset.c to try and improve it, and came across a few odd things, that I'd appreciate if someone would clarify: * There is code to set a "updating ORIG_HEAD" reflog message, but I can't trigger it. What use-case causes it? * The part of the reflog message before the colon is composed by args_to_str() which prints all of the arguments after the opts. This seems redundant as the only form of 'reset' that updates the reflog is one with a single '' argument after the options. What is there for args_to_str to loop over? Thanks, Ori