<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/builtin/push.c, branch v2.22.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.22.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.22.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2019-01-18T21:49:52Z</updated>
<entry>
<title>Merge branch 'nd/style-opening-brace'</title>
<updated>2019-01-18T21:49:52Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-01-18T21:49:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3434569fc206c2f4bc434571d202f2961aa905e5'/>
<id>urn:sha1:3434569fc206c2f4bc434571d202f2961aa905e5</id>
<content type='text'>
Code clean-up.

* nd/style-opening-brace:
  style: the opening '{' of a function is in a separate line
</content>
</entry>
<entry>
<title>Merge branch 'nd/the-index'</title>
<updated>2019-01-04T21:33:33Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-01-04T21:33:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cde555480b95c4311819dc1f7a38cc856a9aed23'/>
<id>urn:sha1:cde555480b95c4311819dc1f7a38cc856a9aed23</id>
<content type='text'>
More codepaths become aware of working with in-core repository
instance other than the default "the_repository".

* nd/the-index: (22 commits)
  rebase-interactive.c: remove the_repository references
  rerere.c: remove the_repository references
  pack-*.c: remove the_repository references
  pack-check.c: remove the_repository references
  notes-cache.c: remove the_repository references
  line-log.c: remove the_repository reference
  diff-lib.c: remove the_repository references
  delta-islands.c: remove the_repository references
  cache-tree.c: remove the_repository references
  bundle.c: remove the_repository references
  branch.c: remove the_repository reference
  bisect.c: remove the_repository reference
  blame.c: remove implicit dependency the_repository
  sequencer.c: remove implicit dependency on the_repository
  sequencer.c: remove implicit dependency on the_index
  transport.c: remove implicit dependency on the_index
  notes-merge.c: remove implicit dependency the_repository
  notes-merge.c: remove implicit dependency on the_index
  list-objects.c: reduce the_repository references
  list-objects-filter.c: remove implicit dependency on the_index
  ...
</content>
</entry>
<entry>
<title>style: the opening '{' of a function is in a separate line</title>
<updated>2018-12-10T06:41:09Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2018-12-09T10:25:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3b3357626edc841a51d8885ddf6986bab5b6f778'/>
<id>urn:sha1:3b3357626edc841a51d8885ddf6986bab5b6f778</id>
<content type='text'>
Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<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>transport.c: remove implicit dependency on the_index</title>
<updated>2018-11-12T05:50:05Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2018-11-10T05:48:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6c6d5d0776b5eb60dc206691fc1fde755e94da20'/>
<id>urn:sha1:6c6d5d0776b5eb60dc206691fc1fde755e94da20</id>
<content type='text'>
note, there's still another hidden dependency related to this: even
though we pass a repo to transport_push() we still use
is_bare_repository() which pretty much assumes the_repository (and
some other global state).

Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@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>
</feed>
