<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/builtin/push.c, branch v2.20.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.20.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.20.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2018-11-14T08:17:09Z</updated>
<entry>
<title>push: change needlessly ambiguous example in error</title>
<updated>2018-11-14T08:17:09Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2018-11-13T20:39:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8247166717fc5a3f26e4db1067891da12644808b'/>
<id>urn:sha1:8247166717fc5a3f26e4db1067891da12644808b</id>
<content type='text'>
Change an example push added in b55e677522 ("push: introduce new
push.default mode "simple"", 2012-04-24) to always mean the same thing
whether the current setting happens to be "simple" or not.

This error is only emitted under "simple", but message is explaining
to the user that they can get two sorts of different behaviors by
these two invocations.

Let's use "git push &lt;remote&gt; HEAD" which always means push the current
branch name to that remote, instead of "git push &lt;remote&gt;
&lt;current-branch-name&gt;" which will do that under "simple", but is not
guaranteed to do under "upstream".

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'rs/opt-updates'</title>
<updated>2018-08-27T21:33:43Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-08-27T21:33:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fc0df933c8fa09603a9e9798085ee07ca1a83f65'/>
<id>urn:sha1:fc0df933c8fa09603a9e9798085ee07ca1a83f65</id>
<content type='text'>
"git cmd -h" updates.

* rs/opt-updates:
  parseopt: group literal string alternatives in argument help
  remote: improve argument help for add --mirror
  checkout-index: improve argument help for --stage
</content>
</entry>
<entry>
<title>parseopt: group literal string alternatives in argument help</title>
<updated>2018-08-21T18:35:54Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2018-08-19T17:34:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bbc072f5d884d17a6102fd04ae6d2cfcaa98ad48'/>
<id>urn:sha1:bbc072f5d884d17a6102fd04ae6d2cfcaa98ad48</id>
<content type='text'>
This formally clarifies that the "--option=" part is the same for all
alternatives.

Signed-off-by: Rene Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'rs/parse-opt-lithelp'</title>
<updated>2018-08-17T20:09:56Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-08-17T20:09:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8963bb0c2d023738f8ea021b512ed83cd79ee754'/>
<id>urn:sha1:8963bb0c2d023738f8ea021b512ed83cd79ee754</id>
<content type='text'>
The parse-options machinery learned to refrain from enclosing
placeholder string inside a "&lt;bra" and "ket&gt;" pair automatically
without PARSE_OPT_LITERAL_ARGHELP.  Existing help text for option
arguments that are not formatted correctly have been identified and
fixed.

* rs/parse-opt-lithelp:
  parse-options: automatically infer PARSE_OPT_LITERAL_ARGHELP
  shortlog: correct option help for -w
  send-pack: specify --force-with-lease argument help explicitly
  pack-objects: specify --index-version argument help explicitly
  difftool: remove angular brackets from argument help
  add, update-index: fix --chmod argument help
  push: use PARSE_OPT_LITERAL_ARGHELP instead of unbalanced brackets
</content>
</entry>
<entry>
<title>push: use PARSE_OPT_LITERAL_ARGHELP instead of unbalanced brackets</title>
<updated>2018-08-03T15:31:28Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2018-08-01T22:31:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c67318ecb6ddef6b9ecf59a422c4a282594e602d'/>
<id>urn:sha1:c67318ecb6ddef6b9ecf59a422c4a282594e602d</id>
<content type='text'>
The option help text for the force-with-lease option to "git push"
reads like this:

    $ git push -h 2&gt;&amp;1 | grep -e force-with-lease
       --force-with-lease[=&lt;refname&gt;:&lt;expect&gt;]

which comes from having N_("refname&gt;:&lt;expect") as the argument help
text in the source code, with an aparent lack of "&lt;" and "&gt;" at both
ends.

It turns out that parse-options machinery takes the whole string and
encloses it inside a pair of "&lt;&gt;", to make it easier for majority
cases that uses a single token placeholder.

The help string was written in a funnily unbalanced way knowing that
the end result would balance out, by somebody who forgot the
presence of PARSE_OPT_LITERAL_ARGHELP, which is the escape hatch
mechanism designed to help such a case.  We just should use the
official escape hatch instead.

Because ":&lt;expect&gt;" part can be omitted to ask Git to guess, it may
be more correct to spell it as "&lt;refname&gt;[:&lt;expect&gt;]", but that is
not the focus of this topic.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Helped-by: René Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>transport: convert transport_push to take a struct refspec</title>
<updated>2018-05-17T21:19:44Z</updated>
<author>
<name>Brandon Williams</name>
<email>bmwill@google.com</email>
</author>
<published>2018-05-16T22:58:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=306f22dbc8f43feeed735905276c48a96c63b9e5'/>
<id>urn:sha1:306f22dbc8f43feeed735905276c48a96c63b9e5</id>
<content type='text'>
Convert 'transport_push()' to take a 'struct refspec' as a
parameter instead of an array of strings which represent
refspecs.

Signed-off-by: Brandon Williams &lt;bmwill@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>push: convert to use struct refspec</title>
<updated>2018-05-17T21:19:44Z</updated>
<author>
<name>Brandon Williams</name>
<email>bmwill@google.com</email>
</author>
<published>2018-05-16T22:58:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=aa40289ce9438890368aa1c667d1ed6e3184213c'/>
<id>urn:sha1:aa40289ce9438890368aa1c667d1ed6e3184213c</id>
<content type='text'>
Convert the refspecs in builtin/push.c to be stored in a 'struct
refspec' instead of being stored in a list of 'struct refspec_item's.

Signed-off-by: Brandon Williams &lt;bmwill@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>push: check for errors earlier</title>
<updated>2018-05-17T21:19:44Z</updated>
<author>
<name>Brandon Williams</name>
<email>bmwill@google.com</email>
</author>
<published>2018-05-16T22:58:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=800a4ab399e954b8970897076b327bf1cf18c0ac'/>
<id>urn:sha1:800a4ab399e954b8970897076b327bf1cf18c0ac</id>
<content type='text'>
Move the error checking for using the "--mirror", "--all", and "--tags"
options earlier and explicitly check for the presence of the flags
instead of checking for a side-effect of the flag.

Signed-off-by: Brandon Williams &lt;bmwill@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>remote: convert query_refspecs to take a struct refspec</title>
<updated>2018-05-17T21:19:43Z</updated>
<author>
<name>Brandon Williams</name>
<email>bmwill@google.com</email>
</author>
<published>2018-05-16T22:58:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=86baf82521de70184182972b96bbf1859f097366'/>
<id>urn:sha1:86baf82521de70184182972b96bbf1859f097366</id>
<content type='text'>
Convert 'query_refspecs()' to take a 'struct refspec' as a parameter instead
of a list of 'struct refspec_item'.

Signed-off-by: Brandon Williams &lt;bmwill@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>remote: convert push refspecs to struct refspec</title>
<updated>2018-05-17T21:19:42Z</updated>
<author>
<name>Brandon Williams</name>
<email>bmwill@google.com</email>
</author>
<published>2018-05-16T22:58:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6bdb304b106db32b1cff185f2fa1b79e9c2c919c'/>
<id>urn:sha1:6bdb304b106db32b1cff185f2fa1b79e9c2c919c</id>
<content type='text'>
Convert the set of push refspecs stored in 'struct remote' to use
'struct refspec'.

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