pathspec: rename free_pathspec() to clear_pathspec()
The function takes a pointer to a pathspec structure, and releases the resources held by it, but does not free() the structure itself. Such a function should be called "clear", not "free". Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
@ -1425,7 +1425,7 @@ static void prepare_show_merge(struct rev_info *revs)
|
||||
ce_same_name(ce, active_cache[i+1]))
|
||||
i++;
|
||||
}
|
||||
free_pathspec(&revs->prune_data);
|
||||
clear_pathspec(&revs->prune_data);
|
||||
parse_pathspec(&revs->prune_data, PATHSPEC_ALL_MAGIC & ~PATHSPEC_LITERAL,
|
||||
PATHSPEC_PREFER_FULL | PATHSPEC_LITERAL_PATH, "", prune);
|
||||
revs->limited = 1;
|
||||
|
Reference in New Issue
Block a user