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-17 15:43:09 -08:00
2023-02-06 14:07:33 -08:00
2022-09-07 09:46:05 -07:00
2022-04-03 15:09:52 -07:00
2023-02-28 16:38:47 -08:00
2023-02-15 17:11:52 -08:00
2021-10-15 10:29:11 -07:00
2020-03-29 09:25:38 -07:00
2019-10-06 12:25:16 +09:00
2021-10-18 15:47:58 -07:00
2022-10-21 11:39:38 -07:00
2022-09-23 10:01:07 -07:00
2022-10-28 11:26:54 -07:00
2022-10-30 21:04:44 -04:00
2021-11-09 09:39:11 -08:00
2022-06-13 11:57:03 -07:00
2023-01-13 12:55:14 -08:00
2023-01-13 12:55:14 -08:00
2020-02-18 13:53:30 -08:00
2022-04-04 10:56:23 -07:00
2023-01-16 12:03:14 -08:00
2023-02-06 15:03:34 -08:00
2023-01-05 14:52:25 +09:00
2022-10-13 09:32:57 -07:00
2023-01-23 09:40:14 -08:00
2021-10-28 09:57:09 -07:00
2023-02-18 09:29:13 -08:00
2023-01-13 11:58:51 -08:00
2020-08-28 14:06:06 -07:00
2022-09-07 09:46:07 -07:00
2023-01-27 08:51:41 -08:00
2022-08-12 13:20:02 -07:00
2022-09-12 11:04:55 -07:00
2023-01-18 08:24:39 -08:00
2023-01-14 08:49:55 -08:00
2022-02-03 11:13:49 -08:00
2021-01-12 14:04:40 -08:00
2019-04-02 13:57:00 +09:00
2022-01-13 13:49:45 -08:00
2023-01-30 14:24:21 -08:00
2023-01-13 09:55:45 -08:00
2022-10-28 11:26:54 -07:00
2022-09-14 12:56:40 -07:00
2022-09-07 09:46:07 -07:00
2022-10-28 11:26:54 -07:00
2020-04-03 11:37:22 -07:00
2022-09-07 09:46:06 -07:00
2022-07-14 15:08:29 -07:00
2022-10-13 09:32:56 -07:00
2023-01-29 09:21:07 -08:00
2020-05-08 14:25:01 -07:00
2023-02-22 15:18:58 -08:00
2021-11-09 09:39:11 -08:00
2021-11-09 09:39:11 -08:00
2022-07-19 12:45:31 -07:00
2022-07-19 12:45:31 -07:00
2021-05-17 15:56:29 +09:00
2022-08-12 13:20:02 -07:00
2022-10-13 09:32:55 -07:00
2022-06-13 11:59:16 -07:00
2021-11-09 09:39:11 -08:00
2022-10-25 17:11:43 -07:00
2022-09-07 09:46:06 -07:00
2022-10-13 09:32:54 -07:00
2022-09-07 09:46:06 -07:00
2022-03-28 10:25:52 -07:00
2023-01-13 17:33:32 -08:00
2020-10-20 12:22:25 -07:00
2021-12-20 14:55:02 -08:00
2023-03-20 12:17:32 -07:00
2020-09-25 10:59:44 -07:00
2022-08-29 14:39:13 -07:00
2022-10-25 15:44:18 -07:00
2022-10-05 11:05:23 -07:00
2022-09-07 09:46:05 -07:00
2022-09-07 09:46:05 -07:00
2021-11-09 09:39:11 -08:00
2022-10-13 09:32:55 -07:00
2022-08-04 14:12:23 -07:00
2023-02-08 12:50:03 -08:00
2021-09-10 15:34:59 -07:00
2021-11-09 09:39:11 -08:00
2021-11-09 09:39:11 -08:00
2022-09-07 09:46:05 -07:00
2022-03-09 10:25:26 -08:00
2021-11-09 09:39:11 -08:00
2022-09-07 09:46:07 -07:00
2019-01-28 10:57:44 -08:00
2022-10-28 11:26:54 -07:00
2022-09-14 12:56:40 -07:00
2023-01-13 11:55:17 -08:00
2023-02-10 21:57:51 -08:00
2022-04-08 11:21:11 -07:00
2022-09-07 09:46:06 -07:00
2022-11-14 22:39:25 -05:00
2022-10-13 09:32:55 -07:00
2021-12-01 14:45:59 -08:00
2021-11-09 09:39:11 -08:00
2022-11-25 10:11:46 +09:00
2023-01-13 09:55:46 -08:00
2021-02-09 14:09:16 -08:00
2022-09-07 09:46:05 -07:00
2021-04-10 23:36:34 -07:00
2022-02-02 14:50:09 -08:00
2022-09-21 10:21:46 -07:00
2022-10-13 09:32:56 -07:00
2022-01-10 09:39:26 -08:00
2022-09-07 09:46:06 -07:00
2022-05-04 10:30:01 -07:00
2022-05-26 15:48:26 -07:00
2022-10-30 19:58:46 -04:00
2022-10-24 15:44:20 -07:00
2022-10-13 09:32:55 -07:00
2021-10-18 15:47:56 -07:00
2022-11-14 16:55:50 -05:00
2019-01-07 15:29:34 -08:00
2022-08-26 09:49:26 -07:00
2023-01-23 09:40:14 -08:00
2023-01-25 09:20:53 -08:00
2022-10-13 09:32:57 -07:00
2022-10-13 09:32:58 -07:00
2019-04-22 11:14:46 +09:00
2019-04-01 14:00:53 +09:00
2019-04-01 14:00:53 +09:00
2022-05-09 10:53:58 -07:00
2022-10-24 13:39:42 -07:00
2019-09-05 13:01:48 -07:00
2021-11-09 09:39:11 -08:00
2022-10-13 09:32:56 -07:00
2023-01-13 09:55:45 -08:00
2021-12-01 14:45:59 -08:00
2022-10-13 09:32:56 -07:00
2022-11-17 16:22:52 -05:00
2022-11-29 10:41:06 +09:00
2021-09-28 10:31:02 -07:00
2022-10-12 11:08:37 -07:00
2022-10-13 09:32:56 -07:00
2022-10-24 14:48:05 -07:00
2022-10-28 11:26:54 -07:00
2020-08-17 10:50:14 -07:00
2022-10-13 09:32:55 -07:00
2020-12-21 13:47:32 -08:00
2022-10-13 09:32:56 -07:00
2021-11-09 09:39:11 -08:00
2022-10-28 11:26:54 -07:00
2022-12-01 15:27:41 +09:00
2022-02-09 15:38:36 -08:00
2021-12-10 14:35:03 -08:00
2022-09-07 09:46:07 -07:00
2022-10-09 12:31:24 -07:00
2022-10-13 09:32:56 -07:00
2022-09-12 11:04:55 -07:00
2020-11-16 13:44:01 -08:00
2022-10-13 09:32:56 -07:00
2022-10-13 09:32:56 -07:00
2022-09-12 11:04:55 -07:00
2022-12-18 11:48:26 +09:00
2022-10-13 09:32:56 -07:00
2022-10-13 09:32:55 -07:00
2022-10-13 09:32:56 -07:00
2021-09-14 10:05:40 -07:00
2021-10-28 09:57:09 -07:00
2022-10-13 09:32:55 -07:00
2023-01-30 14:24:24 -08:00
2023-02-27 10:08:56 -08:00
2022-01-17 11:42:25 -08:00
2020-01-08 08:56:40 -08:00
2023-02-22 15:18:58 -08:00
2021-03-22 14:00:24 -07:00
2020-06-25 09:18:53 -07:00
2021-08-05 15:35:02 -07:00
2022-08-04 14:12:23 -07:00
2022-08-04 14:12:24 -07:00
2022-10-30 19:58:40 -04:00
2023-02-01 08:49:23 -08:00
2022-08-04 14:12:24 -07:00
2023-01-23 09:40:14 -08:00
2023-01-13 09:59:26 -08:00
2021-10-25 11:06:56 -07:00
2020-11-01 15:54:14 -08:00
2021-05-04 11:52:03 +09:00
2021-05-04 11:52:03 +09:00
2021-04-10 23:36:34 -07:00
2022-09-16 08:38:03 -07:00
2022-08-04 14:12:23 -07:00
2022-08-04 14:12:24 -07:00
2022-08-04 14:12:24 -07:00
2023-01-08 10:28:34 +09:00
2022-08-10 14:07:37 -07:00
2019-11-10 18:02:14 +09:00
2021-11-09 09:39:11 -08:00
2019-05-07 13:04:48 +09:00
2021-07-30 09:08:12 -07:00
2021-04-08 15:54:26 -07:00
2021-10-25 11:06:57 -07:00
2021-11-09 09:39:11 -08:00
2022-10-30 19:58:46 -04:00
2021-02-24 15:21:25 -08:00
2020-11-01 15:54:14 -08:00
2020-11-01 15:54:14 -08:00
2022-10-25 15:44:19 -07:00
2021-10-15 10:29:11 -07:00
2021-10-15 10:16:57 -07:00
2022-08-04 14:12:23 -07:00
2022-11-30 10:57:19 +09:00
2020-03-29 09:25:38 -07:00
2020-03-29 09:25:38 -07:00
2019-09-16 12:20:39 -07:00
2021-10-29 11:22:56 -07:00
2021-08-05 15:35:02 -07:00
2022-11-14 18:14:58 -05:00
2022-09-21 10:28:35 -07:00
2020-08-17 10:50:14 -07:00
2023-01-19 14:35:15 -08:00
2021-10-29 14:35:59 -07:00
2020-09-30 14:52:00 -07:00
2020-09-18 15:41:56 -07:00
2022-08-03 13:57:25 -07:00
2020-07-08 22:08:54 -07:00
2023-02-15 17:34:46 -08:00
2022-09-19 14:36:08 -07:00
2023-01-13 09:55:46 -08:00
2022-09-02 10:02:55 -07:00
2019-07-02 12:08:08 -07:00
2020-10-20 11:57:40 -07:00
2022-10-07 14:59:25 -07:00
2022-04-21 09:50:25 -07:00
2019-10-04 09:26:42 +09:00
2023-02-07 11:02:27 -08:00
2019-10-21 12:02:39 +09:00
2020-03-31 16:08:02 -07:00
2022-09-16 08:38:03 -07:00