2006/9/9, Rene Scharfe <rene.scharfe@xxxxxxxxxxxxxx>:
Franck Bui-Huu schrieb: > 2006/9/8, Rene Scharfe <rene.scharfe@xxxxxxxxxxxxxx>: >> > + url = strdup(ar->remote); >> >> xstrdup() >> > > ok, but need to rebase... Why? On a similar note , can we use Junio's pu branch (and soon his next branch) as our base for further work?
Yes. I just noticed Junio's post right after my reply.
>> > + if (list) { >> > + if (!remote) { >> > + for (i = 0; i < ARRAY_SIZE(archivers); i++) >> > + printf("%s\n", archivers[i].name); >> > + exit(0); >> > + } >> > + die("--list and --remote are mutually exclusive"); >> > + } >> >> Not sure if we really need a list option. I guess it only really >> makes sense if we have more than five formats. I have no _strong_ >> feelings against it, though. *shrug* >> > > well it's almost free to add it, and no need any maintenance if we add > a new archiver backend, so I would say let it. I thought a bit about it, and I can now see a good use case for --list: checking the capabilities of a remote site. Unfortunately this is currently forbidden. Why? git-archive --list writes to stdout, so the result can be transported the same way an archive would.
Yes that was the main goal for this option. But then we talked about enable/disable formats on the server side, and adding side band support...all that points are still dark for me and I don't know how '--list --remote' will interact with them. So I prefered to make this option simple for now and not make the user to believe that doing git archive --list --remote=... list the capabilites of the remote side. -- Franck - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html