<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/builtin/push.c, branch v2.24.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.24.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.24.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2019-10-15T04:48:03Z</updated>
<entry>
<title>Merge branch 'js/trace2-fetch-push'</title>
<updated>2019-10-15T04:48:03Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-10-15T04:48:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3b9ec279191b70e9e5ecde15910991f7c5669a17'/>
<id>urn:sha1:3b9ec279191b70e9e5ecde15910991f7c5669a17</id>
<content type='text'>
Dev support.

* js/trace2-fetch-push:
  transport: push codepath can take arbitrary repository
  push: add trace2 instrumentation
  fetch: add trace2 instrumentation
</content>
</entry>
<entry>
<title>Merge branch 'js/azure-pipelines-msvc'</title>
<updated>2019-10-15T04:48:00Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-10-15T04:48:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6d5291be450594d453759650f466174f39953c4f'/>
<id>urn:sha1:6d5291be450594d453759650f466174f39953c4f</id>
<content type='text'>
CI updates.

* js/azure-pipelines-msvc:
  ci: also build and test with MS Visual Studio on Azure Pipelines
  ci: really use shallow clones on Azure Pipelines
  tests: let --immediate and --write-junit-xml play well together
  test-tool run-command: learn to run (parts of) the testsuite
  vcxproj: include more generated files
  vcxproj: only copy `git-remote-http.exe` once it was built
  msvc: work around a bug in GetEnvironmentVariable()
  msvc: handle DEVELOPER=1
  msvc: ignore some libraries when linking
  compat/win32/path-utils.h: add #include guards
  winansi: use FLEX_ARRAY to avoid compiler warning
  msvc: avoid using minus operator on unsigned types
  push: do not pretend to return `int` from `die_push_simple()`
</content>
</entry>
<entry>
<title>push: do not pretend to return `int` from `die_push_simple()`</title>
<updated>2019-10-03T22:35:31Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2019-09-30T09:55:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dbcd970c27ba42ab09073211f858b1a89c7f8300'/>
<id>urn:sha1:dbcd970c27ba42ab09073211f858b1a89c7f8300</id>
<content type='text'>
This function is marked as `NORETURN`, and it indeed does not want to
return anything. So let's not declare it with the return type `int`.
This fixes the following warning when building with MSVC:

	C4646: function declared with 'noreturn' has non-void return type

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>push: add trace2 instrumentation</title>
<updated>2019-10-03T01:13:18Z</updated>
<author>
<name>Josh Steadmon</name>
<email>steadmon@google.com</email>
</author>
<published>2019-10-02T23:49:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=25e4b8099c0ed4c2b4eeb3c8a7edce3785d9aeab'/>
<id>urn:sha1:25e4b8099c0ed4c2b4eeb3c8a7edce3785d9aeab</id>
<content type='text'>
Add trace2 regions in transport.c and builtin/push.c to better track
time spent in various phases of pushing:

* Listing refs
* Checking submodules
* Pushing submodules
* Pushing refs

Signed-off-by: Josh Steadmon &lt;steadmon@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'tg/push-all-in-mirror-forbidden'</title>
<updated>2019-09-30T04:19:28Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-09-30T04:19:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fe048e4fd905e5c45b07381339ef627f57cf0822'/>
<id>urn:sha1:fe048e4fd905e5c45b07381339ef627f57cf0822</id>
<content type='text'>
Fix an earlier regression to "git push --all" which should have
been forbidden when the target remote repository is set to be a
mirror.

* tg/push-all-in-mirror-forbidden:
  push: disallow --all and refspecs when remote.&lt;name&gt;.mirror is set
</content>
</entry>
<entry>
<title>push: disallow --all and refspecs when remote.&lt;name&gt;.mirror is set</title>
<updated>2019-09-03T18:16:54Z</updated>
<author>
<name>Thomas Gummerer</name>
<email>t.gummerer@gmail.com</email>
</author>
<published>2019-09-02T18:08:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8e4c8af058d7eb1b887184deb3bf79f3818b3a65'/>
<id>urn:sha1:8e4c8af058d7eb1b887184deb3bf79f3818b3a65</id>
<content type='text'>
Pushes with --all, or refspecs are disallowed when --mirror is given
to 'git push', or when 'remote.&lt;name&gt;.mirror' is set in the config of
the repository, because they can have surprising
effects. 800a4ab399 ("push: check for errors earlier", 2018-05-16)
refactored this code to do that check earlier, so we can explicitly
check for the presence of flags, instead of their sideeffects.

However when 'remote.&lt;name&gt;.mirror' is set in the config, the
TRANSPORT_PUSH_MIRROR flag would only be set after we calling
'do_push()', so the checks would miss it entirely.

This leads to surprises for users [*1*].

Fix this by making sure we set the flag (if appropriate) before
checking for compatibility of the various options.

*1*: https://twitter.com/FiloSottile/status/1163918701462249472

Reported-by: Filippo Valsorda &lt;filippo@ml.filippo.io&gt;
Helped-by: Saleem Rashid
Signed-off-by: Thomas Gummerer &lt;t.gummerer@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<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>
</feed>
