<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/commit.c, branch v1.7.0.5</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.0.5</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v1.7.0.5'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2010-01-30T07:36:13Z</updated>
<entry>
<title>Merge branch 'maint-1.6.5' into maint</title>
<updated>2010-01-30T07:36:13Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-01-30T07:36:13Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=3325cea0f7ef7355f6806b2fc88acdb2e27785ac'/>
<id>urn:sha1:3325cea0f7ef7355f6806b2fc88acdb2e27785ac</id>
<content type='text'>
* maint-1.6.5:
  fix memcpy of overlapping area
</content>
</entry>
<entry>
<title>fix memcpy of overlapping area</title>
<updated>2010-01-29T17:52:21Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2010-01-29T10:28:44Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=65d41d48a4e4e795d64dd7842a44d693b741bf31'/>
<id>urn:sha1:65d41d48a4e4e795d64dd7842a44d693b741bf31</id>
<content type='text'>
Caught by valgrind in t5500, but it is pretty obvious from
reading the code that this is shifting elements of an array
to the left, which needs memmove.

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 'jh/notes' (early part)</title>
<updated>2009-11-21T07:53:55Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-11-21T07:53:55Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=885d492f69a80ae3e91c1310a63caf0aeb567f2a'/>
<id>urn:sha1:885d492f69a80ae3e91c1310a63caf0aeb567f2a</id>
<content type='text'>
* 'jh/notes' (early part):
  Add selftests verifying concatenation of multiple notes for the same commit
  Refactor notes code to concatenate multiple notes annotating the same object
  Add selftests verifying that we can parse notes trees with various fanouts
  Teach the notes lookup code to parse notes trees with various fanout schemes
  Teach notes code to free its internal data structures on request
  Add '%N'-format for pretty-printing commit notes
  Add flags to get_commit_notes() to control the format of the note string
  t3302-notes-index-expensive: Speed up create_repo()
  fast-import: Add support for importing commit notes
  Teach "-m &lt;msg&gt;" and "-F &lt;file&gt;" to "git notes edit"
  Add an expensive test for git-notes
  Speed up git notes lookup
  Add a script to edit/inspect notes
  Introduce commit notes

Conflicts:
	.gitignore
	Documentation/pretty-formats.txt
	pretty.c
</content>
</entry>
<entry>
<title>Merge branch 'sp/smart-http'</title>
<updated>2009-11-21T07:51:23Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-11-21T07:51:23Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=905bf7742cf5f4a6dea2e75ba2dbd89d5dfaa793'/>
<id>urn:sha1:905bf7742cf5f4a6dea2e75ba2dbd89d5dfaa793</id>
<content type='text'>
* sp/smart-http: (37 commits)
  http-backend: Let gcc check the format of more printf-type functions.
  http-backend: Fix access beyond end of string.
  http-backend: Fix bad treatment of uintmax_t in Content-Length
  t5551-http-fetch: Work around broken Accept header in libcurl
  t5551-http-fetch: Work around some libcurl versions
  http-backend: Protect GIT_PROJECT_ROOT from /../ requests
  Git-aware CGI to provide dumb HTTP transport
  http-backend: Test configuration options
  http-backend: Use http.getanyfile to disable dumb HTTP serving
  test smart http fetch and push
  http tests: use /dumb/ URL prefix
  set httpd port before sourcing lib-httpd
  t5540-http-push: remove redundant fetches
  Smart HTTP fetch: gzip requests
  Smart fetch over HTTP: client side
  Smart push over HTTP: client side
  Discover refs via smart HTTP server when available
  http-backend: more explict LocationMatch
  http-backend: add example for gitweb on same URL
  http-backend: use mod_alias instead of mod_rewrite
  ...

Conflicts:
	.gitignore
	remote-curl.c
</content>
</entry>
<entry>
<title>Merge branch 'jc/maint-1.6.3-graft-trailing-space' into maint</title>
<updated>2009-11-16T00:38:47Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-11-16T00:38:47Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=dd2195eb80ee5753e41d9688ddf6758a142a14df'/>
<id>urn:sha1:dd2195eb80ee5753e41d9688ddf6758a142a14df</id>
<content type='text'>
* jc/maint-1.6.3-graft-trailing-space:
  info/grafts: allow trailing whitespaces at the end of line
</content>
</entry>
<entry>
<title>Merge branch 'jc/maint-1.6.3-graft-trailing-space'</title>
<updated>2009-10-31T03:07:08Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-10-31T03:07:08Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=97d484bea211f6d16c52d153ae02ea7a42668330'/>
<id>urn:sha1:97d484bea211f6d16c52d153ae02ea7a42668330</id>
<content type='text'>
* jc/maint-1.6.3-graft-trailing-space:
  info/grafts: allow trailing whitespaces at the end of line
</content>
</entry>
<entry>
<title>fetch-pack: Use a strbuf to compose the want list</title>
<updated>2009-10-31T02:20:53Z</updated>
<author>
<name>Shawn O. Pearce</name>
<email>spearce@spearce.org</email>
</author>
<published>2009-10-31T00:47:23Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=edace6f02eeae6f4a06ed1e4f6308703523d8535'/>
<id>urn:sha1:edace6f02eeae6f4a06ed1e4f6308703523d8535</id>
<content type='text'>
This change is being offered as a refactoring to make later
commits in the smart HTTP series easier.

By changing the enabled capabilities to be formatted in a strbuf
it is easier to add a new capability to the set of supported
capabilities.

By formatting the want portion of the request into a strbuf and
writing it as a whole block we can later decide to hold onto
the req_buf (instead of releasing it) to recycle in stateless
communications.

Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Introduce commit notes</title>
<updated>2009-10-20T01:59:42Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2009-10-09T10:21:57Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=a97a74686d70a318cd802003498054cc1e8b0ae2'/>
<id>urn:sha1:a97a74686d70a318cd802003498054cc1e8b0ae2</id>
<content type='text'>
Commit notes are blobs which are shown together with the commit
message.  These blobs are taken from the notes ref, which you can
configure by the config variable core.notesRef, which in turn can
be overridden by the environment variable GIT_NOTES_REF.

The notes ref is a branch which contains "files" whose names are
the names of the corresponding commits (i.e. the SHA-1).

The rationale for putting this information into a ref is this: we
want to be able to fetch and possibly union-merge the notes,
maybe even look at the date when a note was introduced, and we
want to store them efficiently together with the other objects.

This patch has been improved by the following contributions:
- Thomas Rast: fix core.notesRef documentation
- Tor Arne Vestbø: fix printing of multi-line notes
- Alex Riesen: Using char array instead of char pointer costs less BSS
- Johan Herland: Plug leak when msg is good, but msglen or type causes return

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Thomas Rast &lt;trast@student.ethz.ch&gt;
Signed-off-by: Tor Arne Vestbø &lt;tavestbo@trolltech.com&gt;
Signed-off-by: Johan Herland &lt;johan@herland.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;

get_commit_notes(): Plug memory leak when 'if' triggers, but not because of read_sha1_file() failure
</content>
</entry>
<entry>
<title>info/grafts: allow trailing whitespaces at the end of line</title>
<updated>2009-10-15T06:47:03Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-10-14T18:51:03Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=fe0a3cb23c7930be419937825591388465ceb47f'/>
<id>urn:sha1:fe0a3cb23c7930be419937825591388465ceb47f</id>
<content type='text'>
When creating an info/grafts under windows, one typically gets a CRLF file.
There is no good reason to forbid trailing CR at the end of the line (for
that matter, any trailing whitespaces); the code allowed only LF simply
because that was good enough for the platforms with LF line endings.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>use write_str_in_full helper to avoid literal string lengths</title>
<updated>2009-09-13T08:31:10Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2009-09-12T08:54:32Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=2b7ca830c6a6e4f0e1722e24973a026b5b867227'/>
<id>urn:sha1:2b7ca830c6a6e4f0e1722e24973a026b5b867227</id>
<content type='text'>
In 2d14d65 (Use a clearer style to issue commands to remote helpers,
2009-09-03) I happened to notice two changes like this:

-	write_in_full(helper-&gt;in, "list\n", 5);
+
+	strbuf_addstr(&amp;buf, "list\n");
+	write_in_full(helper-&gt;in, buf.buf, buf.len);
+	strbuf_reset(&amp;buf);

IMHO, it would be better to define a new function,

    static inline ssize_t write_str_in_full(int fd, const char *str)
    {
           return write_in_full(fd, str, strlen(str));
    }

and then use it like this:

-       strbuf_addstr(&amp;buf, "list\n");
-       write_in_full(helper-&gt;in, buf.buf, buf.len);
-       strbuf_reset(&amp;buf);
+       write_str_in_full(helper-&gt;in, "list\n");

Thus not requiring the added allocation, and still avoiding
the maintenance risk of literal string lengths.
These days, compilers are good enough that strlen("literal")
imposes no run-time cost.

Transformed via this:

    perl -pi -e \
        's/write_in_full\((.*?), (".*?"), \d+\)/write_str_in_full($1, $2)/'\
      $(git grep -l 'write_in_full.*"')

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