<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/commit.h, branch v1.7.8.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://www.git.shady.money/git/atom?h=v1.7.8.2</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v1.7.8.2'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2011-10-14T02:03:22Z</updated>
<entry>
<title>Merge branch 'rs/pending'</title>
<updated>2011-10-14T02:03:22Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-10-14T02:03:22Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=0941d6054524bc91f45bf3cbb1c641712b0e0e6d'/>
<id>urn:sha1:0941d6054524bc91f45bf3cbb1c641712b0e0e6d</id>
<content type='text'>
* rs/pending:
  commit: factor out clear_commit_marks_for_object_array
  checkout: use leak_pending flag
  bundle: use leak_pending flag
  bisect: use leak_pending flag
  revision: add leak_pending flag
  checkout: use add_pending_{object,sha1} in orphan check
  revision: factor out add_pending_sha1
  checkout: check for "Previous HEAD" notice in t2020

Conflicts:
	builtin/checkout.c
	revision.c
</content>
</entry>
<entry>
<title>Merge branch 'nd/maint-autofix-tag-in-head'</title>
<updated>2011-10-14T02:03:19Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-10-14T02:03:19Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=0fd8cb3fec7abb36505a150fe5cfa9b1d8b85496'/>
<id>urn:sha1:0fd8cb3fec7abb36505a150fe5cfa9b1d8b85496</id>
<content type='text'>
* nd/maint-autofix-tag-in-head:
  Accept tags in HEAD or MERGE_HEAD
  merge: remove global variable head[]
  merge: use return value of resolve_ref() to determine if HEAD is invalid
  merge: keep stash[] a local variable

Conflicts:
	builtin/merge.c
</content>
</entry>
<entry>
<title>commit: factor out clear_commit_marks_for_object_array</title>
<updated>2011-10-03T18:15:34Z</updated>
<author>
<name>René Scharfe</name>
<email>rene.scharfe@lsrfire.ath.cx</email>
</author>
<published>2011-10-01T16:16:08Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=86a0a408b900eecc9d0d4a1eb8ae223181e96679'/>
<id>urn:sha1:86a0a408b900eecc9d0d4a1eb8ae223181e96679</id>
<content type='text'>
Factor out the code to clear the commit marks for a whole struct
object_array from builtin/checkout.c into its own exported function
clear_commit_marks_for_object_array and use it in bisect and bundle
as well.  It handles tags and commits and ignores objects of any
other type.

Signed-off-by: Rene Scharfe &lt;rene.scharfe@lsrfire.ath.cx&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Accept tags in HEAD or MERGE_HEAD</title>
<updated>2011-09-18T21:11:40Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2011-09-17T11:57:45Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=baf18fc261ca475343fe3cb9cd2c0dded4bc1bb7'/>
<id>urn:sha1:baf18fc261ca475343fe3cb9cd2c0dded4bc1bb7</id>
<content type='text'>
HEAD and MERGE_HEAD (among other branch tips) should never hold a
tag. That can only be caused by broken tools and is cumbersome to fix
by an end user with:

  $ git update-ref HEAD $(git rev-parse HEAD^{commit})

which may look like a magic to a new person.

Be easy, warn users (so broken tools can be fixed if they bother to
report) and move on.

Be robust, if the given SHA-1 cannot be resolved to a commit object,
die (therefore return value is always valid).

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>Move write_shallow_commits to fetch-pack.c</title>
<updated>2011-08-18T18:01:18Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2011-08-18T12:29:36Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=294e15fc19b5ba370b703d003920d000a4f5547a'/>
<id>urn:sha1:294e15fc19b5ba370b703d003920d000a4f5547a</id>
<content type='text'>
This function produces network traffic and should be in fetch-pack. It
has been in commit.c because it needs to iterate (private) graft
list. It can now do so using for_each_commit_graft().

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>Add for_each_commit_graft() to iterate all grafts</title>
<updated>2011-08-18T18:00:14Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2011-08-18T12:29:35Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=09d46644b780ede1a6b757db3e1a1ae9c1128a13'/>
<id>urn:sha1:09d46644b780ede1a6b757db3e1a1ae9c1128a13</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>Merge branch 'jk/format-patch-am'</title>
<updated>2011-05-31T19:19:11Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-05-31T19:19:11Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=f67d2e82d6d2fd385d3d20e8d348eaf69dc95041'/>
<id>urn:sha1:f67d2e82d6d2fd385d3d20e8d348eaf69dc95041</id>
<content type='text'>
* jk/format-patch-am:
  format-patch: preserve subject newlines with -k
  clean up calling conventions for pretty.c functions
  pretty: add pp_commit_easy function for simple callers
  mailinfo: always clean up rfc822 header folding
  t: test subject handling in format-patch / am pipeline

Conflicts:
	builtin/branch.c
	builtin/log.c
	commit.h
</content>
</entry>
<entry>
<title>format-patch: preserve subject newlines with -k</title>
<updated>2011-05-26T22:56:55Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2011-05-26T22:28:17Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=9553d2b26395d9a19bf60875784661090f607f4a'/>
<id>urn:sha1:9553d2b26395d9a19bf60875784661090f607f4a</id>
<content type='text'>
In older versions of git, we used rfc822 header folding to
indicate that the original subject line had multiple lines
in it.  But since a1f6baa (format-patch: wrap long header
lines, 2011-02-23), we now use header folding whenever there
is a long line.

This means that "git am" cannot trust header folding as a
sign from format-patch that newlines should be preserved.
Instead, format-patch needs to signal more explicitly that
the newlines are significant.  This patch does so by
rfc2047-encoding the newlines in the subject line. No
changes are needed on the "git am" end; it already decodes
the newlines properly.

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>clean up calling conventions for pretty.c functions</title>
<updated>2011-05-26T22:56:47Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2011-05-26T22:27:49Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=6bf139440c192e157b9c0dab701fa2100fbb1e1e'/>
<id>urn:sha1:6bf139440c192e157b9c0dab701fa2100fbb1e1e</id>
<content type='text'>
We have a pretty_print_context representing the parameters
for a pretty-print session, but we did not use it uniformly.
As a result, functions kept growing more and more arguments.

Let's clean this up in a few ways:

  1. All pretty-print pp_* functions now take a context.
     This lets us reduce the number of arguments to these
     functions, since we were just passing around the
     context values separately.

  2. The context argument now has a cmit_fmt field, which
     was passed around separately. That's one less argument
     per function.

  3. The context argument always comes first, which makes
     calling a little more uniform.

This drops lines from some callers, and adds lines in a few
places (because we need an extra line to set the context's
fmt field). Overall, we don't save many lines, but the lines
that are there are a lot simpler and more readable.

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>pretty: add pp_commit_easy function for simple callers</title>
<updated>2011-05-26T22:47:20Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2011-05-26T22:27:24Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=8b8a53744f60274ef07e3a2a51995129c8d42f38'/>
<id>urn:sha1:8b8a53744f60274ef07e3a2a51995129c8d42f38</id>
<content type='text'>
Many callers don't actually care about the pretty print
context at all; let's just give them a simple way of
pretty-printing a commit without having to create a context
struct.

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