checkout_entry(): use the strbuf throughout the function
commitf63272a35e03a9895c468d1a698dabaa4c3d9273
authorMichael Haggerty <mhagger@alum.mit.edu>
Thu, 13 Mar 2014 09:19:07 +0000 (13 10:19 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 13 Mar 2014 17:56:50 +0000 (13 10:56 -0700)
treecf93c1dbb47c637a016d857d73f2982000511b82
parentfd356f6aa8bb75ebef56fbc61caf7e02517fa6d3
checkout_entry(): use the strbuf throughout the function

There is no need to break out the "buf" and "len" members into
separate temporary variables.  Rename path_buf to path and use
path.buf and path.len directly.  This makes it easier to reason about
the data flow in the function.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
entry.c