On Thu, Jul 16, 2015 at 05:29:25PM +0200, Beat Bolli wrote: > When referring to earlier commits in commit messages or other text, one > of the established formats is > > <abbrev-sha> ("<summary>", <author-date>) > > Add a "Copy commit summary" command to the context menu that puts this > text for the currently selected commit on the clipboard. This makes it > easy for our users to create well-formatted commit references. I really like this idea, but as others have noted, 8 characters may not be the right choice for the SHA1 length in all cases. We have an item in the preferences menu to control the SHA1 length that is automatically selected when going to a new commit. It's stored in the variable $autosellen. That seems like it would be a reasonable choice for the SHA1 length to use here. The only possible problem is that it defaults to 40 and so might give an overly long result for some users. Maybe you could use $autosellen but limit it to at most 12 or 16 or something like that. Paul. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html