{"thread":{"id":"9881","subject":"git-archive not working correctly ?","startedAt":"2007-09-16T22:50:26Z","lastAt":"2007-09-17T00:35:19Z","messageCount":3,"participants":["Niki Guldbrand","Frank Lichtenheld","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"53234","messageId":"1189983026.22727.61.camel@niki2.guldbrand.net","threadId":"9881","inReplyTo":null,"subject":"git-archive not working correctly ?","fromName":"Niki Guldbrand","fromEmail":"niki.guldbrand@gmail.com","sentAt":"2007-09-16T22:50:26Z","receivedAt":"2007-09-16T22:50:26Z","isPatch":false,"sender":{"key":"niki.guldbrand@gmail.com","avatar":null},"body":"Hi.\n\nI have been playing with git-archive for and hour or so, but can't get\nit to pass \"extra\" options to tar as it's documented that it should, or\nam i reading the docs wrong ?\n\ngit-archive --format=<fmt> [--list] [--prefix=<prefix>/] [<extra>]\n[--remote=<repo>] <tree-ish> [path…]\n\n<extra>\n        This can be any options that the archiver backend understand.\n        See next section.\n        \nI want to git tar the \"--exclude=option\", but i can't get it through.\nIs this option only valid for the zip format with the options \"-0\" and\n\"-9\" ?\n\n\nKind regards\n\nNiki Guldbrand\n"},{"id":"53240","messageId":"20070917003115.GV22865@planck.djpig.de","threadId":"9881","inReplyTo":"1189983026.22727.61.camel@niki2.guldbrand.net","subject":"Re: git-archive not working correctly ?","fromName":"Frank Lichtenheld","fromEmail":"frank@lichtenheld.de","sentAt":"2007-09-17T00:31:15Z","receivedAt":"2007-09-17T00:31:15Z","isPatch":false,"sender":{"key":"frank@lichtenheld.de","avatar":"https://gravatar.com/avatar/b9f1d4b120e138f157c9e480d0818197c474628923786adb98f30017cdb99c3c?d=mp&s=160"},"body":"On Mon, Sep 17, 2007 at 12:50:26AM +0200, Niki Guldbrand wrote:\n> I have been playing with git-archive for and hour or so, but can't get\n> it to pass \"extra\" options to tar as it's documented that it should, or\n> am i reading the docs wrong ?\n> \n> git-archive --format=<fmt> [--list] [--prefix=<prefix>/] [<extra>]\n> [--remote=<repo>] <tree-ish> [path…]\n> \n> <extra>\n>         This can be any options that the archiver backend understand.\n>         See next section.\n>         \n> I want to git tar the \"--exclude=option\", but i can't get it through.\n> Is this option only valid for the zip format with the options \"-0\" and\n> \"-9\" ?\n\nYes. The tar backend currently doesn't support any extra options.\n\nGruesse,\n-- \nFrank Lichtenheld <frank@lichtenheld.de>\nwww: http://www.djpig.de/\n"},{"id":"53241","messageId":"7vtzpu3z94.fsf@gitster.siamese.dyndns.org","threadId":"9881","inReplyTo":"1189983026.22727.61.camel@niki2.guldbrand.net","subject":"Re: git-archive not working correctly ?","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2007-09-17T00:35:19Z","receivedAt":"2007-09-17T00:35:19Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Niki Guldbrand <niki.guldbrand@gmail.com> writes:\n\n> git-archive --format=<fmt> [--list] [--prefix=<prefix>/] [<extra>]\n> [--remote=<repo>] <tree-ish> [path...]\n>\n> <extra>\n>         This can be any options that the archiver backend understand.\n>         See next section.\n>         \n> I want to git tar the \"--exclude=option\", but i can't get it through.\n> Is this option only valid for the zip format with the options \"-0\" and\n> \"-9\" ?\n\nThe \"next section\" that sentence refers to is \"BACKEND EXTRA\nOPTIONS\" section, which lists -0 and -9 for zip backend.  There\nis no --exclude=option in either tar or zip backend.\n\nNote that we do not use GNU tar or zip as archiver backends.\n"}]}