From: Junio C Hamano Date: Thu, 04 Nov 2010 19:09:32 GMT Subject: Re: [PATCH 2/2] rebase: teach --autosquash to match on sha1 in addition to message Message-ID: <7vr5f0vrbn.fsf@alter.siamese.dyndns.org> In-Reply-To: <5CCA000B-2178-4DF7-8D72-29F95A9BB360@sb.org> Kevin Ballard writes: > On Nov 3, 2010, at 7:41 PM, Kevin Ballard wrote: > >> Support lines of the form "fixup! 7a235b" that specify an exact commit >> in addition to the normal "squash! Old commit message" form. > > I just realized that this only works for sha1's of up to 7 characters. > If you provide more it won't match, as it's comparing against the sha1 > given in the todo list. I wonder if it's worth resolving all sha1s to > their full length if the provided string is longer than 7 characters? Yeah, this is a nice feature I sometimes missed ;-)