]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
refs: use strings directly in find_containing_dir()
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Tue, 22 May 2012 18:50:58 +0000 (20:50 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 22 May 2012 20:32:26 +0000 (13:32 -0700)
commitdd02e72852280d73bfd845703476b230475b2776
tree2abb0bb47e7804e3a25dada2d85e1e6b38e1e07f
parentb9146f517a312fed42d12b32e3ee3bd99944121d
refs: use strings directly in find_containing_dir()

Convert the parameter subdirname of search_for_subdir() to a
length-limted string and then simply pass the interesting slice of the
refname from find_containing_dir(), thereby avoiding to duplicate the
string.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c