<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/builtin-push.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-03-26T07:26:25Z</updated>
<entry>
<title>Merge branch 'fg/push-default'</title>
<updated>2009-03-26T07:26:25Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-03-26T07:26:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2545c089e329d340a9bdec9f725fa737063dd7f6'/>
<id>urn:sha1:2545c089e329d340a9bdec9f725fa737063dd7f6</id>
<content type='text'>
* fg/push-default:
  builtin-push.c: Fix typo: "anythig" -&gt; "anything"
  Display warning for default git push with no push.default config
  New config push.default to decide default behavior for push

Conflicts:
	Documentation/config.txt
</content>
</entry>
<entry>
<title>builtin-push.c: Fix typo: "anythig" -&gt; "anything"</title>
<updated>2009-03-25T22:05:46Z</updated>
<author>
<name>Kevin Ballard</name>
<email>kevin@sb.org</email>
</author>
<published>2009-03-25T20:14:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b2655cdae953d619d488b69b7d49e4204e5682dc'/>
<id>urn:sha1:b2655cdae953d619d488b69b7d49e4204e5682dc</id>
<content type='text'>
Signed-off-by: Kevin Ballard &lt;kevin@sb.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Display warning for default git push with no push.default config</title>
<updated>2009-03-17T21:50:21Z</updated>
<author>
<name>Finn Arne Gangstad</name>
<email>finnag@pvv.org</email>
</author>
<published>2009-03-16T15:42:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=665d3e8f057b90d7b43d70db75b9ac5506bd204d'/>
<id>urn:sha1:665d3e8f057b90d7b43d70db75b9ac5506bd204d</id>
<content type='text'>
If a git push without any refspecs is attempted, display a warning.
The current default behavior is to push all matching refspecs, which
may come as a surprise to new users, so the warning shows how
push.default can be configured and what the possible values are.

Traditionalists who wish to keep the current behaviour are also told
how to configure this once and never see the warning again.

Signed-off-by: Finn Arne Gangstad &lt;finnag@pvv.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>New config push.default to decide default behavior for push</title>
<updated>2009-03-17T21:50:21Z</updated>
<author>
<name>Finn Arne Gangstad</name>
<email>finnag@pvv.org</email>
</author>
<published>2009-03-16T15:42:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=521537476fe99b97bfcdf1b8f0c579061af5fd3e'/>
<id>urn:sha1:521537476fe99b97bfcdf1b8f0c579061af5fd3e</id>
<content type='text'>
When "git push" is not told what refspecs to push, it pushes all matching
branches to the current remote.  For some workflows this default is not
useful, and surprises new users.  Some have even found that this default
behaviour is too easy to trigger by accident with unwanted consequences.

Introduce a new configuration variable "push.default" that decides what
action git push should take if no refspecs are given or implied by the
command line arguments or the current remote configuration.

Possible values are:

  'nothing'  : Push nothing;
  'matching' : Current default behaviour, push all branches that already
               exist in the current remote;
  'tracking' : Push the current branch to whatever it is tracking;
  'current'  : Push the current branch to a branch of the same name,
               i.e. HEAD.

Signed-off-by: Finn Arne Gangstad &lt;finnag@pvv.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Give error when no remote is configured</title>
<updated>2009-03-11T06:14:20Z</updated>
<author>
<name>Daniel Barkalow</name>
<email>barkalow@iabervon.org</email>
</author>
<published>2009-03-11T05:47:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fa685bdf45cbaa997255cc78a23494b995e9769a'/>
<id>urn:sha1:fa685bdf45cbaa997255cc78a23494b995e9769a</id>
<content type='text'>
When there's no explicitly-named remote, we use the remote specified
for the current branch, which in turn defaults to "origin". But it
this case should require the remote to actually be configured, and not
fall back to the path "origin".

Possibly, the config file's "remote = something" should require the
something to be a configured remote instead of a bare repository URL,
but we actually test with a bare repository URL.

In fetch, we were giving the sensible error message when coming up
with a URL failed, but this wasn't actually reachable, so move that
error up and use it when appropriate.

In push, we need a new error message, because the old one (formerly
unreachable without a lot of help) used the repo name, which was NULL.

Signed-off-by: Daniel Barkalow &lt;barkalow@iabervon.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'maint'</title>
<updated>2008-10-08T15:05:43Z</updated>
<author>
<name>Shawn O. Pearce</name>
<email>spearce@spearce.org</email>
</author>
<published>2008-10-08T15:05:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c4f6a48969b33e7fec8fce592e38a60849782d2a'/>
<id>urn:sha1:c4f6a48969b33e7fec8fce592e38a60849782d2a</id>
<content type='text'>
* maint:
  Do not use errno when pread() returns 0
  git init: --bare/--shared overrides system/global config
  git-push.txt: Describe --repo option in more detail
  git rm: refresh index before up-to-date check
  Fix a few typos in relnotes
</content>
</entry>
<entry>
<title>git-push.txt: Describe --repo option in more detail</title>
<updated>2008-10-08T14:15:53Z</updated>
<author>
<name>Johannes Sixt</name>
<email>johannes.sixt@telecom.at</email>
</author>
<published>2008-10-07T14:26:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bf07cc58aeb84b1262cc58f571d2f7033474efa7'/>
<id>urn:sha1:bf07cc58aeb84b1262cc58f571d2f7033474efa7</id>
<content type='text'>
The --repo option was described in a way that the reader would have to
assume that it is the same as the &lt;repository&gt; parameter. But it actually
servers a purpose, which is now written down.

Furthermore, the --mirror option was missing from the synopsis.

Signed-off-by: Johannes Sixt &lt;johannes.sixt@telecom.at&gt;
Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
</content>
</entry>
<entry>
<title>Make push more verbose about illegal combination of options</title>
<updated>2008-08-17T07:24:21Z</updated>
<author>
<name>Marek Zawirski</name>
<email>marek.zawirski@gmail.com</email>
</author>
<published>2008-08-16T17:58:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b259f09b181c6650253f2ab60f5375d3ff8e3872'/>
<id>urn:sha1:b259f09b181c6650253f2ab60f5375d3ff8e3872</id>
<content type='text'>
It may be unclear that --all, --mirror, --tags and/or explicit refspecs
are illegal combinations for git push.

Git was silently failing in these cases, while we can complaint more
properly about it.

Signed-off-by: Marek Zawirski &lt;marek.zawirski@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>builtin-push.c: Cleanup - use OPT_BIT() and remove some variables</title>
<updated>2008-07-20T21:41:49Z</updated>
<author>
<name>Michele Ballabio</name>
<email>barra_cuda@katamail.com</email>
</author>
<published>2008-07-20T12:02:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c29c1b406eb6edd30c4a7dc11e91370e497e6a5d'/>
<id>urn:sha1:c29c1b406eb6edd30c4a7dc11e91370e497e6a5d</id>
<content type='text'>
Signed-off-by: Michele Ballabio &lt;barra_cuda@katamail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Make usage strings dash-less</title>
<updated>2008-07-13T21:12:48Z</updated>
<author>
<name>Stephan Beyer</name>
<email>s-beyer@gmx.net</email>
</author>
<published>2008-07-13T13:36:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1b1dd23f2d6a707b7077cdf6bc6d4055bd0bfb7d'/>
<id>urn:sha1:1b1dd23f2d6a707b7077cdf6bc6d4055bd0bfb7d</id>
<content type='text'>
When you misuse a git command, you are shown the usage string.
But this is currently shown in the dashed form.  So if you just
copy what you see, it will not work, when the dashed form
is no longer supported.

This patch makes git commands show the dash-less version.

For shell scripts that do not specify OPTIONS_SPEC, git-sh-setup.sh
generates a dash-less usage string now.

Signed-off-by: Stephan Beyer &lt;s-beyer@gmx.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
