<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/git.git/bundle.c, branch v1.5.6.4</title>
<subtitle>Git
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.5.6.4</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.5.6.4'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/'/>
<updated>2008-02-23T19:59:44Z</updated>
<entry>
<title>start_command(), if .in/.out &gt; 0, closes file descriptors, not the callers</title>
<updated>2008-02-23T19:59:44Z</updated>
<author>
<name>Johannes Sixt</name>
<email>johannes.sixt@telecom.at</email>
</author>
<published>2008-02-21T22:42:56Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=c20181e3a3e39f2c8874567c219e9edddb84393a'/>
<id>urn:sha1:c20181e3a3e39f2c8874567c219e9edddb84393a</id>
<content type='text'>
Callers of start_command() can set the members .in and .out of struct
child_process to a value &gt; 0 to specify that this descriptor is used as
the stdin or stdout of the child process.

Previously, if start_command() was successful, this descriptor was closed
upon return. Here we now make sure that the descriptor is also closed in
case of failures. All callers are updated not to close the file descriptor
themselves after start_command() was called.

Note that earlier run_gpg_verify() of git-verify-tag set .out = 1, which
worked because start_command() treated this as a special case, but now
this is incorrect because it closes the descriptor. The intent here is to
inherit stdout to the child, which is achieved by .out = 0.

Signed-off-by: Johannes Sixt &lt;johannes.sixt@telecom.at&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>start_command(), .in/.out/.err = -1: Callers must close the file descriptor</title>
<updated>2008-02-23T19:59:44Z</updated>
<author>
<name>Johannes Sixt</name>
<email>johannes.sixt@telecom.at</email>
</author>
<published>2008-02-16T17:36:38Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=e72ae28895b22052b7ca2eef36c039ac62671f7d'/>
<id>urn:sha1:e72ae28895b22052b7ca2eef36c039ac62671f7d</id>
<content type='text'>
By setting .in, .out, or .err members of struct child_process to -1, the
callers of start_command() can request that a pipe is allocated that talks
to the child process and one end is returned by replacing -1 with the
file descriptor.

Previously, a flag was set (for .in and .out, but not .err) to signal
finish_command() to close the pipe end that start_command() had handed out,
so it was optional for callers to close the pipe, and many already do so.
Now we make it mandatory to close the pipe.

Signed-off-by: Johannes Sixt &lt;johannes.sixt@telecom.at&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>check return code of prepare_revision_walk</title>
<updated>2008-02-18T07:51:12Z</updated>
<author>
<name>Martin Koegler</name>
<email>mkoegler@auto.tuwien.ac.at</email>
</author>
<published>2008-02-18T07:31:56Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=3d51e1b5b84bde24f9a19e3cee603f0b57f62001'/>
<id>urn:sha1:3d51e1b5b84bde24f9a19e3cee603f0b57f62001</id>
<content type='text'>
A failure in prepare_revision_walk can be caused by
a not parseable object.

Signed-off-by: Martin Koegler &lt;mkoegler@auto.tuwien.ac.at&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Improve use of lockfile API</title>
<updated>2008-01-16T23:35:35Z</updated>
<author>
<name>Brandon Casey</name>
<email>casey@nrlssc.navy.mil</email>
</author>
<published>2008-01-16T19:12:46Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=4ed7cd3ab07f7c721daf4241fe1dac306fefd1fb'/>
<id>urn:sha1:4ed7cd3ab07f7c721daf4241fe1dac306fefd1fb</id>
<content type='text'>
Remove remaining double close(2)'s.  i.e. close() before
commit_locked_index() or commit_lock_file().

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>bundle, fast-import: detect write failure</title>
<updated>2008-01-10T09:08:11Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2008-01-10T08:54:25Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=95693d45ee1c1d4b76cac672636cf31229186a18'/>
<id>urn:sha1:95693d45ee1c1d4b76cac672636cf31229186a18</id>
<content type='text'>
I noticed some unchecked writes.  This fixes them.

* bundle.c (create_bundle): Die upon write failure.
* fast-import.c (keep_pack): Die upon write or close failure.

Signed-off-by: Jim Meyering &lt;meyering@redhat.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Don't access line[-1] for a zero-length "line" from fgets.</title>
<updated>2008-01-04T20:28:58Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2008-01-04T17:37:41Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=872c930dcb048c1a2b50e6ce881c521dcee15e23'/>
<id>urn:sha1:872c930dcb048c1a2b50e6ce881c521dcee15e23</id>
<content type='text'>
A NUL byte at beginning of file, or just after a newline
would provoke an invalid buf[-1] access in a few places.

* builtin-grep.c (cmd_grep): Don't access buf[-1].
* builtin-pack-objects.c (get_object_list): Likewise.
* builtin-rev-list.c (read_revisions_from_stdin): Likewise.
* bundle.c (read_bundle_header): Likewise.
* server-info.c (read_pack_info_file): Likewise.
* transport.c (insert_packed_refs): Likewise.

Signed-off-by: Jim Meyering &lt;meyering@redhat.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'maint'</title>
<updated>2007-11-23T00:51:18Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2007-11-23T00:51:18Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=fa30383642c5838bd6d4c903abafcea17568abb1'/>
<id>urn:sha1:fa30383642c5838bd6d4c903abafcea17568abb1</id>
<content type='text'>
* maint:
  Make test scripts executable.
  bundle create: keep symbolic refs' names instead of resolving them
</content>
</entry>
<entry>
<title>Style: place opening brace of a function definition at column 1</title>
<updated>2007-11-08T23:35:32Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2007-11-08T23:35:32Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=f3fa1838024dc0f3741d2f9654af92f6a1bb34bd'/>
<id>urn:sha1:f3fa1838024dc0f3741d2f9654af92f6a1bb34bd</id>
<content type='text'>
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.stealer.net/cgit.cgi/user/sven/git.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>
</feed>
