<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/git.git/remote.c, branch v1.8.3.3</title>
<subtitle>Git
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.8.3.3</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.8.3.3'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/'/>
<updated>2013-04-02T17:41:43Z</updated>
<entry>
<title>remote.c: introduce branch.&lt;name&gt;.pushremote</title>
<updated>2013-04-02T17:41:43Z</updated>
<author>
<name>Ramkumar Ramachandra</name>
<email>artagnon@gmail.com</email>
</author>
<published>2013-04-02T07:40:34Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=9f765ce62fd2d5159a3dc7f73abe30a3fbef08f7'/>
<id>urn:sha1:9f765ce62fd2d5159a3dc7f73abe30a3fbef08f7</id>
<content type='text'>
This new configuration variable overrides `remote.pushdefault` and
`branch.&lt;name&gt;.remote` for pushes.  When you pull from one
place (e.g. your upstream) and push to another place (e.g. your own
publishing repository), you would want to set `remote.pushdefault` to
specify the remote to push to for all branches, and use this option to
override it for a specific branch.

Signed-off-by: Ramkumar Ramachandra &lt;artagnon@gmail.com&gt;
Reviewed-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>remote.c: introduce remote.pushdefault</title>
<updated>2013-04-02T17:41:42Z</updated>
<author>
<name>Ramkumar Ramachandra</name>
<email>artagnon@gmail.com</email>
</author>
<published>2013-04-02T07:40:33Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=224c2171637ee71c36cb6b0ed314d14216725d6f'/>
<id>urn:sha1:224c2171637ee71c36cb6b0ed314d14216725d6f</id>
<content type='text'>
This new configuration variable defines the default remote to push to,
and overrides `branch.&lt;name&gt;.remote` for all branches.  It is useful
in the typical triangular-workflow setup, where the remote you're
fetching from is different from the remote you're pushing to.

Signed-off-by: Ramkumar Ramachandra &lt;artagnon@gmail.com&gt;
Reviewed-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>remote.c: introduce a way to have different remotes for fetch/push</title>
<updated>2013-04-02T17:41:42Z</updated>
<author>
<name>Ramkumar Ramachandra</name>
<email>artagnon@gmail.com</email>
</author>
<published>2013-04-02T07:40:32Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=f24f715e05399cba19cb9455fdd7d8a9806fe61b'/>
<id>urn:sha1:f24f715e05399cba19cb9455fdd7d8a9806fe61b</id>
<content type='text'>
Currently, do_push() in push.c calls remote_get(), which gets the
configured remote for fetching and pushing.  Replace this call with a
call to pushremote_get() instead, a new function that will return the
remote configured specifically for pushing.  This function tries to
work with the string pushremote_name, before falling back to the
codepath of remote_get().  This patch has no visible impact, but
serves to enable future patches to introduce configuration variables
to set pushremote_name.  For example, you can now do the following in
handle_config():

    if (!strcmp(key, "remote.pushdefault"))
       git_config_string(&amp;pushremote_name, key, value);

Then, pushes will automatically go to the remote specified by
remote.pushdefault.

Signed-off-by: Ramkumar Ramachandra &lt;artagnon@gmail.com&gt;
Reviewed-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>remote.c: simplify a bit of code using git_config_string()</title>
<updated>2013-04-02T17:41:41Z</updated>
<author>
<name>Ramkumar Ramachandra</name>
<email>artagnon@gmail.com</email>
</author>
<published>2013-04-02T07:40:29Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=b4b634352de7de5f824eb4cf1ccb2a656f801adc'/>
<id>urn:sha1:b4b634352de7de5f824eb4cf1ccb2a656f801adc</id>
<content type='text'>
A small segment where handle_config() parses the branch.remote
configuration variable can be simplified using git_config_string().

Signed-off-by: Ramkumar Ramachandra &lt;artagnon@gmail.com&gt;
Reviewed-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/nobody-sets-src-peer-ref'</title>
<updated>2013-04-01T16:05:35Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-04-01T16:05:35Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=6d37c162bb5b9cb4453e43d4488e953fe65cc67e'/>
<id>urn:sha1:6d37c162bb5b9cb4453e43d4488e953fe65cc67e</id>
<content type='text'>
Dead code removal.

* jc/nobody-sets-src-peer-ref:
  match_push_refs(): nobody sets src-&gt;peer_ref anymore
</content>
</entry>
<entry>
<title>Merge branch 'jc/push-follow-tag'</title>
<updated>2013-03-25T21:00:41Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-03-25T21:00:40Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=55f6fbef3d3910fbc5de87f81e8e8e882d3d1d38'/>
<id>urn:sha1:55f6fbef3d3910fbc5de87f81e8e8e882d3d1d38</id>
<content type='text'>
The new "--follow-tags" option tells "git push" to push relevant
annotated tags when pushing branches out.

* jc/push-follow-tag:
  push: --follow-tags
  commit.c: use clear_commit_marks_many() in in_merge_bases_many()
  commit.c: add in_merge_bases_many()
  commit.c: add clear_commit_marks_many()
</content>
</entry>
<entry>
<title>Merge branch 'jc/fetch-raw-sha1'</title>
<updated>2013-03-21T21:02:27Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-03-21T21:02:27Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=e4e1c5499056de58f7df207cf41274a321857c77'/>
<id>urn:sha1:e4e1c5499056de58f7df207cf41274a321857c77</id>
<content type='text'>
Allows requests to fetch objects at any tip of refs (including
hidden ones).  It seems that there may be use cases even outside
Gerrit (e.g. $gmane/215701).

* jc/fetch-raw-sha1:
  fetch: fetch objects by their exact SHA-1 object names
  upload-pack: optionally allow fetching from the tips of hidden refs
  fetch: use struct ref to represent refs to be fetched
  parse_fetch_refspec(): clarify the codeflow a bit
</content>
</entry>
<entry>
<title>push: --follow-tags</title>
<updated>2013-03-05T21:39:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-03-04T20:09:50Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=c2aba155da10b8bc9f867d2f0ac0e63cc8dae1a4'/>
<id>urn:sha1:c2aba155da10b8bc9f867d2f0ac0e63cc8dae1a4</id>
<content type='text'>
The new option "--follow-tags" tells "git push" to push annotated
tags that are missing from the other side and that can be reached by
the history that is otherwise pushed out.

For example, if you are using the "simple", "current", or "upstream"
push, you would ordinarily push the history leading to the commit at
your current HEAD and nothing else.  With this option, you would
also push all annotated tags that can be reached from that commit to
the other side.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>match_push_refs(): nobody sets src-&gt;peer_ref anymore</title>
<updated>2013-03-04T23:01:11Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-03-04T22:36:33Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=703e8e65c8e3781642ae609117818c42496adf24'/>
<id>urn:sha1:703e8e65c8e3781642ae609117818c42496adf24</id>
<content type='text'>
In ancient times, we used to disallow the same source ref to be
pushed to more than one places, e.g. "git push there master:master
master:naster" was disallowed.  We later lifted this restriction
with db27ee63929f (send-pack: allow the same source to be pushed
more than once., 2005-08-06) and there no longer is anybody that
sets peer_ref for the source side of the ref list in the push
codepath since then.

Remove one leftover no-op in a loop that iterates over the source
side of ref list (i.e. our local ref) to see if it can/should be
sent to a matching destination ref while skipping ones that is
marked with peer_ref (which will never exist, so we do not skip
anything).

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>fetch: fetch objects by their exact SHA-1 object names</title>
<updated>2013-02-07T22:07:53Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-01-29T22:02:15Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=6e7b66eebd18c11f58a9790b8f071618a1bb5b2c'/>
<id>urn:sha1:6e7b66eebd18c11f58a9790b8f071618a1bb5b2c</id>
<content type='text'>
Teach "git fetch" to accept an exact SHA-1 object name the user may
obtain out of band on the LHS of a pathspec, and send it on a "want"
message when the server side advertises the allow-tip-sha1-in-want
capability.

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