<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/pack.h, branch v1.6.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.6.3</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.6.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2008-08-30T04:51:27Z</updated>
<entry>
<title>improve reliability of fixup_pack_header_footer()</title>
<updated>2008-08-30T04:51:27Z</updated>
<author>
<name>Nicolas Pitre</name>
<email>nico@cam.org</email>
</author>
<published>2008-08-29T20:07:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=abeb40e5aa5b4a39799ae1caad241c8c7708053a'/>
<id>urn:sha1:abeb40e5aa5b4a39799ae1caad241c8c7708053a</id>
<content type='text'>
Currently, this function has the potential to read corrupted pack data
from disk and give it a valid SHA1 checksum.  Let's add the ability to
validate SHA1 checksum of existing data along the way, including before
and after any arbitrary point in the pack.

Signed-off-by: Nicolas Pitre &lt;nico@cam.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>verify-pack: check packed object CRC when using index version 2</title>
<updated>2008-06-25T06:58:57Z</updated>
<author>
<name>Nicolas Pitre</name>
<email>nico@cam.org</email>
</author>
<published>2008-06-25T03:19:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c41a4a9468b0c728e77ec5d97da7bfb63776ac3f'/>
<id>urn:sha1:c41a4a9468b0c728e77ec5d97da7bfb63776ac3f</id>
<content type='text'>
To do so, check_pack_crc() moved from builtin-pack-objects.c to
pack-check.c where it is more logical to share.

Signed-off-by: Nicolas Pitre &lt;nico@cam.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>move show_pack_info() where it belongs</title>
<updated>2008-06-25T06:58:57Z</updated>
<author>
<name>Nicolas Pitre</name>
<email>nico@cam.org</email>
</author>
<published>2008-06-25T03:18:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=77d3ecee85dbf354d2059d7ef65d788d90db3efa'/>
<id>urn:sha1:77d3ecee85dbf354d2059d7ef65d788d90db3efa</id>
<content type='text'>
This is called when verify_pack() has its verbose argument set, and
verbose in this context makes sense only for the actual 'git verify-pack'
command.  Therefore let's move show_pack_info() to builtin-verify-pack.c
instead and remove useless verbose argument from verify_pack().

Signed-off-by: Nicolas Pitre &lt;nico@cam.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'np/progress'</title>
<updated>2007-11-02T23:27:37Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2007-11-02T23:27:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=265ae188267fda441f92e513fb89641f78e982fd'/>
<id>urn:sha1:265ae188267fda441f92e513fb89641f78e982fd</id>
<content type='text'>
* np/progress:
  Show total transferred as part of throughput progress
  make sure throughput display gets updated even if progress doesn't move
  return the prune-packed progress display to the inner loop
  add throughput display to git-push
  add some copyright notice to the progress display code
  add throughput display to index-pack
  add throughput to progress display
  relax usage of the progress API
  make struct progress an opaque type
  prune-packed: don't call display_progress() for every file
  Stop displaying "Pack pack-$ID created." during git-gc
  Teach prune-packed to use the standard progress meter
  Change 'Deltifying objects' to 'Compressing objects'
  fix for more minor memory leaks
  fix const issues with some functions
  pack-objects.c: fix some global variable abuse and memory leaks
  pack-objects: no delta possible with only one object in the list
  cope with multiple line breaks within sideband progress messages
  more compact progress display
</content>
</entry>
<entry>
<title>fix const issues with some functions</title>
<updated>2007-10-17T06:54:57Z</updated>
<author>
<name>Nicolas Pitre</name>
<email>nico@cam.org</email>
</author>
<published>2007-10-17T01:55:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4049b9cfc082affc6365539138f6f5c546bb5685'/>
<id>urn:sha1:4049b9cfc082affc6365539138f6f5c546bb5685</id>
<content type='text'>
Two functions, namely write_idx_file() and open_pack_file(), currently
return a const pointer.  However that pointer is either a copy of the
first argument, or set to a malloc'd buffer when that first argument
is null.  In the later case it is wrong to qualify that pointer as const
since ownership of the buffer is transferred to the caller to dispose of,
and obviously the free() function is not meant to be passed const
pointers.

Making the return pointer not const causes a warning when the first
argument is returned since that argument is also marked const.

The correct thing to do is therefore to remove the const qualifiers,
avoiding the need for ugly casts only to silence some warnings.

Signed-off-by: Nicolas Pitre &lt;nico@cam.org&gt;
Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
</content>
</entry>
<entry>
<title>Refactor index-pack "keep $sha1" handling for reuse</title>
<updated>2007-09-19T10:22:30Z</updated>
<author>
<name>Shawn O. Pearce</name>
<email>spearce@spearce.org</email>
</author>
<published>2007-09-14T07:31:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=106764e6515dd0fb9fda8bb8cab523932ae903b3'/>
<id>urn:sha1:106764e6515dd0fb9fda8bb8cab523932ae903b3</id>
<content type='text'>
There is a subtle (but important) linkage between receive-pack and
index-pack that allows index-pack to create a packfile but protect
it from being deleted by a concurrent `git repack -a -d` operation.
The linkage works by having index-pack mark the newly created pack
with a ".keep" file and then it passes the SHA-1 name of that new
packfile to receive-pack along its stdout channel.

The receive-pack process must unkeep the packfile by deleting the
.keep file, but can it can only do so after all elgible refs have
been updated in the receiving repository.  This ensures that the
packfile is either kept or its objects are reachable, preventing
a concurrent repacker from deleting the packfile before it can
determine that its objects are actually needed by the repository.

The new builtin-fetch code needs to perform the same actions if
it choose to run index-pack rather than unpack-objects, so I am
moving this code out to its own function where both receive-pack
and fetch-pack are able to invoke it when necessary.  The caller
is responsible for deleting the returned ".keep" and freeing the
path if the returned path is not NULL.

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>Unify write_index_file functions</title>
<updated>2007-06-02T20:14:18Z</updated>
<author>
<name>Geert Bosch</name>
<email>bosch@gnat.com</email>
</author>
<published>2007-06-01T19:18:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=aa7e44bf571717aeb4435e6605391d51f3117047'/>
<id>urn:sha1:aa7e44bf571717aeb4435e6605391d51f3117047</id>
<content type='text'>
This patch unifies the write_index_file functions in
builtin-pack-objects.c and index-pack.c.  As the name
"index" is overloaded in git, move in the direction of
using "idx" and "pack idx" when refering to the pack index.
There should be no change in functionality.

Signed-off-by: Geert Bosch &lt;bosch@gnat.com&gt;
Acked-by: Nicolas Pitre &lt;nico@cam.org&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Create pack-write.c for common pack writing code</title>
<updated>2007-05-02T17:24:18Z</updated>
<author>
<name>Dana L. How</name>
<email>danahow@gmail.com</email>
</author>
<published>2007-05-02T16:13:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8b0eca7c7b73d0dc5d49f400a878d9b781ec4bec'/>
<id>urn:sha1:8b0eca7c7b73d0dc5d49f400a878d9b781ec4bec</id>
<content type='text'>
Include a generalized fixup_pack_header_footer() in this new file.
Needed by git-repack --max-pack-size feature in a later patchset.

[sp: Moved close(pack_fd) to callers, to support index-pack, and
     changed name to better indicate it is for packfiles.]

Signed-off-by: Dana L. How &lt;danahow@gmail.com&gt;
Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] clean up pack index handling a bit</title>
<updated>2007-03-17T04:27:36Z</updated>
<author>
<name>Nicolas Pitre</name>
<email>nico@cam.org</email>
</author>
<published>2007-03-16T20:42:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4287307833a7c67b09973fc1023311e473f830b2'/>
<id>urn:sha1:4287307833a7c67b09973fc1023311e473f830b2</id>
<content type='text'>
Especially with the new index format to come, it is more appropriate
to encapsulate more into check_packed_git_idx() and assume less of the
index format in struct packed_git.

To that effect, the index_base is renamed to index_data with void * type
so it is not used directly but other pointers initialized with it. This
allows for a couple pointer cast removal, as well as providing a better
generic name to grep for when adding support for new index versions or
formats.

And index_data is declared const too while at it.

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>Refactor the pack header reading function out of receive-pack.c</title>
<updated>2007-01-25T02:08:02Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2007-01-23T05:55:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a69e542989d0aa1576a4b6820454b9b0d2636796'/>
<id>urn:sha1:a69e542989d0aa1576a4b6820454b9b0d2636796</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
</feed>
