summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5d268ed)
raw | patch | inline | side by side (parent: 5d268ed)
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | |
Mon, 15 Nov 2010 06:42:44 +0000 (13:42 +0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 17 Nov 2010 21:26:38 +0000 (13:26 -0800) |
baselen used to be the result of common_prefix() when it was made
builtin. Since 1d8842d (Add 'fill_directory()' helper function for
directory traversal - 2009-05-14), its value will always be
zero. Remove it because it's no longer variable.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin. Since 1d8842d (Add 'fill_directory()' helper function for
directory traversal - 2009-05-14), its value will always be
zero. Remove it because it's no longer variable.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clean.c | patch | blob | history |
diff --git a/builtin/clean.c b/builtin/clean.c
index 8f602c9f4174975597601fc1c0c2d26ccc51edbe..fb24030751ec5e755009a97439ffa08ff55f67d5 100644 (file)
--- a/builtin/clean.c
+++ b/builtin/clean.c
{
int i;
int show_only = 0, remove_directories = 0, quiet = 0, ignored = 0;
- int ignored_only = 0, baselen = 0, config_set = 0, errors = 0;
+ int ignored_only = 0, config_set = 0, errors = 0;
int rm_flags = REMOVE_DIR_KEEP_NESTED_GIT;
struct strbuf directory = STRBUF_INIT;
struct dir_struct dir;
if (pathspec) {
memset(seen, 0, argc > 0 ? argc : 1);
matches = match_pathspec(pathspec, ent->name, len,
- baselen, seen);
+ 0, seen);
}
if (S_ISDIR(st.st_mode)) {