<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/builtin-push.c, branch v1.6.4</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.6.4</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.6.4'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2009-07-19T00:20:52Z</updated>
<entry>
<title>push: do not give big warning when no preference is configured</title>
<updated>2009-07-19T00:20:52Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-07-19T00:19:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bba0fd22ad654460a81c4b35462b600d9432a869'/>
<id>urn:sha1:bba0fd22ad654460a81c4b35462b600d9432a869</id>
<content type='text'>
If the message said "we will be changing the default in the future, so
this is to warn people who want to keep the current default what to do",
it would have made some sense, but as it stands, the message is merely an
unsolicited advertisement for a new feature, which it is not helpful at
all.  Squelch it.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>add --porcelain option to git-push</title>
<updated>2009-06-28T05:26:58Z</updated>
<author>
<name>Larry D'Anna</name>
<email>larry@elder-gods.org</email>
</author>
<published>2009-06-23T01:10:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1965ff744a7e4cdefcc467991182b779f3c9d0e8'/>
<id>urn:sha1:1965ff744a7e4cdefcc467991182b779f3c9d0e8</id>
<content type='text'>
If --porcelain is used git-push will produce machine-readable output.  The
output status line for each ref will be tab-separated and sent to stdout instead
of stderr.  The full symbolic names of the refs will be given.  For example

$ git push --dry-run --porcelain master :foobar 2&gt;/dev/null \
  | perl -pe 's/\t/ TAB /g'

= TAB refs/heads/master:refs/heads/master TAB [up to date]
- TAB :refs/heads/foobar TAB [deleted]

Signed-off-by: Larry D'Anna &lt;larry@elder-gods.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Allow push and fetch urls to be different</title>
<updated>2009-06-10T06:46:47Z</updated>
<author>
<name>Michael J Gruber</name>
<email>git@drmicha.warpmail.net</email>
</author>
<published>2009-06-09T16:01:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=203462347fce0eab563fe77640648a7e8ae64d3b'/>
<id>urn:sha1:203462347fce0eab563fe77640648a7e8ae64d3b</id>
<content type='text'>
This introduces a config setting remote.$remotename.pushurl which is
used for pushes only. If absent remote.$remotename.url is used for
pushes and fetches as before.
This is useful, for example, in order to do passwordless fetches
(remote update) over the git transport but pushes over ssh.

Signed-off-by: Michael J Gruber &lt;git@drmicha.warpmail.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>parse-opts: prepare for OPT_FILENAME</title>
<updated>2009-05-25T08:07:25Z</updated>
<author>
<name>Stephen Boyd</name>
<email>bebarino@gmail.com</email>
</author>
<published>2009-05-23T18:53:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=377829201783b8a648e07af6ce7d747e0f45dc19'/>
<id>urn:sha1:377829201783b8a648e07af6ce7d747e0f45dc19</id>
<content type='text'>
To give OPT_FILENAME the prefix, we pass the prefix to parse_options()
which passes the prefix to parse_options_start() which sets the prefix
member of parse_opts_ctx accordingly. If there isn't a prefix in the
calling context, passing NULL will suffice.

Signed-off-by: Stephen Boyd &lt;bebarino@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<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>
</feed>
