<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/archive.c, branch v1.6.4</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.6.4</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.6.4'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2009-05-25T08:07:25Z</updated>
<entry>
<title>parse-opts: prepare for OPT_FILENAME</title>
<updated>2009-05-25T08:07:25Z</updated>
<author>
<name>Stephen Boyd</name>
<email>bebarino@gmail.com</email>
</author>
<published>2009-05-23T18:53:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=377829201783b8a648e07af6ce7d747e0f45dc19'/>
<id>urn:sha1:377829201783b8a648e07af6ce7d747e0f45dc19</id>
<content type='text'>
To give OPT_FILENAME the prefix, we pass the prefix to parse_options()
which passes the prefix to parse_options_start() which sets the prefix
member of parse_opts_ctx accordingly. If there isn't a prefix in the
calling context, passing NULL will suffice.

Signed-off-by: Stephen Boyd &lt;bebarino@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>archive: do not read .gitattributes in working directory</title>
<updated>2009-04-18T04:05:49Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2009-04-17T22:18:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ba053ea96c252e04729dcd439e3c35d394d69914'/>
<id>urn:sha1:ba053ea96c252e04729dcd439e3c35d394d69914</id>
<content type='text'>
The old behaviour still remains with --worktree-attributes, and it is
always on for the legacy "git tar-tree".

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>archive: use parseopt for local-only options</title>
<updated>2009-03-08T20:37:21Z</updated>
<author>
<name>René Scharfe</name>
<email>rene.scharfe@lsrfire.ath.cx</email>
</author>
<published>2009-03-08T18:21:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=52e7787609d18af76a8c1befb0a06123fb7ce89e'/>
<id>urn:sha1:52e7787609d18af76a8c1befb0a06123fb7ce89e</id>
<content type='text'>
Replace the hand-rolled parsers that find and remove --remote and --exec
by a parseopt parser that also handles --output.

All three options only have a meaning if no remote server is used or on
the local side.  They must be rejected by upload-archive and should not
be sent to the server by archive.

We can't use a single parser for both remote and local side because the
remote end possibly understands a different set of options than the
local side.  A local parser would then wrongly accuse options valid on
the other side as being incorrect.

This patch implements a very forgiving parser that understands only the
three options mentioned above.  All others are passed to the normal,
complete parser in archive.c (running either locally in archive, or
remotely in upload-archive).  This normal parser definition contains
dummy entries for the three options, in order for them to appear in the
help screen.

The parseopt parser allows multiple occurrences of --remote and --exec
unlike the previous one; the one specified last wins.  This looseness
is acceptable, I think.

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>git-archive: add --output=&lt;file&gt; to send output to a file</title>
<updated>2009-03-04T08:56:52Z</updated>
<author>
<name>Carlos Manuel Duclos Vergara</name>
<email>carlos.duclos@nokia.com</email>
</author>
<published>2009-02-16T17:20:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=aec0c1bbfb2d42659bb710bd79f8228ac59e1b0c'/>
<id>urn:sha1:aec0c1bbfb2d42659bb710bd79f8228ac59e1b0c</id>
<content type='text'>
When archiving a repository there is no way to specify a file as output.
This patch adds a new option "--output" that redirects the output to a
file instead of stdout.

Signed-off-by: Carlos Manuel Duclos Vergara &lt;carlos.duclos@nokia.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>tree.c: allow read_tree_recursive() to traverse gitlink entries</title>
<updated>2009-02-07T20:14:34Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2009-01-25T00:52:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d3bee161fef7820e83b44b899c531228a5546e87'/>
<id>urn:sha1:d3bee161fef7820e83b44b899c531228a5546e87</id>
<content type='text'>
When the callback function invoked from read_tree_recursive() returns
the value `READ_TREE_RECURSIVE` for a gitlink entry, the traversal will
now continue into the tree connected to the gitlinked commit. This
functionality can be used to allow inter-repository operations, but
since the current users of read_tree_recursive() does not yet support
such operations, they have been modified where necessary to make sure
that they never return READ_TREE_RECURSIVE for gitlink entries (hence
no change in behaviour should be introduces by this patch alone).

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'maint'</title>
<updated>2008-10-26T23:21:08Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-10-26T23:21:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=304d058370a9a797c38ec739c6d39fa45d9ed8e5'/>
<id>urn:sha1:304d058370a9a797c38ec739c6d39fa45d9ed8e5</id>
<content type='text'>
* maint:
  add -p: warn if only binary changes present
  git-archive: work in bare repos
  git-svn: change dashed git-config to git config
</content>
</entry>
<entry>
<title>git-archive: work in bare repos</title>
<updated>2008-10-26T23:19:59Z</updated>
<author>
<name>Charles Bailey</name>
<email>charles@hashpling.org</email>
</author>
<published>2008-10-25T15:38:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ddff8563510a2c5c675d488a02e2642306430fc1'/>
<id>urn:sha1:ddff8563510a2c5c675d488a02e2642306430fc1</id>
<content type='text'>
This moves the call to git_config to a place where it doesn't break the
logic for using git archive in a bare repository but retains the fix to
make git archive respect core.autocrlf.

Tests are by René Scharfe.

Signed-off-by: Charles Bailey &lt;charles@hashpling.org&gt;
Tested-by: Deskin Miller &lt;deskinm@umich.edu&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Replace calls to strbuf_init(&amp;foo, 0) with STRBUF_INIT initializer</title>
<updated>2008-10-12T19:36:19Z</updated>
<author>
<name>Brandon Casey</name>
<email>casey@nrlssc.navy.mil</email>
</author>
<published>2008-10-09T19:12:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f285a2d7ed6548666989406de8f0e7233eb84368'/>
<id>urn:sha1:f285a2d7ed6548666989406de8f0e7233eb84368</id>
<content type='text'>
Many call sites use strbuf_init(&amp;foo, 0) to initialize local
strbuf variable "foo" which has not been accessed since its
declaration. These can be replaced with a static initialization
using the STRBUF_INIT macro which is just as readable, saves a
function call, and takes up fewer lines.

Signed-off-by: Brandon Casey &lt;casey@nrlssc.navy.mil&gt;
Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
</content>
</entry>
<entry>
<title>archive.c: make archiver static</title>
<updated>2008-10-03T01:03:35Z</updated>
<author>
<name>Nanako Shiraishi</name>
<email>nanako3@lavabit.com</email>
</author>
<published>2008-10-02T10:14:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=120a385afb8ce94b3918d74d4a79ca5938a95304'/>
<id>urn:sha1:120a385afb8ce94b3918d74d4a79ca5938a95304</id>
<content type='text'>
This variable is not used anywhere outside.

Signed-off-by: Nanako Shiraishi &lt;nanako3@lavabit.com&gt;
Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
</content>
</entry>
<entry>
<title>pretty=format: respect date format options</title>
<updated>2008-08-29T07:14:29Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2008-08-29T00:54:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d36f8679e94c2a0d4d15d6adcea434634af6d627'/>
<id>urn:sha1:d36f8679e94c2a0d4d15d6adcea434634af6d627</id>
<content type='text'>
When running a command like:

  git log --pretty=format:%ad --date=short

the date option was ignored. This patch causes it to use whatever
format was specified by --date (or by --relative-date, etc), just
as the non-user formats would do.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
