pathspec: convert some match_pathspec_depth() to ce_path_match()
This helps reduce the number of match_pathspec_depth() call sites and show how match_pathspec_depth() is used. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
017f804efc
commit
429bb40abd
@ -16,6 +16,7 @@
|
||||
#include "line-log.h"
|
||||
#include "mailmap.h"
|
||||
#include "commit-slab.h"
|
||||
#include "dir.h"
|
||||
|
||||
volatile show_early_output_fn_t show_early_output;
|
||||
|
||||
@ -1400,7 +1401,7 @@ static void prepare_show_merge(struct rev_info *revs)
|
||||
const struct cache_entry *ce = active_cache[i];
|
||||
if (!ce_stage(ce))
|
||||
continue;
|
||||
if (ce_path_match(ce, &revs->prune_data)) {
|
||||
if (ce_path_match(ce, &revs->prune_data, NULL)) {
|
||||
prune_num++;
|
||||
prune = xrealloc(prune, sizeof(*prune) * prune_num);
|
||||
prune[prune_num-2] = ce->name;
|
||||
|
Reference in New Issue
Block a user