<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/http-push.c, branch v1.5.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.5.2</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v1.5.2'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2007-04-05T22:39:12Z</updated>
<entry>
<title>Fix lseek(2) calls with args 2 and 3 swapped</title>
<updated>2007-04-05T22:39:12Z</updated>
<author>
<name>Dana How</name>
<email>how@deathvalley.cswitch.com</email>
</author>
<published>2007-04-05T19:05:57Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=b5da24679ec73f458988523dce9dd17b4e9b0e02'/>
<id>urn:sha1:b5da24679ec73f458988523dce9dd17b4e9b0e02</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Initialize tree descriptors with a helper function rather than by hand.</title>
<updated>2007-03-21T17:21:57Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2007-03-21T17:08:25Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=6fda5e5180c2e7c130978361aea53b4e66f36823'/>
<id>urn:sha1:6fda5e5180c2e7c130978361aea53b4e66f36823</id>
<content type='text'>
This removes slightly more lines than it adds, but the real reason for
doing this is that future optimizations will require more setup of the
tree descriptor, and so we want to do it in one place.

Also renamed the "desc.buf" field to "desc.buffer" just to trigger
compiler errors for old-style manual initializations, making sure I
didn't miss anything.

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Merge branch 'maint'</title>
<updated>2007-03-02T08:31:51Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2007-03-02T08:31:51Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=8b969a5fb5e5891d9ad4c236fd9487c4673bfa2a'/>
<id>urn:sha1:8b969a5fb5e5891d9ad4c236fd9487c4673bfa2a</id>
<content type='text'>
* maint:
  Another memory overrun in http-push.c
  fetch.o depends on the headers, too.
  Documentation: Correct minor typo in git-add documentation.
  Documentation/git-send-email.txt: Fix labeled list formatting
  Documentation/git-quiltimport.txt: Fix labeled list formatting
  Documentation/build-docdep.perl: Fix dependencies for included asciidoc files
</content>
</entry>
<entry>
<title>Another memory overrun in http-push.c</title>
<updated>2007-03-02T08:10:12Z</updated>
<author>
<name>Eygene Ryabinkin</name>
<email>rea-git@codelabs.ru</email>
</author>
<published>2007-03-01T16:09:12Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=eecc8367f4eaafc8449fc08c4e33f3f8ac474469'/>
<id>urn:sha1:eecc8367f4eaafc8449fc08c4e33f3f8ac474469</id>
<content type='text'>
Use of strlcpy() are wrong, as the source buffer at these
locations may not be NUL-terminated.
</content>
</entry>
<entry>
<title>Merge branch 'maint'</title>
<updated>2007-02-28T22:18:57Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2007-02-28T22:18:57Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=1db8b60b2a6ef0cc0f7cc7d0783b7cda2ce894ca'/>
<id>urn:sha1:1db8b60b2a6ef0cc0f7cc7d0783b7cda2ce894ca</id>
<content type='text'>
* maint:
  Start preparing Release Notes for 1.5.0.3
  Documentation: git-remote add [-t &lt;branch&gt;] [-m &lt;branch&gt;] [-f] name url
  Include config.mak in doc/Makefile
  git.el: Set the default commit coding system from the repository config.
  git-archimport: support empty summaries, put summary on a single line.
  http-push.c::lock_remote(): validate all remote refs.
  git-cvsexportcommit: don't cleanup .msg if not yet committed to cvs.
</content>
</entry>
<entry>
<title>http-push.c::lock_remote(): validate all remote refs.</title>
<updated>2007-02-28T20:12:02Z</updated>
<author>
<name>Eygene Ryabinkin</name>
<email>rea-git@codelabs.ru</email>
</author>
<published>2007-02-28T20:12:02Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=2c46759db757eb742590e8547cb0c63e8bdb1da1'/>
<id>urn:sha1:2c46759db757eb742590e8547cb0c63e8bdb1da1</id>
<content type='text'>
Starting from offset 11 might have been good back when it was
only used for updating "refs/heads/*", but it is used to update
"info/refs" and "refs/tags/*" as well.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>convert object type handling from a string to a number</title>
<updated>2007-02-27T09:34:21Z</updated>
<author>
<name>Nicolas Pitre</name>
<email>nico@cam.org</email>
</author>
<published>2007-02-26T19:55:59Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=21666f1aae4e890d8f50924f9e80763b27e6a45d'/>
<id>urn:sha1:21666f1aae4e890d8f50924f9e80763b27e6a45d</id>
<content type='text'>
We currently have two parallel notation for dealing with object types
in the code: a string and a numerical value.  One of them is obviously
redundent, and the most used one requires more stack space and a bunch
of strcmp() all over the place.

This is an initial step for the removal of the version using a char array
found in object reading code paths.  The patch is unfortunately large but
there is no sane way to split it in smaller parts without breaking the
system.

Signed-off-by: Nicolas Pitre &lt;nico@cam.org&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>prefixcmp(): fix-up leftover strncmp().</title>
<updated>2007-02-21T06:03:15Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2007-02-20T09:55:07Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=1968d77dd632a9a9e5c6f5681649e5e65ed13088'/>
<id>urn:sha1:1968d77dd632a9a9e5c6f5681649e5e65ed13088</id>
<content type='text'>
There were instances of strncmp() that were formatted improperly
(e.g. whitespace around parameter before closing parenthesis)
that caused the earlier mechanical conversion step to miss
them.  This step cleans them up.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Mechanical conversion to use prefixcmp()</title>
<updated>2007-02-21T06:03:15Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2007-02-20T09:53:29Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=cc44c7655fe2dd0cfb46e841156634fe622df397'/>
<id>urn:sha1:cc44c7655fe2dd0cfb46e841156634fe622df397</id>
<content type='text'>
This mechanically converts strncmp() to use prefixcmp(), but only when
the parameters match specific patterns, so that they can be verified
easily.  Leftover from this will be fixed in a separate step, including
idiotic conversions like

    if (!strncmp("foo", arg, 3))

  =&gt;

    if (!(-prefixcmp(arg, "foo")))

This was done by using this script in px.perl

   #!/usr/bin/perl -i.bak -p
   if (/strncmp\(([^,]+), "([^\\"]*)", (\d+)\)/ &amp;&amp; (length($2) == $3)) {
           s|strncmp\(([^,]+), "([^\\"]*)", (\d+)\)|prefixcmp($1, "$2")|;
   }
   if (/strncmp\("([^\\"]*)", ([^,]+), (\d+)\)/ &amp;&amp; (length($1) == $3)) {
           s|strncmp\("([^\\"]*)", ([^,]+), (\d+)\)|(-prefixcmp($2, "$1"))|;
   }

and running:

   $ git grep -l strncmp -- '*.c' | xargs perl px.perl

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Don't force everybody to call setup_ident().</title>
<updated>2007-01-28T09:58:50Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2007-01-28T08:50:53Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=01754769ab9bf9ff2fe2b12590e7ee2c7c3448ca'/>
<id>urn:sha1:01754769ab9bf9ff2fe2b12590e7ee2c7c3448ca</id>
<content type='text'>
Back when only handful commands that created commit and tag were
the only users of committer identity information, it made sense
to explicitly call setup_ident() to pre-fill the default value
from the gecos information.  But it is much simpler for programs
to make the call automatic when get_ident() is called these days,
since many more programs want to use the information when updating
the reflog.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
</feed>
