<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/connect.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>2009-04-25T16:29:38Z</updated>
<entry>
<title>connect: replace inet_ntop with getnameinfo</title>
<updated>2009-04-25T16:29:38Z</updated>
<author>
<name>Benjamin Kramer</name>
<email>benny.kra@googlemail.com</email>
</author>
<published>2009-04-24T12:16:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=785a9857496ae1b71b168f6d79306ca233ec0cd6'/>
<id>urn:sha1:785a9857496ae1b71b168f6d79306ca233ec0cd6</id>
<content type='text'>
inet_ntop is not protocol independent.
getnameinfo(3) is part of POSIX and is available when getaddrinfo(3) is.
This code is only compiled when NO_IPV6 isn't defined.

The old method was buggy anyway, not every ipv6 address was converted
properly because the buffer (addr) was too small.

Signed-off-by: Benjamin Kramer &lt;benny.kra@googlemail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Remove unused assignments</title>
<updated>2009-03-14T20:36:34Z</updated>
<author>
<name>Benjamin Kramer</name>
<email>benny.kra@googlemail.com</email>
</author>
<published>2009-03-13T12:51:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8e76bf3fc915ff9c530842123263e7147df207bb'/>
<id>urn:sha1:8e76bf3fc915ff9c530842123263e7147df207bb</id>
<content type='text'>
These variables were always overwritten or the assigned
value was unused:

  builtin-diff-tree.c::cmd_diff_tree(): nr_sha1
  builtin-for-each-ref.c::opt_parse_sort(): sort_tail
  builtin-mailinfo.c::decode_header_bq(): in
  builtin-shortlog.c::insert_one_record(): len
  connect.c::git_connect(): path
  imap-send.c::v_issue_imap_cmd(): n
  pretty.c::pp_user_info(): filler
  remote::parse_refspec_internal(): llen

Signed-off-by: Benjamin Kramer &lt;benny.kra@googlemail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>connect.c: remove a few globals by using git_config callback data</title>
<updated>2009-03-11T04:42:58Z</updated>
<author>
<name>Erik Faye-Lund</name>
<email>kusmabite@gmail.com</email>
</author>
<published>2009-03-11T02:38:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=15112c9599f99487211855db7a7a347f20ad9ed5'/>
<id>urn:sha1:15112c9599f99487211855db7a7a347f20ad9ed5</id>
<content type='text'>
Since ef90d6d (Provide git_config with a callback-data parameter,
2008-05-14), git_config() takes a callback data pointer that can be
used to pass extra parameters to the parsing function.  The codepath
to parse configuration variables related to git proxy predates this
facility and used a pair of file scope static variables instead.

This patch removes the need for these global variables by passing the
name of the host we are trying to access as the callback data.

Signed-off-by: Erik Faye-Lund &lt;kusmabite@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>remove trailing LF in die() messages</title>
<updated>2009-01-05T21:01:01Z</updated>
<author>
<name>Alexander Potashev</name>
<email>aspotashev@gmail.com</email>
</author>
<published>2009-01-04T18:38:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d75307084da5f89329de190bb9b4a3196cec1d0e'/>
<id>urn:sha1:d75307084da5f89329de190bb9b4a3196cec1d0e</id>
<content type='text'>
LF at the end of format strings given to die() is redundant because
die already adds one on its own.

Signed-off-by: Alexander Potashev &lt;aspotashev@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>connect.c: stricter port validation, silence compiler warning</title>
<updated>2008-12-21T09:48:23Z</updated>
<author>
<name>René Scharfe</name>
<email>rene.scharfe@lsrfire.ath.cx</email>
</author>
<published>2008-12-21T01:12:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8f1482536ad680fcd738158e76e254a534f2e690'/>
<id>urn:sha1:8f1482536ad680fcd738158e76e254a534f2e690</id>
<content type='text'>
In addition to checking if the provided port is numeric, also check
that the string isn't empty and that the port number is within the
valid range.  Incidentally, this silences a compiler warning about
ignoring strtol's return value.

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>connect.c: add a way for git-daemon to pass an error back to client</title>
<updated>2008-11-02T08:54:29Z</updated>
<author>
<name>Tom Preston-Werner</name>
<email>tom@github.com</email>
</author>
<published>2008-11-01T18:44:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a80732897931c737c01d04289dd1512bd12a4b04'/>
<id>urn:sha1:a80732897931c737c01d04289dd1512bd12a4b04</id>
<content type='text'>
The current behavior of git-daemon is to simply close the connection on
any error condition. This leaves the client without any information as
to the cause of the failed fetch/push/etc.

This patch allows get_remote_heads to accept a line prefixed with "ERR"
that it can display to the user in an informative fashion. Once clients
can understand this ERR line, git-daemon can be made to properly report
"repository not found", "permission denied", or other errors.

Example

S: ERR No matching repository.
C: fatal: remote error: No matching repository.

Signed-off-by: Tom Preston-Werner &lt;tom@github.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>make alloc_ref_from_str() the new alloc_ref()</title>
<updated>2008-10-18T13:53:47Z</updated>
<author>
<name>René Scharfe</name>
<email>rene.scharfe@lsrfire.ath.cx</email>
</author>
<published>2008-10-18T08:44:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=59c69c0c656ebce2f7ce870b4913512597a98390'/>
<id>urn:sha1:59c69c0c656ebce2f7ce870b4913512597a98390</id>
<content type='text'>
With all calls to alloc_ref() gone, we can remove it and then we're free
to give alloc_ref_from_str() the shorter name.  It's a much nicer
interface, as the callers always need to have a name string when they
allocate a ref anyway and don't need to calculate and pass its length+1
any more.

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>use alloc_ref_from_str() everywhere</title>
<updated>2008-10-18T13:53:47Z</updated>
<author>
<name>René Scharfe</name>
<email>rene.scharfe@lsrfire.ath.cx</email>
</author>
<published>2008-10-18T08:41:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b0b44bc7b26c8c4b4221a377ce6ba174b843cb8d'/>
<id>urn:sha1:b0b44bc7b26c8c4b4221a377ce6ba174b843cb8d</id>
<content type='text'>
Replace pairs of alloc_ref() and strcpy() with alloc_ref_from_str(),
simplifying the code.

In connect.c, also a pair of alloc_ref() and memcpy() is replaced --
the additional cost of a strlen() call should not have too much of an
impact.  Consistency and simplicity are more important.

In remote.c, the code was allocating 11 bytes more than needed for
the name part, but I couldn't see them being used for anything.

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>push: prepare sender to receive extended ref information from the receiver</title>
<updated>2008-09-09T16:27:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-09-09T08:27:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=40c155ff14c8b313d408f2e51a55c881ce082e4e'/>
<id>urn:sha1:40c155ff14c8b313d408f2e51a55c881ce082e4e</id>
<content type='text'>
"git push" enhancement allows the receiving end to report not only its own
refs but refs in repositories it borrows from via the alternate object
store mechanism.  By telling the sender that objects reachable from these
extra refs are already complete in the receiving end, the number of
objects that need to be transfered can be cut down.

These entries are sent over the wire with string ".have", instead of the
actual names of the refs.  This string was chosen so that they are ignored
by older programs at the sending end.  If we sent some random but valid
looking refnames for these entries, "matching refs" rule (triggered when
running "git push" without explicit refspecs, where the sender learns what
refs the receiver has, and updates only the ones with the names of the
refs the sender also has) and "delete missing" rule (triggered when "git
push --mirror" is used, where the sender tells the receiver to delete the
refs it itself does not have) would try to update/delete them, which is
not what we want.

This prepares the send-pack (and "push" that runs native protocol) to
accept extended existing ref information and make use of it.  The ".have"
entries are excluded from ref matching rules, and are exempt from deletion
rule while pushing with --mirror option, but are still used for pack
generation purposes by providing more "bottom" range commits.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>'git foo' program identifies itself without dash in die() messages</title>
<updated>2008-08-31T16:39:19Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-08-31T16:39:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7e44c93558e7c0b12624d76cf07753d0480ed96a'/>
<id>urn:sha1:7e44c93558e7c0b12624d76cf07753d0480ed96a</id>
<content type='text'>
This is a mechanical conversion of all '*.c' files with:

	s/((?:die|error|warning)\("git)-(\S+:)/$1 $2/;

The result was manually inspected and no false positive was found.

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