Re: [PATCH v5 1/2] sha1-name: pass len argument to interpret_branch_name()

2013-09-03 Thread Junio C Hamano
Felipe Contreras felipe.contre...@gmail.com writes: This is useful to make sure we don't step outside the boundaries of what we are interpreting at the moment. For example while interpreting foobar@{u}~1, the job of interpret_branch_name() ends right before ~1, but there's no way to figure

[PATCH v5 1/2] sha1-name: pass len argument to interpret_branch_name()

2013-09-02 Thread Felipe Contreras
This is useful to make sure we don't step outside the boundaries of what we are interpreting at the moment. For example while interpreting foobar@{u}~1, the job of interpret_branch_name() ends right before ~1, but there's no way to figure that out inside the function, unless the len argument is