<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/remote.c, branch v2.10.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.10.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.10.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2016-09-15T19:23:38Z</updated>
<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'</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>
<entry>
<title>Merge branch 'jk/fix-attribute-macro-in-2.5'</title>
<updated>2016-05-03T21:08:15Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-05-03T21:08:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=643318913fc791790eb30a78531f7ae4eed7155d'/>
<id>urn:sha1:643318913fc791790eb30a78531f7ae4eed7155d</id>
<content type='text'>
Code fixup.

* jk/fix-attribute-macro-in-2.5:
  remote.c: spell __attribute__ correctly
</content>
</entry>
<entry>
<title>remote.c: spell __attribute__ correctly</title>
<updated>2016-04-25T22:32:23Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2016-04-25T21:15:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=060e7766ba34dc4fef351494239235ba365edd18'/>
<id>urn:sha1:060e7766ba34dc4fef351494239235ba365edd18</id>
<content type='text'>
We want to tell the compiler that error_buf() uses
printf()-style arguments via the __attribute__ mechanism,
but the original commit (3a429d0), forgot the trailing "__".
This happens to work with real GNUC-compatible compilers
like gcc and clang, but confuses our fallback macro in
git-compat-util.h, which only matches the official name (and
thus the build fails on compilers like Visual Studio).

Reported-by: Philip Oakley &lt;philipoakley@iee.org&gt;
Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/tighten-alloc' into maint</title>
<updated>2016-03-10T19:13:43Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-03-10T19:13:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b7a6ec609ff10652541e7f716fcecf7865b94b23'/>
<id>urn:sha1:b7a6ec609ff10652541e7f716fcecf7865b94b23</id>
<content type='text'>
* jk/tighten-alloc: (23 commits)
  compat/mingw: brown paper bag fix for 50a6c8e
  ewah: convert to REALLOC_ARRAY, etc
  convert ewah/bitmap code to use xmalloc
  diff_populate_gitlink: use a strbuf
  transport_anonymize_url: use xstrfmt
  git-compat-util: drop mempcpy compat code
  sequencer: simplify memory allocation of get_message
  test-path-utils: fix normalize_path_copy output buffer size
  fetch-pack: simplify add_sought_entry
  fast-import: simplify allocation in start_packfile
  write_untracked_extension: use FLEX_ALLOC helper
  prepare_{git,shell}_cmd: use argv_array
  use st_add and st_mult for allocation size computation
  convert trivial cases to FLEX_ARRAY macros
  use xmallocz to avoid size arithmetic
  convert trivial cases to ALLOC_ARRAY
  convert manual allocations to argv_array
  argv-array: add detach function
  add helpers for allocating flex-array structs
  harden REALLOC_ARRAY and xcalloc against size_t overflow
  ...
</content>
</entry>
<entry>
<title>remote: don't resolve HEAD in non-repository</title>
<updated>2016-03-07T01:18:40Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2016-03-05T22:11:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f2f12d169aa607604edbd942675026174f061e3f'/>
<id>urn:sha1:f2f12d169aa607604edbd942675026174f061e3f</id>
<content type='text'>
The remote-config code wants to look at HEAD to mark the
current branch specially. But if we are not in a repository
(e.g., running "git archive --remote"), this makes no sense;
there is no HEAD to look at, and we have no current branch.

This doesn't really cause any bugs in practice (if you are
not in a repo, you probably don't have a .git/HEAD file),
but we should be more careful about triggering the refs code
at all in a non-repo. As we grow new ref backends, we would
not even know which backend to use.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
