Taylor Blau
c45841fff8
revision.h: store hidden refs in a strvec
...
In subsequent commits, it will be convenient to have a 'const char **'
of hidden refs (matching `transfer.hiderefs`, `uploadpack.hideRefs`,
etc.), instead of a `string_list`.
Convert spots throughout the tree that store the list of hidden refs
from a `string_list` to a `strvec`.
Note that in `parse_hide_refs_config()` there is an ugly const-cast used
to avoid an extra copy of each value before trimming any trailing slash
characters. This could instead be written as:
ref = xstrdup(value);
len = strlen(ref);
while (len && ref[len - 1] == '/')
ref[--len] = '\0';
strvec_push(hide_refs, ref);
free(ref);
but the double-copy (once when calling `xstrdup()`, and another via
`strvec_push()`) is wasteful.
Signed-off-by: Taylor Blau <me@ttaylorr.com >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2023-07-10 14:48:56 -07:00
..
2023-04-11 08:52:10 -07:00
2023-04-11 08:52:10 -07:00
2020-07-30 19:18:06 -07:00
2023-04-24 12:47:32 -07:00
2023-04-24 12:47:32 -07:00
2023-04-24 12:47:31 -07:00
2023-04-11 08:52:10 -07:00
2023-07-10 14:48:55 -07:00
2023-04-11 08:52:10 -07:00
2023-04-24 12:47:32 -07:00
2023-04-11 08:52:10 -07:00
2023-05-17 10:11:41 -07:00
2023-04-24 12:47:32 -07:00
2023-03-21 10:56:54 -07:00
2023-04-06 13:38:31 -07:00
2023-03-21 10:56:51 -07:00
2023-04-24 12:47:32 -07:00
2023-04-24 12:47:31 -07:00
2023-04-24 12:47:32 -07:00
2023-05-09 16:45:46 -07:00
2023-03-21 10:56:51 -07:00
2023-04-11 08:52:08 -07:00
2023-04-11 08:52:09 -07:00
2023-04-11 08:52:10 -07:00
2023-04-24 12:47:32 -07:00
2023-03-21 10:56:53 -07:00
2023-05-10 10:23:29 -07:00
2023-04-24 12:47:32 -07:00
2023-04-24 12:47:32 -07:00
2023-03-28 14:11:24 -07:00
2023-04-25 13:56:20 -07:00
2023-04-11 08:52:10 -07:00
2023-05-09 14:26:36 -07:00
2023-03-21 10:56:54 -07:00
2023-04-24 12:47:33 -07:00
2023-05-09 16:45:46 -07:00
2023-05-09 16:45:46 -07:00
2023-04-25 13:56:20 -07:00
2023-04-25 13:56:20 -07:00
2023-04-25 13:56:20 -07:00
2023-05-15 13:59:07 -07:00
2023-03-21 10:56:53 -07:00
2023-07-10 14:48:55 -07:00
2023-05-09 16:45:46 -07:00
2023-05-02 08:48:23 -07:00
2023-04-25 13:56:20 -07:00
2023-05-09 16:45:46 -07:00
2023-04-20 14:33:36 -07:00
2023-04-11 08:52:10 -07:00
2023-04-11 08:52:10 -07:00
2023-04-24 12:47:32 -07:00
2023-03-21 10:56:51 -07:00
2023-04-27 16:00:59 -07:00
2023-04-24 12:47:32 -07:00
2023-03-21 10:56:51 -07:00
2023-05-09 16:45:46 -07:00
2023-04-25 13:56:20 -07:00
2023-05-09 16:45:46 -07:00
2023-04-11 08:52:09 -07:00
2023-03-21 10:56:53 -07:00
2023-04-06 13:38:31 -07:00
2023-04-11 08:52:09 -07:00
2023-03-21 10:56:54 -07:00
2023-05-09 16:45:46 -07:00
2023-03-28 14:11:24 -07:00
2023-05-09 16:45:46 -07:00
2023-05-15 13:59:06 -07:00
2023-04-11 08:52:10 -07:00
2023-04-25 13:56:20 -07:00
2023-03-21 10:56:51 -07:00
2023-03-21 10:56:53 -07:00
2023-04-24 12:47:32 -07:00
2023-05-06 14:32:20 -07:00
2023-04-11 08:52:10 -07:00
2023-05-06 14:34:09 -07:00
2023-04-06 13:38:31 -07:00
2023-03-21 10:56:51 -07:00
2023-03-21 10:56:51 -07:00
2023-03-21 10:56:51 -07:00
2023-04-11 08:52:10 -07:00
2023-05-09 16:45:46 -07:00
2023-05-15 13:59:05 -07:00
2023-04-11 08:52:09 -07:00
2023-04-24 12:47:32 -07:00
2023-04-25 13:56:20 -07:00
2023-07-10 14:48:56 -07:00
2023-04-06 13:38:31 -07:00
2023-03-28 14:11:24 -07:00
2023-03-28 14:11:24 -07:00
2023-04-06 13:38:31 -07:00
2023-05-09 16:45:46 -07:00
2023-04-11 08:52:10 -07:00
2023-04-24 12:47:32 -07:00
2023-04-11 08:52:09 -07:00
2023-04-11 08:52:10 -07:00
2023-04-11 08:52:09 -07:00
2023-04-17 18:05:13 -07:00
2023-04-24 12:47:32 -07:00
2023-04-06 13:38:31 -07:00
2023-04-06 13:38:31 -07:00
2023-04-24 12:47:32 -07:00
2023-04-24 12:47:32 -07:00
2023-04-11 08:52:09 -07:00
2023-04-25 13:56:20 -07:00
2023-04-25 13:56:20 -07:00
2023-03-21 10:56:54 -07:00
2023-04-25 13:56:20 -07:00
2023-03-21 10:56:51 -07:00
2023-07-10 14:48:55 -07:00
2023-04-25 13:56:20 -07:00
2023-04-25 13:56:20 -07:00
2023-04-24 12:47:32 -07:00
2023-04-24 12:47:32 -07:00
2023-04-24 12:47:31 -07:00
2023-05-09 16:45:46 -07:00
2023-03-21 10:56:51 -07:00
2023-04-25 13:56:20 -07:00
2023-04-11 08:52:09 -07:00
2023-03-21 10:56:51 -07:00
2023-04-11 08:52:09 -07:00
2023-05-09 16:45:46 -07:00
2023-05-09 16:45:46 -07:00