Alan Braithwaite
5d76a10449
clone: add clone.<url>.defaultObjectFilter config
...
Add a new configuration option that lets users specify a default
partial clone filter per URL pattern. When cloning a repository
whose URL matches a configured pattern, git-clone automatically
applies the filter, equivalent to passing --filter on the command
line.
[clone "https://github.com/ "]
defaultObjectFilter = blob:limit=5m
[clone "https://internal.corp.com/large-project/ "]
defaultObjectFilter = blob:none
URL matching uses the existing urlmatch_config_entry() infrastructure,
following the same rules as http.<url>.* — you can match a domain,
a namespace path, or a specific project, and the most specific match
wins.
The config only affects the initial clone. Once the clone completes,
the filter is recorded in remote.<name>.partialCloneFilter, so
subsequent fetches inherit it automatically. An explicit --filter
flag on the command line takes precedence.
Only the URL-qualified form (clone.<url>.defaultObjectFilter) is
honored; a bare clone.defaultObjectFilter without a URL subsection
is ignored.
Signed-off-by: Alan Braithwaite <alan@braithwaite.dev >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2026-03-05 10:20:54 -08:00
..
2026-02-17 10:48:36 -08:00
2026-02-13 13:39:25 -08:00
2024-10-25 14:02:36 -04:00
2025-07-01 14:58:24 -07:00
2024-10-11 09:37:18 -07:00
2026-03-05 10:04:49 -08:00
2025-11-19 10:55:39 -08:00
2026-02-20 08:13:58 -08:00
2026-02-26 07:22:53 -08:00
2025-04-15 08:24:35 -07:00
2024-12-13 07:33:36 -08:00
2026-03-04 10:53:00 -08:00
2025-07-23 08:15:18 -07:00
2025-07-23 08:15:22 -07:00
2026-02-20 08:13:58 -08:00
2025-01-17 13:30:03 -08:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:22 -07:00
2026-03-05 10:04:49 -08:00
2025-09-29 11:40:35 -07:00
2026-03-05 10:20:54 -08:00
2025-07-23 08:15:18 -07:00
2025-10-22 10:40:11 -07:00
2026-01-15 05:32:31 -08:00
2026-02-20 08:13:58 -08:00
2026-02-23 13:23:41 -08:00
2025-10-16 14:42:39 -07:00
2025-07-23 08:15:20 -07:00
2024-11-01 12:53:19 -04:00
2026-01-12 11:56:56 -08:00
2025-07-23 08:15:22 -07:00
2026-01-15 05:32:31 -08:00
2025-04-15 08:24:35 -07:00
2025-07-23 08:15:18 -07:00
2025-07-23 08:15:18 -07:00
2025-03-03 08:17:47 -08:00
2026-02-13 13:39:25 -08:00
2025-08-09 17:22:01 -07:00
2025-07-01 14:46:38 -07:00
2026-01-29 09:32:50 -08:00
2026-01-09 06:40:07 -08:00
2025-06-04 08:52:25 -07:00
2026-03-04 10:53:02 -08:00
2025-08-11 09:19:40 -07:00
2025-08-22 13:13:20 -07:00
2024-12-06 20:20:04 +09:00
2026-03-04 10:53:00 -08:00
2025-07-23 08:15:22 -07:00
2026-02-24 07:33:20 -08:00
2025-01-17 13:30:03 -08:00
2026-03-05 10:04:49 -08:00
2025-07-23 08:15:22 -07:00
2026-02-19 10:13:20 -08:00
2026-02-17 08:37:51 -08:00
2026-01-15 13:02:38 -08:00
2026-01-09 06:40:07 -08:00
2025-04-24 17:25:34 -07:00
2025-07-23 08:15:22 -07:00
2026-02-13 13:39:25 -08:00
2026-03-04 10:53:00 -08:00
2025-09-08 14:54:35 -07:00
2025-11-04 07:32:25 -08:00
2026-01-09 18:36:18 -08:00
2024-12-18 10:44:31 -08:00
2025-01-17 13:30:03 -08:00
2026-01-15 05:32:31 -08:00
2026-02-17 13:30:42 -08:00
2025-01-17 13:30:03 -08:00
2026-02-06 11:45:33 -08:00
2025-08-08 11:13:12 -07:00
2026-02-13 13:39:25 -08:00
2026-02-13 13:39:25 -08:00
2025-08-05 11:53:55 -07:00
2025-07-16 22:16:15 -07:00
2025-09-12 10:41:18 -07:00
2026-02-26 07:22:51 -08:00
2025-12-25 08:29:27 +09:00
2025-08-21 13:47:00 -07:00
2026-03-02 17:06:50 -08:00
2026-02-21 21:26:53 -08:00
2025-09-19 10:02:55 -07:00
2026-01-09 06:07:21 -08:00
2024-09-13 14:33:30 -07:00
2025-08-05 11:53:55 -07:00
2026-01-15 05:32:31 -08:00
2026-02-26 07:22:53 -08:00
2025-10-14 12:56:09 -07:00
2026-01-09 18:36:18 -08:00
2026-01-15 05:32:31 -08:00
2026-02-13 13:39:25 -08:00
2025-10-15 10:29:28 -07:00
2025-10-02 12:26:12 -07:00
2025-01-17 13:30:03 -08:00
2025-01-17 13:30:03 -08:00
2026-02-05 17:52:49 -08:00
2026-01-14 06:29:24 -08:00
2025-11-04 07:32:24 -08:00
2026-01-13 05:41:16 -08:00
2026-02-25 11:47:42 -08:00
2025-07-23 08:15:18 -07:00
2026-03-03 11:08:13 -08:00
2026-01-15 05:32:31 -08:00
2025-11-19 10:55:39 -08:00
2025-09-18 10:07:00 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:22 -07:00
2026-02-20 08:13:58 -08:00
2026-01-15 05:32:31 -08:00
2026-01-30 08:58:12 -08:00
2025-11-04 07:32:25 -08:00
2026-03-05 10:04:49 -08:00
2026-03-03 11:08:13 -08:00
2025-07-23 08:15:18 -07:00
2026-03-05 10:04:49 -08:00
2025-07-23 08:15:22 -07:00
2025-12-29 22:02:53 +09:00
2025-07-23 08:15:22 -07:00
2025-11-03 12:18:48 -08:00
2025-09-16 11:37:06 -07:00
2026-01-25 22:27:33 -08:00
2025-07-23 08:15:22 -07:00
2025-11-19 17:41:03 -08:00
2025-11-19 17:41:03 -08:00
2025-08-21 13:46:59 -07:00
2025-07-23 08:15:22 -07:00
2025-07-23 08:15:22 -07:00
2025-12-29 22:02:53 +09:00
2026-03-05 10:04:49 -08:00
2025-07-23 08:15:22 -07:00