[PATCH 7/7] bundle-uri: fetch a list of bundles
- From
Teng Long <dyroneteng@gmail.com>
- Date
- Sep 5, 2022, 12:50 UTC
- Message-ID
- <20220905125050.83312-1-tenglong.tl@alibaba-inc.com>
- In-Reply-To
- <7b45c06cc9e0294311d9f00d40eb1fa4f8f146f9.1661181174.git.gitgitgadget@gmail.com>
Derrick Stolee <derrickstolee@github.com> writes:
Show 8 quoted lines
> int fetch_bundle_uri(struct repository *r, const char *uri)
> {
> - return fetch_bundle_uri_internal(r, uri, 0);
> + int result;
> + struct bundle_list list;
> + struct remote_bundle_info bundle = {
> + .uri = xstrdup(uri),
> + .id = xstrdup("<root>"),Very readable code, thank you very much.
I'm a little curious why we use the "<root>" as the init value of ".id"?
Thanks.