sha1-name: refactor get_sha1() parsing felipec/fc/revision/refactor
authorFelipe Contreras <felipe.contreras@gmail.com>
Mon, 2 Sep 2013 06:19:58 +0000 (01:19 -0500)
committerFelipe Contreras <felipe.contreras@gmail.com>
Wed, 30 Apr 2014 19:10:44 +0000 (14:10 -0500)
commit7fa9b55cce05298e21b483562433cfbafd69f5f8
tree08a3b66624255935ffe39d3244092498c806357e
parent0bc85abb7aa9b24b093253018801a0fb43d01122
sha1-name: refactor get_sha1() parsing

Instead of parsing left to right, do it right do left, this way it is
much more natural and probably efficient too, as there's less
recursivity.

In theory there shouldn't be any functional changes, although there's at
least one error message that has changed.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
sha1_name.c
t/t1506-rev-parse-diagnosis.sh