commit IDs in changelog messsages (was: Introductory mail)

James Westby jw+debian at jameswestby.net
Thu Nov 13 15:11:15 UTC 2008


On Thu, 2008-11-13 at 08:00 +0100, martin f krafft wrote:
> also sprach James Westby <jw+debian at jameswestby.net> [2008.11.12.1709 +0100]:
> > You mean 
> > 
> >    [fc5473a06be960382582ddbfb40e2a5f824be122]
> > 
> > don't you?
> 
> No, why? Short commit IDs are usually enough in Git.

Why not use [f] then?

The short ID may be unambiguous when you create the entry, but it's not 
future proof. The chances of a collision increase over time. You could
disambiguate collisions by walking the history from the root and finding
the first matching commit, but that's in-efficient, why not record it at
the time, as you know exactly what the full name is.

Thanks,

James




More information about the vcs-pkg-discuss mailing list