<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/connect.c, branch v0.99.8a</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v0.99.8a</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v0.99.8a'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2005-08-29T06:02:01Z</updated>
<entry>
<title>Merge refs/heads/portable from http://www.cs.berkeley.edu/~ejr/gits/git.git </title>
<updated>2005-08-29T06:02:01Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-08-29T06:02:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=10d781b9caa4f71495c7b34963bef137216f86a8'/>
<id>urn:sha1:10d781b9caa4f71495c7b34963bef137216f86a8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Support +&lt;src&gt;:&lt;dst&gt; format in push as well.</title>
<updated>2005-08-24T23:50:53Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-08-24T07:40:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ff27adf3dae36695f1af1b6f0e01ec6738ce0249'/>
<id>urn:sha1:ff27adf3dae36695f1af1b6f0e01ec6738ce0249</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Fix ?: statements.</title>
<updated>2005-08-24T03:41:12Z</updated>
<author>
<name>Jason Riedy</name>
<email>ejr@cs.berkeley.edu</email>
</author>
<published>2005-08-23T20:34:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c7c81b3a51de2778535c8bb18d42a4bb7dfd57bc'/>
<id>urn:sha1:c7c81b3a51de2778535c8bb18d42a4bb7dfd57bc</id>
<content type='text'>
Omitting the first branch in ?: is a GNU extension.  Cute,
but not supported by other compilers.  Replaced mostly
by explicit tests.  Calls to getenv() simply are repeated
on non-GNU compilers.

Signed-off-by: Jason Riedy &lt;ejr@cs.berkeley.edu&gt;
</content>
</entry>
<entry>
<title>Use GIT_SSH environment to specify alternate ssh binary.</title>
<updated>2005-08-10T05:28:20Z</updated>
<author>
<name>Martin Sivak</name>
<email>mars@nomi.cz</email>
</author>
<published>2005-08-03T15:15:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4852f7232b7a83fbd1b745520181bd67bf95911b'/>
<id>urn:sha1:4852f7232b7a83fbd1b745520181bd67bf95911b</id>
<content type='text'>
[jc: I ended up rewriting Martin's patch due to whitespace
breakage, but the credit goes to Martin for doing the initial
patch to identify what needs to be changed.]

Signed-off-by: Martin Sivak &lt;mars@nomi.cz&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>[PATCH] -Werror fixes</title>
<updated>2005-08-10T05:28:19Z</updated>
<author>
<name>Timo Sirainen</name>
<email>tss@iki.fi</email>
</author>
<published>2005-08-09T15:30:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4ec99bf080f2d95c7c3d706f65eea1c6b9302f23'/>
<id>urn:sha1:4ec99bf080f2d95c7c3d706f65eea1c6b9302f23</id>
<content type='text'>
GCC's format __attribute__ is good for checking errors, especially
with -Wformat=2 parameter. This fixes most of the reported problems
against 2005-08-09 snapshot.
</content>
</entry>
<entry>
<title>send-pack: allow generic sha1 expression on the source side.</title>
<updated>2005-08-06T17:19:38Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-08-06T17:12:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=15e02b372ddebd2aac829707786462798f91d509'/>
<id>urn:sha1:15e02b372ddebd2aac829707786462798f91d509</id>
<content type='text'>
This extends the source side semantics to match what Linus
suggested.

An example:

    $ git-send-pack kernel.org:/pub/scm/git/git.git pu^^:master pu

    would allow me to push the current pu into pu, and the
    commit two commits before it into master, on my public
    repository.

The revised rule for updating remote heads is as follows.

 $ git-send-pack [--all] &lt;remote&gt; [&lt;ref&gt;...]

 - When no &lt;ref&gt; is specified:

   - with '--all', it is the same as specifying the full refs/*
     path for all local refs;

   - without '--all', it is the same as specifying the full
     refs/* path for refs that exist on both ends;

 - When one or more &lt;ref&gt;s are specified:

   - a single token &lt;ref&gt; (i.e. no colon) must be a pattern that
     tail-matches refs/* path for an existing local ref.  It is
     an error for the pattern to match no local ref, or more
     than one local refs.  The matching ref is pushed to the
     remote end under the same name.

   - &lt;src&gt;:&lt;dst&gt; can have different cases.  &lt;src&gt; is first tried
     as the tail-matching pattern for refs/* path.

     - If more than one matches are found, it is an error.

     - If one match is found, &lt;dst&gt; must either match no remote
       ref and start with "refs/", or match exactly one remote
       ref.  That remote ref is updated with the sha1 value
       obtained from the &lt;src&gt; sha1.

     - If no match is found, it is given to get_extended_sha1();
       it is an error if get_extended_sha1() does not find an
       object name.  If it succeeds, &lt;dst&gt; must either match
       no remote ref and start with "refs/" or match exactly
       one remote ref.  That remote ref is updated with the sha1
       value.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>send-pack: allow the same source to be pushed more than once.</title>
<updated>2005-08-06T17:19:38Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-08-06T17:16:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=db27ee63929fa4a161c321daf52df5635fd4828c'/>
<id>urn:sha1:db27ee63929fa4a161c321daf52df5635fd4828c</id>
<content type='text'>
The revised code accidentally inherited the restriction that a
reference can be pushed only once, only because the original did
not allow renaming.  This is no longer necessary so lift it.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Fix refname termination.</title>
<updated>2005-08-05T23:50:54Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-08-05T23:50:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4fa1604f10c4878ae2cfbe4b9419a67d6306bb5d'/>
<id>urn:sha1:4fa1604f10c4878ae2cfbe4b9419a67d6306bb5d</id>
<content type='text'>
When a new ref is being pushed, the name of it was not
terminated properly.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>[PATCH] Fix sparse warnings</title>
<updated>2005-08-04T04:41:56Z</updated>
<author>
<name>Alecs King</name>
<email>alecsk@gmail.com</email>
</author>
<published>2005-08-04T03:35:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=635d37afff321a9c296ed5d6e0203f2a1c91373f'/>
<id>urn:sha1:635d37afff321a9c296ed5d6e0203f2a1c91373f</id>
<content type='text'>
fix one 'should it be static?' warning and
two 'mixing declarations and code' warnings.

Signed-off-by: Alecs King &lt;alecsk@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Renaming push.</title>
<updated>2005-08-04T00:16:29Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-08-03T23:35:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f88395ac233572b19f67b3a47b9fe024f397a85b'/>
<id>urn:sha1:f88395ac233572b19f67b3a47b9fe024f397a85b</id>
<content type='text'>
This allows git-send-pack to push local refs to a destination
repository under different names.

Here is the name mapping rules for refs.

* If there is no ref mapping on the command line:

 - if '--all' is specified, it is equivalent to specifying
   &lt;local&gt; ":" &lt;local&gt; for all the existing local refs on the
   command line
 - otherwise, it is equivalent to specifying &lt;ref&gt; ":" &lt;ref&gt; for
   all the refs that exist on both sides.

* &lt;name&gt; is just a shorthand for &lt;name&gt; ":" &lt;name&gt;

* &lt;src&gt; ":" &lt;dst&gt;

  push ref that matches &lt;src&gt; to ref that matches &lt;dst&gt;.

  - It is an error if &lt;src&gt; does not match exactly one of local
    refs.

  - It is an error if &lt;dst&gt; matches more than one remote refs.

  - If &lt;dst&gt; does not match any remote refs, either

    - it has to start with "refs/"; &lt;dst&gt; is used as the
      destination literally in this case.

    - &lt;src&gt; == &lt;dst&gt; and the ref that matched the &lt;src&gt; must not
      exist in the set of remote refs; the ref matched &lt;src&gt;
      locally is used as the name of the destination.

For example,

  - "git-send-pack --all &lt;remote&gt;" works exactly as before;

  - "git-send-pack &lt;remote&gt; master:upstream" pushes local master
    to remote ref that matches "upstream".  If there is no such
    ref, it is an error.

  - "git-send-pack &lt;remote&gt; master:refs/heads/upstream" pushes
    local master to remote refs/heads/upstream, even when
    refs/heads/upstream does not exist.

  - "git-send-pack &lt;remote&gt; master" into an empty remote
    repository pushes the local ref/heads/master to the remote
    ref/heads/master.

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