<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/builtin-bundle.c, branch v1.6.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.6.3</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.6.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2008-08-30T20:50:48Z</updated>
<entry>
<title>Start conforming code to "git subcmd" style</title>
<updated>2008-08-30T20:50:48Z</updated>
<author>
<name>Heikki Orsila</name>
<email>heikki.orsila@iki.fi</email>
</author>
<published>2008-08-30T11:12:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=34baebcee1d66be4cc096a69ba448cd24dcedf21'/>
<id>urn:sha1:34baebcee1d66be4cc096a69ba448cd24dcedf21</id>
<content type='text'>
User notifications are presented as 'git cmd', and code comments
are presented as '"cmd"' or 'git's cmd', rather than 'git-cmd'.

Signed-off-by: Heikki Orsila &lt;heikki.orsila@iki.fi&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Always set *nongit_ok in setup_git_directory_gently()</title>
<updated>2008-03-26T22:41:35Z</updated>
<author>
<name>SZEDER Gábor</name>
<email>szeder@ira.uka.de</email>
</author>
<published>2008-03-25T21:06:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=af05d67939f306a68c5f81ed30f65a82ae025661'/>
<id>urn:sha1:af05d67939f306a68c5f81ed30f65a82ae025661</id>
<content type='text'>
setup_git_directory_gently() only modified the value of its *nongit_ok
argument if we were not in a git repository.  Now it will always set it
to 0 when we are inside a repository.

Also remove now unnecessary initializations in the callers of this
function.

Signed-off-by: SZEDER Gábor &lt;szeder@ira.uka.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Move bundle specific stuff into bundle.[ch]</title>
<updated>2007-09-19T10:22:30Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2007-09-11T03:03:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=30415d50cccef0ec22bb4a6d58138760b142758d'/>
<id>urn:sha1:30415d50cccef0ec22bb4a6d58138760b142758d</id>
<content type='text'>
The transport specific stuff was moved into libgit.a, and the
bundle specific stuff will not be left behind.

This is a big code move, with one exception: the function
unbundle() no longer outputs the list of refs.  You have to call
list_bundle_refs() yourself for that.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>builtin-bundle create - use lock_file</title>
<updated>2007-08-13T20:04:18Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2007-08-12T17:44:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4b37666ccbab015e75fda745c29a2f5d58a54482'/>
<id>urn:sha1:4b37666ccbab015e75fda745c29a2f5d58a54482</id>
<content type='text'>
"git bundle create" left an invalid, partially written bundle if
an error occured during creation.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>builtin-bundle - use buffered reads for bundle header</title>
<updated>2007-08-11T05:33:44Z</updated>
<author>
<name>Mark Levedahl</name>
<email>mdl123@verizon.net</email>
</author>
<published>2007-08-11T00:39:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=21a02980f9025c3a338fb897796542ddef8707d1'/>
<id>urn:sha1:21a02980f9025c3a338fb897796542ddef8707d1</id>
<content type='text'>
This eliminates all use of byte-at-a-time reading of data in this
function: as Junio noted, a bundle file is seekable so we can
reset the file position to the first part of the pack-file using lseek
after reading the header.

Signed-off-by: Mark Levedahl &lt;mdl123@verizon.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>builtin-bundle.c - use stream buffered input for rev-list</title>
<updated>2007-08-11T05:20:35Z</updated>
<author>
<name>Mark Levedahl</name>
<email>mdl123@verizon.net</email>
</author>
<published>2007-08-10T22:29:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=442b67a55972e69a054eb1206bbbdf044532130a'/>
<id>urn:sha1:442b67a55972e69a054eb1206bbbdf044532130a</id>
<content type='text'>
git-bundle create on cygwin was nearly unusable due to 1 character
at a time (unbuffered) reading from an exec'ed process. Fix by using
fdopen to get a buffered stream.

Results for "time git bundle create test.bdl v1.0.3..v1.5.2" are:

before this patch:
         cygwin         linux
real    1m38.828s      0m3.578s
user    0m12.122s      0m2.896s
sys     1m28.215s      0m0.692s

after this patch:
real    0m3.688s       0m2.835s
user    0m3.075s       0m2.731s
sys     0m1.075s       0m0.149s

Signed-off-by: Mark Levedahl &lt;mdl123@verizon.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>allow git-bundle to create bottomless bundle</title>
<updated>2007-08-11T05:19:15Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2007-08-09T05:04:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c06793a4ed1bf81902c324d1ed88dd055c3aa468'/>
<id>urn:sha1:c06793a4ed1bf81902c324d1ed88dd055c3aa468</id>
<content type='text'>
Mark Levedahl &lt;mlevedahl@gmail.com&gt; writes:

&gt; Junio C Hamano wrote:
&gt;&gt; While "git bundle" was a useful way to sneakernet incremental
&gt;&gt; changes, we did not allow:
&gt;&gt;
&gt; Thanks - I've been thinking for months I could fix this bug, never
&gt; figured it out and didn't want to nag Dscho one more time. I confirm
&gt; that this allows creation of bundles with arbitrary refs, not just
&gt; those under refs/heads. Yahoo!

Actually, there is another bug nearby.

If you do:

	git bundle create v2.6-20-v2.6.22.bndl v2.6.20..v2.6.22

the bundle records that it requires v2.6.20^0 commit (correct)
and gives you tag v2.6.22 (incorrect); the bug is that the
object it lists in fact is the commit v2.6.22^0, not the tag.

This is because the revision range operation .. is always about
set of commits, but the code near where my patch touches does
not validate that the sha1 value obtained from dwim_ref()
against the commit object name e-&gt;item-&gt;sha1 before placing the
head information in the commit.

The attached patch attempts to fix this problem.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>allow git-bundle to create bottomless bundle</title>
<updated>2007-08-11T05:19:06Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2007-08-09T00:01:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7fa8254f9476de24661e93b2a90c6ce30dc10006'/>
<id>urn:sha1:7fa8254f9476de24661e93b2a90c6ce30dc10006</id>
<content type='text'>
While "git bundle" was a useful way to sneakernet incremental
changes, we did not allow:

	$ git bundle create v2.6.20.bndl v2.6.20

to create a bundle that contains the whole history to a
well-known good revision.  Such a bundle can be mirrored
everywhere, and people can prime their repository with it to
reduce the load on the repository that serves near the tip of
the development.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Make every builtin-*.c file #include "builtin.h"</title>
<updated>2007-07-15T05:44:09Z</updated>
<author>
<name>Peter Hagervall</name>
<email>hager@cs.umu.se</email>
</author>
<published>2007-07-14T23:14:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=baffc0e7708de1655665d150081e8880501736fe'/>
<id>urn:sha1:baffc0e7708de1655665d150081e8880501736fe</id>
<content type='text'>
Make every builtin-*.c file #include "builtin.h".

Also takes care of some declaration/definition mismatches.

Signed-off-by: Peter Hagervall &lt;hager@cs.umu.se&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Ensure return value from xread() is always stored into an ssize_t</title>
<updated>2007-05-16T04:16:03Z</updated>
<author>
<name>Johan Herland</name>
<email>johan@herland.net</email>
</author>
<published>2007-05-15T12:49:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8a912bcb250d8bf57b225e1cf02c0d69d54c8920'/>
<id>urn:sha1:8a912bcb250d8bf57b225e1cf02c0d69d54c8920</id>
<content type='text'>
This patch fixes all calls to xread() where the return value is not
stored into an ssize_t. The patch should not have any effect whatsoever,
other than putting better/more appropriate type names on variables.

Signed-off-by: Johan Herland &lt;johan@herland.net&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
</feed>
