<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/remote.c, branch v2.11.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.11.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.11.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2017-01-31T21:32:08Z</updated>
<entry>
<title>Merge branch 'km/branch-get-push-while-detached' into maint</title>
<updated>2017-01-31T21:32:08Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-01-31T21:32:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f5f55a1046d85bd78244d25617358f48619785f8'/>
<id>urn:sha1:f5f55a1046d85bd78244d25617358f48619785f8</id>
<content type='text'>
"git &lt;cmd&gt; @{push}" on a detached HEAD used to segfault; it has
been corrected to error out with a message.

* km/branch-get-push-while-detached:
  branch_get_push: do not segfault when HEAD is detached
</content>
</entry>
<entry>
<title>branch_get_push: do not segfault when HEAD is detached</title>
<updated>2017-01-08T03:20:07Z</updated>
<author>
<name>Kyle Meyer</name>
<email>kyle@kyleam.com</email>
</author>
<published>2017-01-07T01:12:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b10731f43dc21fa47c275052e7c074c686335cd3'/>
<id>urn:sha1:b10731f43dc21fa47c275052e7c074c686335cd3</id>
<content type='text'>
Move the detached HEAD check from branch_get_push_1() to
branch_get_push() to avoid setting branch-&gt;push_tracking_ref when
branch is NULL.

Signed-off-by: Kyle Meyer &lt;kyle@kyleam.com&gt;
Reviewed-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>use strbuf_addstr() for adding constant strings to a strbuf, part 2</title>
<updated>2016-09-15T19:23:38Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2016-09-15T18:31:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a22ae753cb297cb8a1e3ae950ae4415190cd51d5'/>
<id>urn:sha1:a22ae753cb297cb8a1e3ae950ae4415190cd51d5</id>
<content type='text'>
Replace uses of strbuf_addf() for adding strings with more lightweight
strbuf_addstr() calls.  This makes the intent clearer and avoids
potential issues with printf format specifiers.

02962d36845b89145cd69f8bc65e015d78ae3434 already converted six cases,
this patch covers eleven more.

A semantic patch for Coccinelle is included for easier checking for
new cases that might be introduced in the future.

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 'jk/push-force-with-lease-creation' into maint</title>
<updated>2016-09-09T04:35:53Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-09-09T04:35:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f34d900aa7346592a9d7fd2eb7b21126fd9732d5'/>
<id>urn:sha1:f34d900aa7346592a9d7fd2eb7b21126fd9732d5</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>push: allow pushing new branches with --force-with-lease</title>
<updated>2016-07-26T20:48:28Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2016-07-26T20:44:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=64ac39af7020f3a8bc52d51137804ce9f46baf66'/>
<id>urn:sha1:64ac39af7020f3a8bc52d51137804ce9f46baf66</id>
<content type='text'>
If there is no upstream information for a branch, it is likely that it
is newly created and can safely be pushed under the normal fast-forward
rules.  Relax the --force-with-lease check so that we do not reject
these branches immediately but rather attempt to push them as new
branches, using the null SHA-1 as the expected value.

In fact, it is already possible to push new branches using the explicit
--force-with-lease=&lt;branch&gt;:&lt;expect&gt; syntax, so all we do here is make
this behaviour the default if no explicit "expect" value is specified.

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>push: add shorthand for --force-with-lease branch creation</title>
<updated>2016-07-26T20:48:09Z</updated>
<author>
<name>John Keeping</name>
<email>john@keeping.me.uk</email>
</author>
<published>2016-07-26T20:44:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=eee98e74f928a49c310038c77026ebc04e6cf4b2'/>
<id>urn:sha1:eee98e74f928a49c310038c77026ebc04e6cf4b2</id>
<content type='text'>
Allow the empty string to stand in for the null SHA-1 when pushing a new
branch, like we do when deleting branches.

This means that the following command ensures that `new-branch` is
created on the remote (that is, is must not already exist):

	git push --force-with-lease=new-branch: origin new-branch

Signed-off-by: John Keeping &lt;john@keeping.me.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'nd/remote-plural-ours-plus-theirs' into maint</title>
<updated>2016-05-26T20:17:18Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-05-26T20:17:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4e327bb4c251fc642660e35252543c830d2ca2b7'/>
<id>urn:sha1:4e327bb4c251fc642660e35252543c830d2ca2b7</id>
<content type='text'>
Message fix.

* nd/remote-plural-ours-plus-theirs:
  remote.c: specify correct plural form in "commit diverge" message
</content>
</entry>
<entry>
<title>Merge branch 'jk/fix-attribute-macro-in-2.5' into HEAD</title>
<updated>2016-05-18T21:40:12Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-05-18T21:40:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9ba3b14c64345838310797d5a5cebbf12e2daca3'/>
<id>urn:sha1:9ba3b14c64345838310797d5a5cebbf12e2daca3</id>
<content type='text'>
Code fixup.

* jk/fix-attribute-macro-in-2.5:
  remote.c: spell __attribute__ correctly
</content>
</entry>
<entry>
<title>Merge branch 'nd/remote-plural-ours-plus-theirs'</title>
<updated>2016-05-17T21:38:24Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-05-17T21:38:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7a7d0854ff3cb1bc5b95e9295b9c11089d9a75a6'/>
<id>urn:sha1:7a7d0854ff3cb1bc5b95e9295b9c11089d9a75a6</id>
<content type='text'>
Message fix.

* nd/remote-plural-ours-plus-theirs:
  remote.c: specify correct plural form in "commit diverge" message
</content>
</entry>
<entry>
<title>remote.c: specify correct plural form in "commit diverge" message</title>
<updated>2016-05-06T19:52:58Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2016-05-03T00:12:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f54bea44a58caddaaf83644d95172740e8490206'/>
<id>urn:sha1:f54bea44a58caddaaf83644d95172740e8490206</id>
<content type='text'>
We need to count both "ours" and "theirs" commits when selecting plural
form for this message. Note that even though in this block, both ours
and theirs must be positive (i.e. can't be in singular form), we still
keep Q_(singular, plural) because languages other than English may have
more than one plural form.

Reported-by: Alfonsogonzalez, Ernesto (GE Digital) &lt;ernesto.alfonsogonzalez@ge.com&gt;
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>
</feed>
