<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/archive.c, branch v1.8.2.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.8.2.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.8.2.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2013-03-11T05:25:22Z</updated>
<entry>
<title>archive: handle commits with an empty tree</title>
<updated>2013-03-11T05:25:22Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2013-03-11T01:32:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bd54cf17a4acfb9555b8a83b7e74fb0274c38bb4'/>
<id>urn:sha1:bd54cf17a4acfb9555b8a83b7e74fb0274c38bb4</id>
<content type='text'>
git-archive relies on get_pathspec to convert its argv into
a list of pathspecs. When get_pathspec is given an empty
argv list, it returns a single pathspec, the empty string,
to indicate that everything matches. When we feed this to
our path_exists function, we typically see that the pathspec
turns up at least one item in the tree, and we are happy.

But when our tree is empty, we erroneously think it is
because the pathspec is too limited, when in fact it is
simply that there is nothing to be found in the tree. This
is a weird corner case, but the correct behavior is almost
certainly to produce an empty archive, not to exit with an
error.

This patch teaches git-archive to create empty archives when
there is no pathspec given (we continue to complain if a
pathspec is given, since it obviously is not matched). It
also confirms that the tar and zip writers produce sane
output in this instance.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Add directory pattern matching to attributes</title>
<updated>2012-12-18T06:07:23Z</updated>
<author>
<name>Jean-Noël AVILA</name>
<email>avila.jn@gmail.com</email>
</author>
<published>2012-12-08T20:04:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=94bc671a1f2e8610de475c2494d2763355a99f65'/>
<id>urn:sha1:94bc671a1f2e8610de475c2494d2763355a99f65</id>
<content type='text'>
The manpage of gitattributes says: "The rules how the pattern
matches paths are the same as in .gitignore files" and the gitignore
pattern matching has a pattern ending with / for directory matching.

This rule is specifically relevant for the 'export-ignore' rule used
for git archive.

Signed-off-by: Jean-Noel Avila &lt;jn.avila@free.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Reduce translations by using same terminologies</title>
<updated>2012-08-22T19:02:28Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2012-08-20T12:32:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b0ff96547ec66979487707ad71f89c23f5e0669d'/>
<id>urn:sha1:b0ff96547ec66979487707ad71f89c23f5e0669d</id>
<content type='text'>
Somewhere in help usage, we use both "message" and "msg", "command"
and "cmd", "key id" and "key-id". This patch makes all help text from
parseopt use the first form. Clearer and 3 fewer strings for
translators.

Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>i18n: archive: mark parseopt strings for translation</title>
<updated>2012-08-20T19:23:15Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2012-08-20T12:31:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0012a3873b5df4476b5b9142d0b5748a101c1ba8'/>
<id>urn:sha1:0012a3873b5df4476b5b9142d0b5748a101c1ba8</id>
<content type='text'>
Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'rs/archive-tree-in-tip-simplify'</title>
<updated>2012-05-23T20:35:22Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-05-23T20:35:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b83cfa5949081c32a13b84e8aeea7d2cb7a96331'/>
<id>urn:sha1:b83cfa5949081c32a13b84e8aeea7d2cb7a96331</id>
<content type='text'>
By René Scharfe
* rs/archive-tree-in-tip-simplify:
  archive-tar: keep const in checksum calculation
  archive: simplify refname handling
</content>
</entry>
<entry>
<title>archive: simplify refname handling</title>
<updated>2012-05-18T18:26:10Z</updated>
<author>
<name>René Scharfe</name>
<email>rene.scharfe@lsrfire.ath.cx</email>
</author>
<published>2012-05-18T05:15:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c51a351a6bcc64ad8cb2ed5a6ebde54b8d50eef1'/>
<id>urn:sha1:c51a351a6bcc64ad8cb2ed5a6ebde54b8d50eef1</id>
<content type='text'>
There is no need to build a copy of the relevant part of the string just
to make sure we have a NUL-terminated string.  We can simply pass the
length of the interesting part to dwim_ref() instead.

Signed-off-by: Rene Scharfe &lt;rene.scharfe@lsrfire.ath.cx&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>archive: delegate blob reading to backend</title>
<updated>2012-05-03T17:22:56Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2012-05-03T01:51:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9cb513b7988c2fe443c47186e42dd827b76ddb14'/>
<id>urn:sha1:9cb513b7988c2fe443c47186e42dd827b76ddb14</id>
<content type='text'>
archive-tar.c and archive-zip.c now perform conversion check, with
help of sha1_file_to_archive() from archive.c

This gives backends more freedom in dealing with (streaming) large
blobs.

Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/maint-upload-archive'</title>
<updated>2012-01-13T07:34:17Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-01-13T07:34:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bdb8cb52962522e5444241242110780fc6a19c4f'/>
<id>urn:sha1:bdb8cb52962522e5444241242110780fc6a19c4f</id>
<content type='text'>
* jk/maint-upload-archive:
  archive: re-allow HEAD:Documentation on a remote invocation
</content>
</entry>
<entry>
<title>archive: re-allow HEAD:Documentation on a remote invocation</title>
<updated>2012-01-12T03:21:22Z</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@elego.de</email>
</author>
<published>2012-01-11T12:12:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0f544ee897ac2cc760f29d3568cc4295ca69fd1f'/>
<id>urn:sha1:0f544ee897ac2cc760f29d3568cc4295ca69fd1f</id>
<content type='text'>
The tightening done in (ee27ca4a: archive: don't let remote clients
get unreachable commits, 2011-11-17) went too far and disallowed
HEAD:Documentation as it would try to find "HEAD:Documentation" as a
ref.

Only DWIM the "HEAD" part to see if it exists as a ref. Once we're
sure that we've been given a valid ref, we follow the normal code
path. This still disallows attempts to access commits which are not
branch tips.

Signed-off-by: Carlos Martín Nieto &lt;cmn@elego.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/maint-upload-archive'</title>
<updated>2011-12-14T06:47:38Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-12-14T06:47:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3c4b5ad5a5d4356948f1207908bd3ba62b1a7773'/>
<id>urn:sha1:3c4b5ad5a5d4356948f1207908bd3ba62b1a7773</id>
<content type='text'>
* jk/maint-upload-archive:
  archive: don't let remote clients get unreachable commits
</content>
</entry>
</feed>
