<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/bundle.c, branch v1.8.2.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.8.2.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.8.2.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2013-04-07T21:45:56Z</updated>
<entry>
<title>bundle: Accept prerequisites without commit messages</title>
<updated>2013-04-07T21:45:56Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>git@cryptocrack.de</email>
</author>
<published>2013-04-07T11:53:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5446e33f35d6b27b6b760a59a6ded33fbd555190'/>
<id>urn:sha1:5446e33f35d6b27b6b760a59a6ded33fbd555190</id>
<content type='text'>
While explicitly stating that the commit message in a prerequisite
line is optional, we required all lines with 40 or more characters
to contain a space after the object name, bailing out if a line
consisted of an object name only. This was to allow bundling a
history to a commit without an message, but the code forgot that it
already called rtrim() to remove that whitespace.

As a workaround, only check for SP when the line has more than 40
characters.

Signed-off-by: Lukas Fleischer &lt;git@cryptocrack.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/fully-peeled-packed-ref' into maint-1.8.1</title>
<updated>2013-04-03T15:43:03Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-04-03T15:43:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f1ad05f3a524a8750533d8263ceb584a9e7ec573'/>
<id>urn:sha1:f1ad05f3a524a8750533d8263ceb584a9e7ec573</id>
<content type='text'>
* jk/fully-peeled-packed-ref:
  pack-refs: add fully-peeled trait
  pack-refs: write peeled entry for non-tags
  use parse_object_or_die instead of die("bad object")
  avoid segfaults on parse_object failure
</content>
</entry>
<entry>
<title>avoid segfaults on parse_object failure</title>
<updated>2013-03-17T19:49:03Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2013-03-17T08:22:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=75a95490474ab6e991cbbbd10d980498a9109648'/>
<id>urn:sha1:75a95490474ab6e991cbbbd10d980498a9109648</id>
<content type='text'>
Many call-sites of parse_object assume that they will get a
non-NULL return value; this is not the case if we encounter
an error while parsing the object.

This patch adds a wrapper function around parse_object that
handles dying automatically, and uses it anywhere we
immediately try to access the return value as a non-NULL
pointer (i.e., anywhere that we would currently segfault).

This wrapper may also be useful in other places. The most
obvious one is code like:

  o = parse_object(sha1);
  if (!o)
	  die(...);

However, these should not be mechanically converted to
parse_object_or_die, as the die message is sometimes
customized. Later patches can address these sites on a
case-by-case basis.

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>bundle: Add colons to list headings in "verify"</title>
<updated>2013-03-08T18:06:53Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>git@cryptocrack.de</email>
</author>
<published>2013-03-08T18:01:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a02ffe0e1a19c9594af3e81f4e04b46eabe4755a'/>
<id>urn:sha1:a02ffe0e1a19c9594af3e81f4e04b46eabe4755a</id>
<content type='text'>
These slightly improve the reading flow by making it obvious that a list
follows.

Also, make the wording of both headings consistent by changing "contains
%d ref(s)" to "contains this ref"/"contains these %d refs".

Signed-off-by: Lukas Fleischer &lt;git@cryptocrack.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>bundle: Fix "verify" output if history is complete</title>
<updated>2013-03-07T21:33:56Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>git@cryptocrack.de</email>
</author>
<published>2013-03-07T00:56:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=71ba6b10f81ac8afcb0ba376f6691afe1269467c'/>
<id>urn:sha1:71ba6b10f81ac8afcb0ba376f6691afe1269467c</id>
<content type='text'>
A more informative message for "complete" bundles was added in commit
8c3710fd3011 (tweak "bundle verify" of a complete history, 2012-06-04).

However, the prerequisites ref list is currently read *after* we
check if it equals zero, which means we never actually use the
number of prerequisite refs to decide when to print the newly
introduced message.  The code incorrectly uses the number of
references recorded in the bundle instead.

Signed-off-by: Lukas Fleischer &lt;git@cryptocrack.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>tweak "bundle verify" of a complete history</title>
<updated>2012-06-04T23:24:49Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-06-04T18:51:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8c3710fd3011d75b9768749bfaf5ac2f31b96085'/>
<id>urn:sha1:8c3710fd3011d75b9768749bfaf5ac2f31b96085</id>
<content type='text'>
A bundle that records a complete history without prerequiste is a
useful way to sneakernet the sources of your configuration files
under your home directory, etc.  E.g.

    $ GIT_DIR=/srv/git/homesrc.git git bundle create x.bndl HEAD master

Running "git bundle verify" on such a "complete" bundle, however,
gives somewhat a funny output.

    $ git bundle verify x.bndl
    The bundle contains 2 refs
    b2611f37ebc7ed6435a72d77fbc5f8b48a7d7146 HEAD
    b2611f37ebc7ed6435a72d77fbc5f8b48a7d7146 refs/heads/master
    The bundle requires these 0 refs
    x.bndl is okay

Reword "requires these 0 refs" to say "The bundle records a complete
history" instead.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'nd/i18n'</title>
<updated>2012-05-02T20:51:35Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-05-02T20:51:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1be65eda6a7018445ebdd9cfec4b1caab4db34ba'/>
<id>urn:sha1:1be65eda6a7018445ebdd9cfec4b1caab4db34ba</id>
<content type='text'>
More message strings marked for i18n.

By Nguyễn Thái Ngọc Duy (10) and Jonathan Nieder (1)
* nd/i18n:
  help: replace underlining "help -a" headers using hyphens with a blank line
  i18n: bundle: mark strings for translation
  i18n: index-pack: mark strings for translation
  i18n: apply: update say_patch_name to give translators complete sentence
  i18n: apply: mark strings for translation
  i18n: remote: mark strings for translation
  i18n: make warn_dangling_symref() automatically append \n
  i18n: help: mark strings for translation
  i18n: mark relative dates for translation
  strbuf: convenience format functions with \n automatically appended
  Makefile: feed all header files to xgettext
</content>
</entry>
<entry>
<title>Sync with 1.7.8.6</title>
<updated>2012-04-26T17:22:20Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-04-26T17:22:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b2bab5b338b30d45e338c8df3c15e6483d6bb11e'/>
<id>urn:sha1:b2bab5b338b30d45e338c8df3c15e6483d6bb11e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Sync with 1.7.7.7</title>
<updated>2012-04-26T16:52:33Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-04-26T16:52:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=aba5f57c8fbb04abc5d286310969c1f767793930'/>
<id>urn:sha1:aba5f57c8fbb04abc5d286310969c1f767793930</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bundle: remove stray single-quote from error message</title>
<updated>2012-04-26T15:08:07Z</updated>
<author>
<name>Jonathan Nieder</name>
<email>jrnieder@gmail.com</email>
</author>
<published>2012-04-26T05:53:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=97afde15f58728138f8e178b2acb7c72473f7d96'/>
<id>urn:sha1:97afde15f58728138f8e178b2acb7c72473f7d96</id>
<content type='text'>
After running rev-list --boundary to retrieve the list of boundary
commits, "git bundle create" runs its own revision walk.  If in this
stage git encounters an unfamiliar option, it writes a message with an
unbalanced quotation mark:

	error: unrecognized argument: --foo'

Drop the stray quote to match the "unrecognized argument: %s" message
used elsewhere and save translators some work.

This is mostly a futureproofing measure: for now, the "rev-list
--boundary" command catches most strange arguments on its own and the
above message is not seen unless you try something esoteric like "git
bundle create test.bundle --header HEAD".

Reported-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Signed-off-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
