Files
git/builtin
Derrick Stolee b73dec5530 for-each-ref: add --stdin option
When a user wishes to input a large list of patterns to 'git
for-each-ref' (likely a long list of exact refs) there are frequently
system limits on the number of command-line arguments.

Add a new --stdin option to instead read the patterns from standard
input. Add tests that check that any unrecognized arguments are
considered an error when --stdin is provided. Also, an empty pattern
list is interpreted as the complete ref set.

When reading from stdin, we populate the filter.name_patterns array
dynamically as opposed to pointing to the 'argv' array directly. This is
simple when using a strvec, as it is NULL-terminated in the same way. We
then free the memory directly from the strvec.

Helped-by: Phillip Wood <phillip.wood123@gmail.com>
Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2023-03-20 12:17:32 -07:00
..
2023-02-22 14:55:45 -08:00
2023-01-13 14:17:14 -08:00
2023-01-05 15:07:22 +09:00
2023-02-22 14:55:45 -08:00
2023-02-22 14:55:45 -08:00
2022-12-14 15:55:46 +09:00
2022-11-23 11:22:24 +09:00
2023-02-22 14:55:45 -08:00
2022-11-16 14:57:32 -05:00
2023-02-15 17:11:53 -08:00
2023-02-22 14:55:45 -08:00
2023-02-22 14:55:45 -08:00
2022-12-18 11:48:26 +09:00