<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/git-push.txt, branch v2.16.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.16.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.16.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2017-10-24T00:57:54Z</updated>
<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>
<entry>
<title>doc: add doc for git-push --recurse-submodules=only</title>
<updated>2017-02-01T23:16:49Z</updated>
<author>
<name>Cornelius Weig</name>
<email>cornelius.weig@tngtech.com</email>
</author>
<published>2017-02-01T23:07:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9c24c8741e275e2fa30aa7e800c1d4610a6fe2fd'/>
<id>urn:sha1:9c24c8741e275e2fa30aa7e800c1d4610a6fe2fd</id>
<content type='text'>
Add documentation for the `--recurse-submodules=only` option of
git-push. The feature was added in commit 225e8bf (add option to
push only submodules).

Signed-off-by: Cornelius Weig &lt;cornelius.weig@tngtech.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'mm/push-social-engineering-attack-doc'</title>
<updated>2017-01-10T23:24:24Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-01-10T23:24:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5f52e70879d70b211de5d6132ed96cecaa8eaf89'/>
<id>urn:sha1:5f52e70879d70b211de5d6132ed96cecaa8eaf89</id>
<content type='text'>
Doc update on fetching and pushing.

* mm/push-social-engineering-attack-doc:
  doc: mention transfer data leaks in more places
</content>
</entry>
<entry>
<title>doc: mention transfer data leaks in more places</title>
<updated>2016-11-14T19:23:07Z</updated>
<author>
<name>Matt McCutchen</name>
<email>matt@mattmccutchen.net</email>
</author>
<published>2016-11-14T18:20:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=235ec24352e151bed37063a004b9800ee0debd74'/>
<id>urn:sha1:235ec24352e151bed37063a004b9800ee0debd74</id>
<content type='text'>
The "SECURITY" section of the gitnamespaces(7) man page described two
ways for a client to steal data from a server that wasn't intended to be
shared. Similar attacks can be performed by a server on a client, so
adapt the section to cover both directions and add it to the
git-fetch(1), git-pull(1), and git-push(1) man pages. Also add
references to this section from the documentation of server
configuration options that attempt to control data leakage but may not
be fully effective.

Signed-off-by: Matt McCutchen &lt;matt@mattmccutchen.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/push-force-with-lease-creation'</title>
<updated>2016-08-10T19:33:18Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-08-10T19:33:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e6747627865347a534e7106bb1d14e32867b234d'/>
<id>urn:sha1:e6747627865347a534e7106bb1d14e32867b234d</id>
<content type='text'>
"git push --force-with-lease" already had enough logic to allow
ensuring that such a push results in creation of a ref (i.e. the
receiving end did not have another push from sideways that would be
discarded by our force-pushing), but didn't expose this possibility
to the users.  It does so now.

* jk/push-force-with-lease-creation:
  t5533: make it pass on case-sensitive filesystems
  push: allow pushing new branches with --force-with-lease
  push: add shorthand for --force-with-lease branch creation
  Documentation/git-push: fix placeholder formatting
</content>
</entry>
<entry>
<title>Merge branch 'sb/push-options'</title>
<updated>2016-08-03T22:10:24Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-08-03T22:10:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cf27c7996e986395a05c0056684923195295fd14'/>
<id>urn:sha1:cf27c7996e986395a05c0056684923195295fd14</id>
<content type='text'>
"git push" learned to accept and pass extra options to the
receiving end so that hooks can read and react to them.

* sb/push-options:
  add a test for push options
  push: accept push options
  receive-pack: implement advertising and receiving push options
  push options: {pre,post}-receive hook learns about push options
</content>
</entry>
</feed>
