X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=builtin-ls-files.c;h=f473220502027b4f9e6ed9a17ffafd42538add80;hb=e4d1afbcf2e39a997ae90befd629ee53e444c4c9;hp=2312866605c4140ac4e5a9f5bb963ca5ab5c6da3;hpb=7d40f89137b456820d51ebc1cbb3ffbb966e7fec;p=git.git diff --git a/builtin-ls-files.c b/builtin-ls-files.c index 231286660..f47322050 100644 --- a/builtin-ls-files.c +++ b/builtin-ls-files.c @@ -161,12 +161,7 @@ static void show_files(struct dir_struct *dir, const char *prefix) /* For cached/deleted files we don't need to even do the readdir */ if (show_others || show_killed) { - const char *path = ".", *base = ""; - int baselen = prefix_len; - - if (baselen) - path = base = prefix; - read_directory(dir, path, base, baselen, pathspec); + fill_directory(dir, pathspec); if (show_others) show_other_files(dir); if (show_killed)