<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/object.h, 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-03-17T19:49:03Z</updated>
<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>Teach revision walking machinery to walk multiple times sequencially</title>
<updated>2012-03-30T15:57:49Z</updated>
<author>
<name>Heiko Voigt</name>
<email>hvoigt@hvoigt.net</email>
</author>
<published>2012-03-29T07:21:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bcc0a3ea38a42a64878e11c5244ef2fcc967e05d'/>
<id>urn:sha1:bcc0a3ea38a42a64878e11c5244ef2fcc967e05d</id>
<content type='text'>
Previously it was not possible to iterate revisions twice using the
revision walking api. We add a reset_revision_walk() which clears the
used flags. This allows us to do multiple sequencial revision walks.

We add the appropriate calls to the existing submodule machinery doing
revision walks. This is done to avoid surprises if future code wants to
call these functions more than once during the processes lifetime.

Signed-off-by: Heiko Voigt &lt;hvoigt@hvoigt.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>object.h: Remove obsolete struct object_refs</title>
<updated>2011-03-14T17:49:28Z</updated>
<author>
<name>Jakob Pfender</name>
<email>jpfender@elegosoft.com</email>
</author>
<published>2011-03-14T16:23:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0564d937bfac6729dac8ea5a2b15de52fcd4b8ec'/>
<id>urn:sha1:0564d937bfac6729dac8ea5a2b15de52fcd4b8ec</id>
<content type='text'>
7914053 (Remove unused object-ref code, 2008-02-25) removed all uses of
the structure from the code, but forgot to remove the type definition
itself.

Signed-off-by: Jakob Pfender &lt;jpfender@elegosoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>object.h: Add OBJECT_ARRAY_INIT macro and make use of it.</title>
<updated>2010-08-30T05:42:49Z</updated>
<author>
<name>Thiago Farina</name>
<email>tfransosi@gmail.com</email>
</author>
<published>2010-08-29T02:04:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3cd474599f1ede41863c523ddf76c94941b08164'/>
<id>urn:sha1:3cd474599f1ede41863c523ddf76c94941b08164</id>
<content type='text'>
Signed-off-by: Thiago Farina &lt;tfransosi@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>object.c: remove unused functions</title>
<updated>2010-01-18T06:49:36Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-01-12T05:15:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c76189875b35ca04d42df915cd902a33fdbcb9b0'/>
<id>urn:sha1:c76189875b35ca04d42df915cd902a33fdbcb9b0</id>
<content type='text'>
object_list_append() and object_list_length}() are not used anywhere.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'js/maint-all-implies-HEAD'</title>
<updated>2009-01-26T01:13:02Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-01-26T01:13:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f18e6bef23809d2823c1a687f375b22c6af0e735'/>
<id>urn:sha1:f18e6bef23809d2823c1a687f375b22c6af0e735</id>
<content type='text'>
* js/maint-all-implies-HEAD:
  bundle: allow the same ref to be given more than once
  revision walker: include a detached HEAD in --all
</content>
</entry>
<entry>
<title>bundle: allow the same ref to be given more than once</title>
<updated>2009-01-18T07:00:31Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-01-18T06:27:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b2a6d1c6868b6d5e7d2b4fa9129341220a1e848a'/>
<id>urn:sha1:b2a6d1c6868b6d5e7d2b4fa9129341220a1e848a</id>
<content type='text'>
"git bundle create x master master" used to create a bundle that lists
the same branch (master) twice.  Cloning from such a bundle resulted in
a needless warning "warning: Duplicated ref: refs/remotes/origin/master".

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Fix git-diff-tree --stdin</title>
<updated>2008-09-10T22:00:17Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-09-10T19:22:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=628b06d7d75588bbe37dfb7ecac19d2694884d66'/>
<id>urn:sha1:628b06d7d75588bbe37dfb7ecac19d2694884d66</id>
<content type='text'>
140b378 (Teach git diff-tree --stdin to diff trees, 2008-08-10) broke the
more important case of reading series of commits to filter ones that touch
given pathspecs.

Noticed by Mark Levedahl, running "gitk ec3a4ba" and trying to focus on
commits that touch "t/" directory.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Remove unused object-ref code</title>
<updated>2008-02-26T07:57:35Z</updated>
<author>
<name>Martin Koegler</name>
<email>mkoegler@auto.tuwien.ac.at</email>
</author>
<published>2008-02-25T21:46:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7914053ba9901be1f1530f46e8e2e6ee6f4ae5b1'/>
<id>urn:sha1:7914053ba9901be1f1530f46e8e2e6ee6f4ae5b1</id>
<content type='text'>
Signed-off-by: Martin Koegler &lt;mkoegler@auto.tuwien.ac.at&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>War on whitespace</title>
<updated>2007-06-07T07:04:01Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2007-06-07T07:04:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a6080a0a44d5ead84db3dabbbc80e82df838533d'/>
<id>urn:sha1:a6080a0a44d5ead84db3dabbbc80e82df838533d</id>
<content type='text'>
This uses "git-apply --whitespace=strip" to fix whitespace errors that have
crept in to our source files over time.  There are a few files that need
to have trailing whitespaces (most notably, test vectors).  The results
still passes the test, and build result in Documentation/ area is unchanged.

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