search for: implied_dirs_are_miss

Displaying 1 result from an estimated 1 matches for "implied_dirs_are_miss".

2008 Mar 19
0
[PATCH] Unsnarl missing_below/dry_run logic.
...38 deletions(-) create mode 100644 testsuite/missing.test diff --git a/generator.c b/generator.c index c06ea0d..b209812 100644 --- a/generator.c +++ b/generator.c @@ -1213,6 +1213,14 @@ static void list_file_entry(struct file_struct *f) static int phase = 0; static int dflt_perms; +static int implied_dirs_are_missing; +/* Helper for recv_generator's skip_dir and dry_missing_dir tests. */ +static BOOL is_below(struct file_struct *file, struct file_struct *subtree) +{ + return F_DEPTH(file) > F_DEPTH(subtree) + && (!implied_dirs_are_missing || f_name_has_prefix(file, subtree)); +} + /* Acts on...