<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/git-push.txt, branch v2.35.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.35.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.35.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2021-07-17T00:42:53Z</updated>
<entry>
<title>Merge branch 'ds/gender-neutral-doc'</title>
<updated>2021-07-17T00:42:53Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-07-17T00:42:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8e62a85352e998415934ac24c6b0db3cd37d372e'/>
<id>urn:sha1:8e62a85352e998415934ac24c6b0db3cd37d372e</id>
<content type='text'>
Update the documentation not to assume users are of certain gender
and adds to guidelines to do so.

* ds/gender-neutral-doc:
  *: fix typos
  comments: avoid using the gender of our users
  doc: avoid using the gender of other people
</content>
</entry>
<entry>
<title>doc: avoid using the gender of other people</title>
<updated>2021-06-16T02:25:09Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2021-06-15T14:11:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=69b3367f6c987b36b98937d8f446f75c5dbc000a'/>
<id>urn:sha1:69b3367f6c987b36b98937d8f446f75c5dbc000a</id>
<content type='text'>
Using gendered pronouns for an anonymous person applies a gender where
none is known and further excludes readers who do not use gendered
pronouns. Avoid such examples in the documentation by using "they" or
passive voice to avoid the need for a pronoun.

Inspired-by: Derrick Stolee &lt;dstolee@microsoft.com&gt;
Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
Signed-off-by: Derrick Stolee &lt;dstolee@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Documentation/git-push.txt: correct configuration typo</title>
<updated>2021-03-13T23:41:45Z</updated>
<author>
<name>Taylor Blau</name>
<email>me@ttaylorr.com</email>
</author>
<published>2021-03-08T18:43:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4c8e3dca6eab37c8149160d54a845439d33ce391'/>
<id>urn:sha1:4c8e3dca6eab37c8149160d54a845439d33ce391</id>
<content type='text'>
In the EXAMPLES section, git-push(1) says that 'git push origin' pushes
the current branch to the value of the 'remote.origin.merge'
configuration.

This wording (which dates back to b2ed944af7 (push: switch default from
"matching" to "simple", 2013-01-04)) is incorrect. There is no such
configuration as 'remote.&lt;name&gt;.merge'. This likely was originally
intended to read "branch.&lt;name&gt;.merge" instead.

Indeed, when 'push.default' is 'simple' (which is the default value, and
is applicable in this scenario per "without additional configuration"),
setup_push_upstream() dies if the branch's local name does not match
'branch.&lt;name&gt;.merge'.

Correct this long-standing typo to resolve some recent confusion on the
intended behavior of this example.

Reported-by: Adam Sharafeddine &lt;adam.shrfdn@gmail.com&gt;
Reported-by: Fabien Terrani &lt;terranifabien@gmail.com&gt;
Signed-off-by: Taylor Blau &lt;me@ttaylorr.com&gt;
Reviewed-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t, doc: update tests, reference for "--force-if-includes"</title>
<updated>2020-10-03T16:59:19Z</updated>
<author>
<name>Srinidhi Kaushik</name>
<email>shrinidhi.kaushik@gmail.com</email>
</author>
<published>2020-10-03T12:10:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3b5bf96573b5773e64f7884607794c268b352992'/>
<id>urn:sha1:3b5bf96573b5773e64f7884607794c268b352992</id>
<content type='text'>
Update test cases for the new option, and document its usage
and update related references.

Update test cases for the new option, and document its usage
and update related references.

 - t/t5533-push-cas.sh:
   Update test cases for "compare-and-swap" when used along with
   "--force-if-includes" helps mitigate overwrites when remote
   refs are updated in the background; allows forced updates when
   changes from remote are integrated locally.

 - Documentation:
   Add reference for the new option, configuration setting
   ("push.useForceIfIncludes") and advise messages.

Signed-off-by: Srinidhi Kaushik &lt;shrinidhi.kaushik@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: fix repeated words</title>
<updated>2019-08-12T00:40:07Z</updated>
<author>
<name>Mark Rushakoff</name>
<email>mark.rushakoff@gmail.com</email>
</author>
<published>2019-08-10T05:59:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=24966cd9820a6b0d4e348807b07cb9af8ba84fc7'/>
<id>urn:sha1:24966cd9820a6b0d4e348807b07cb9af8ba84fc7</id>
<content type='text'>
Inspired by 21416f0a07 ("restore: fix typo in docs", 2019-08-03), I ran
"git grep -E '(\b[a-zA-Z]+) \1\b' -- Documentation/" to find other cases
where words were duplicated, e.g. "the the", and in most cases removed
one of the repeated words.

There were many false positives by this grep command, including
deliberate repeated words like "really really" or valid uses of "that
that" which I left alone, of course.

I also did not correct any of the legitimate, accidentally repeated
words in old RelNotes.

Signed-off-by: Mark Rushakoff &lt;mark.rushakoff@gmail.com&gt;
Acked-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>push doc: document the DWYM behavior pushing to unqualified &lt;dst&gt;</title>
<updated>2018-11-14T06:27:56Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2018-11-13T19:52:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2219c09e23c39aed7c869c1f4dda28aec46da984'/>
<id>urn:sha1:2219c09e23c39aed7c869c1f4dda28aec46da984</id>
<content type='text'>
Document the DWYM behavior that kicks in when pushing to an
unqualified &lt;dst&gt; reference.

This behavior was added in f88395ac23 ("Renaming push.", 2005-08-03)
and f8aae12034 ("push: allow unqualified dest refspecs to DWIM",
2008-04-23), and somewhat documented in bb9fca80ce ("git-push: Update
description of refspecs and add examples", 2007-06-09), but has never
been fully documented.

The closest we got to having documented it was the description in the
commit message for f8aae12034, which I've borrowed from in writing
this documentation.

Let's also refer to this new documentation from the existing
documentation we had (added in bb9fca80ce).

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>push doc: add spacing between two words</title>
<updated>2018-09-19T19:43:50Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2018-09-18T05:47:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f4ec16ad0c588ccdf10fbb9edb862dcb32b90c9b'/>
<id>urn:sha1:f4ec16ad0c588ccdf10fbb9edb862dcb32b90c9b</id>
<content type='text'>
Fix a formatting error introduced in my recently landed
fe802bd21e ("push doc: correct lies about how push refspecs work",
2018-08-31).

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>push doc: correct lies about how push refspecs work</title>
<updated>2018-08-31T21:04:06Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2018-08-31T20:10:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fe802bd21e81cceedff2db79cc3c9a5ad75b4f93'/>
<id>urn:sha1:fe802bd21e81cceedff2db79cc3c9a5ad75b4f93</id>
<content type='text'>
There's complex rules governing whether a push is allowed to take
place depending on whether we're pushing to refs/heads/*, refs/tags/*
or refs/not-that/*. See is_branch() in refs.c, and the various
assertions in refs/files-backend.c. (e.g. "trying to write non-commit
object %s to branch '%s'").

This documentation has never been quite correct, but went downhill
after dbfeddb12e ("push: require force for refs under refs/tags/",
2012-11-29) when we started claiming that &lt;dst&gt; couldn't be a tag
object, which is incorrect. After some of the logic in that patch was
changed in 256b9d70a4 ("push: fix "refs/tags/ hierarchy cannot be
updated without --force"", 2013-01-16) the docs weren't updated, and
we've had some version of documentation that confused whether &lt;src&gt;
was a tag or not with whether &lt;dst&gt; would accept either an annotated
tag object or the commit it points to.

This makes the intro somewhat more verbose &amp; complex, perhaps we
should have a shorter description here and split the full complexity
into a dedicated section. Very few users will find themselves needing
to e.g. push blobs or trees to refs/custom-namespace/* (or blobs or
trees at all), and that could be covered separately as an advanced
topic.

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>push doc: move mention of "tag &lt;tag&gt;" later in the prose</title>
<updated>2018-08-31T21:04:06Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2018-08-31T20:10:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8da6128c264c7896c011b5e3e0eace57eb073f63'/>
<id>urn:sha1:8da6128c264c7896c011b5e3e0eace57eb073f63</id>
<content type='text'>
This change will be followed-up with a subsequent change where I'll
change both sides of this mention of "tag &lt;tag&gt;" to be something
that's best read without interruption.

To make that change smaller, let's move this mention of "tag &lt;tag&gt;" to
the end of the "&lt;refspec&gt;..." section, it's now somewhere in the
middle.

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>push doc: remove confusing mention of remote merger</title>
<updated>2018-08-31T21:04:06Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2018-08-31T20:10:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d931455acf1cf1a21a4f10fd99fc2bd9bbefa7a9'/>
<id>urn:sha1:d931455acf1cf1a21a4f10fd99fc2bd9bbefa7a9</id>
<content type='text'>
Saying that "git push &lt;remote&gt; &lt;src&gt;:&lt;dst&gt;" won't push a merger of
&lt;src&gt; and &lt;dst&gt; to &lt;dst&gt; is clear from the rest of the context here,
so mentioning it is redundant, furthermore the mention of "EXAMPLES
below" isn't specific or useful.

This phrase was originally added in 149f6ddfb3 ("Docs: Expand
explanation of the use of + in git push refspecs.", 2009-02-19), as
can be seen in that change the point of the example being cited was to
show that force pushing can leave unreferenced commits on the
remote. It's enough that we explain that in its own section, it
doesn't need to be mentioned here.

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>
</feed>
