rename field "raw" to "_raw" in struct pathspec
This patch is essentially no-op. It helps catching new use of this field though. This field is introduced as an intermediate step for the pathspec conversion and will be removed eventually. At this stage no more access sites should be introduced. 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
61588ccf78
commit
b3920bbdc5
@ -287,7 +287,7 @@ void parse_pathspec(struct pathspec *pathspec,
|
||||
raw[0] = prefix;
|
||||
raw[1] = NULL;
|
||||
pathspec->nr = 1;
|
||||
pathspec->raw = raw;
|
||||
pathspec->_raw = raw;
|
||||
return;
|
||||
}
|
||||
|
||||
@ -297,7 +297,7 @@ void parse_pathspec(struct pathspec *pathspec,
|
||||
|
||||
pathspec->nr = n;
|
||||
pathspec->items = item = xmalloc(sizeof(*item) * n);
|
||||
pathspec->raw = argv;
|
||||
pathspec->_raw = argv;
|
||||
prefixlen = prefix ? strlen(prefix) : 0;
|
||||
|
||||
for (i = 0; i < n; i++) {
|
||||
@ -357,7 +357,7 @@ const char **get_pathspec(const char *prefix, const char **pathspec)
|
||||
PATHSPEC_ALL_MAGIC & ~PATHSPEC_FROMTOP,
|
||||
PATHSPEC_PREFER_CWD,
|
||||
prefix, pathspec);
|
||||
return ps.raw;
|
||||
return ps._raw;
|
||||
}
|
||||
|
||||
void copy_pathspec(struct pathspec *dst, const struct pathspec *src)
|
||||
|
||||
Reference in New Issue
Block a user