dir: simplify fill_directory()
commit2b189435f341cb2c7089af4f22e307405e6243df
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Fri, 11 May 2012 14:59:25 +0000 (11 16:59 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 11 May 2012 21:31:32 +0000 (11 14:31 -0700)
tree3af33129d48e38a2e193687640ab5a444167f9aa
parent1528d247e53bcf33db5b004a25a7d9b8c75c90e4
dir: simplify fill_directory()

Now that read_directory_recursive() (reached through read_directory())
respects the string length limit we provide, we don't need to create a
NUL-limited copy of the common prefix anymore.

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