<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/git-push.txt, branch v2.18.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.18.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.18.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2018-05-23T05:38:23Z</updated>
<entry>
<title>Merge branch 'ah/misc-doc-updates'</title>
<updated>2018-05-23T05:38:23Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-05-23T05:38:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=be75d12982e614685f47bff67676eb69c60bf624'/>
<id>urn:sha1:be75d12982e614685f47bff67676eb69c60bf624</id>
<content type='text'>
Misc doc fixes.

* ah/misc-doc-updates:
  doc: normalize [--options] to [options] in git-diff
  doc: add note about shell quoting to revision.txt
  git-svn: remove ''--add-author-from' for 'commit-diff'
  doc: add '-d' and '-o' for 'git push'
  doc: clarify ignore rules for git ls-files
  doc: align 'diff --no-index' in text and synopsis
  doc: improve formatting in githooks.txt
</content>
</entry>
<entry>
<title>Merge branch 'nd/doc-header'</title>
<updated>2018-05-23T05:38:22Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-05-23T05:38:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6b0f1d9c475038a54343c007193f1c81ae82b959'/>
<id>urn:sha1:6b0f1d9c475038a54343c007193f1c81ae82b959</id>
<content type='text'>
Doc formatting fix.

* nd/doc-header:
  doc: keep first level section header in upper case
</content>
</entry>
<entry>
<title>doc: add '-d' and '-o' for 'git push'</title>
<updated>2018-05-06T09:38:43Z</updated>
<author>
<name>Andreas Heiduk</name>
<email>asheiduk@gmail.com</email>
</author>
<published>2018-05-03T18:48:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=97c5d246ec90122b177fbeaa43b74b64a39413d9'/>
<id>urn:sha1:97c5d246ec90122b177fbeaa43b74b64a39413d9</id>
<content type='text'>
Add the missing `-o` shortcut for `--push-option` to the synopsis.
Add the missing `-d` shortcut for `--delete` in the main section.

Signed-off-by: Andreas Heiduk &lt;asheiduk@gmail.com&gt;
Reviewed-by: Martin Ågren &lt;martin.agren@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: keep first level section header in upper case</title>
<updated>2018-05-02T08:03:33Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2018-04-30T15:35:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=76a8788c141e9d4e2713acaa7886475fb6b27ca5'/>
<id>urn:sha1:76a8788c141e9d4e2713acaa7886475fb6b27ca5</id>
<content type='text'>
When formatted as a man page, 1st section header is always in upper
case even if we write it otherwise. Make all 1st section headers
uppercase to keep it close to the final output.

This does affect html since case is kept there, but I still think it's
a good idea to maintain a consistent style for 1st section headers.

Some sections perhaps should become second sections instead, where
case is kept, and for better organization. I will update if anyone has
suggestions about this.

While at there I also make some header more consistent (e.g. examples
vs example) and fix a couple minor things here and there.

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>doc: convert \--option to --option</title>
<updated>2018-04-18T03:49:26Z</updated>
<author>
<name>Martin Ågren</name>
<email>martin.agren@gmail.com</email>
</author>
<published>2018-04-17T19:15:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9e9f132f53dfe7dbb2a33aac0917144ccb9e2c9b'/>
<id>urn:sha1:9e9f132f53dfe7dbb2a33aac0917144ccb9e2c9b</id>
<content type='text'>
Rather than using a backslash in \--foo, with or without ''-quoting,
write `--foo` for better rendering. As explained in commit 1c262bb7b
(doc: convert \--option to --option, 2015-05-13), the backslash is not
needed for the versions of AsciiDoc that we support, but is rendered
literally by Asciidoctor.

Signed-off-by: Martin Ågren &lt;martin.agren@gmail.com&gt;
</content>
</entry>
<entry>
<title>builtin/push.c: add push.pushOption config</title>
<updated>2017-10-24T00:57:54Z</updated>
<author>
<name>Marius Paliga</name>
<email>marius.paliga@gmail.com</email>
</author>
<published>2017-10-23T11:44:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d8052750c5fdd53cb5a664a18ce9d78dbedb22ae'/>
<id>urn:sha1:d8052750c5fdd53cb5a664a18ce9d78dbedb22ae</id>
<content type='text'>
Push options need to be given explicitly, via the command line as "git
push --push-option &lt;option&gt;".  Add the config option push.pushOption,
which is a multi-valued option, containing push options that are sent
by default.

When push options are set in the lower-priority configulation file
(e.g. /etc/gitconfig, or $HOME/.gitconfig), they can be unset later in
the more specific repository config by the empty string.

Add tests and update documentation as well.

Signed-off-by: Marius Paliga &lt;marius.paliga@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ma/parse-maybe-bool'</title>
<updated>2017-08-22T17:29:03Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-08-22T17:29:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bdfcdefd2f0587873436c950dd7a0798d313eb34'/>
<id>urn:sha1:bdfcdefd2f0587873436c950dd7a0798d313eb34</id>
<content type='text'>
Code clean-up.

* ma/parse-maybe-bool:
  parse_decoration_style: drop unused argument `var`
  treewide: deprecate git_config_maybe_bool, use git_parse_maybe_bool
  config: make git_{config,parse}_maybe_bool equivalent
  config: introduce git_parse_maybe_bool_text
  t5334: document that git push --signed=1 does not work
  Doc/git-{push,send-pack}: correct --sign= to --signed=
</content>
</entry>
<entry>
<title>Doc/git-{push,send-pack}: correct --sign= to --signed=</title>
<updated>2017-08-07T20:27:20Z</updated>
<author>
<name>Martin Ågren</name>
<email>martin.agren@gmail.com</email>
</author>
<published>2017-08-07T18:20:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a81383badc50633fe459d8d2d10ee7af6c00abb7'/>
<id>urn:sha1:a81383badc50633fe459d8d2d10ee7af6c00abb7</id>
<content type='text'>
Since we're about to touch the behavior of --signed=, do this as a
preparatory step.

The documentation mentions --sign=, and it works. But that's just
because it's an unambiguous abbreviation of --signed, which is how it is
actually implemented. This was added in commit 30261094 ("push: support
signing pushes iff the server supports it", 2015-08-19). Back when that
series was developed [1] [2], there were suggestions about both --sign=
and --signed=. The final implementation settled on --signed=, but some
of the documentation and commit messages ended up using --sign=.

The option is referred to as --signed= in Documentation/config.txt
(under push.gpgSign).

One could argue that we have promised --sign for two years now, so we
should implement it as an alias for --signed. (Then we might also
deprecate the latter, something which was considered already then.) That
would be a slightly more intrusive change.

This minor issue would only be a problem once we want to implement some
other option --signfoo, but the earlier we do this step, the better.

[1] v1-thread:
https://public-inbox.org/git/1439492451-11233-1-git-send-email-dborowitz@google.com/T/#u

[2] v2-thread:
https://public-inbox.org/git/1439998007-28719-1-git-send-email-dborowitz@google.com/T/#m6533a6c4707a30b0d81e86169ff8559460cbf6eb

Signed-off-by: Martin Ågren &lt;martin.agren@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>push: document &amp; test --force-with-lease with multiple remotes</title>
<updated>2017-04-20T01:53:06Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2017-04-19T09:22:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f17d642d3b0fa64879d59b311e596949f2a1f6d2'/>
<id>urn:sha1:f17d642d3b0fa64879d59b311e596949f2a1f6d2</id>
<content type='text'>
Document &amp; test for cases where there are two remotes pointing to the
same URL, and a background fetch &amp; subsequent `git push
--force-with-lease` shouldn't clobber un-updated references we haven't
fetched.

Some editors like Microsoft's VSC have a feature to auto-fetch in the
background, this bypasses the protections offered by
--force-with-lease &amp; --force-with-lease=&lt;refname&gt;, as noted in the
documentation being added here.

See the 'Tools that do an automatic fetch defeat "git push
--force-with-lease"' (&lt;1491617750.2149.10.camel@mattmccutchen.net&gt;)
git mailing list thread for more details. Jakub Narębski suggested
this method of adding another remote to bypass this edge case,
document that &amp; add a test for it.

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 'bw/push-submodule-only'</title>
<updated>2017-02-10T20:52:23Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-02-10T20:52:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8e7c1f3240d16d93f4f48c5c1ffa1d5a1f69b298'/>
<id>urn:sha1:8e7c1f3240d16d93f4f48c5c1ffa1d5a1f69b298</id>
<content type='text'>
Add missing documentation update to a recent topic.

* bw/push-submodule-only:
  completion: add completion for --recurse-submodules=only
  doc: add doc for git-push --recurse-submodules=only
</content>
</entry>
</feed>
