<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-repack.sh, 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>2009-04-05T08:17:08Z</updated>
<entry>
<title>Merge branch 'maint'</title>
<updated>2009-04-05T08:17:08Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-04-05T08:17:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=81aa96497686bd31c5a9a3cdf110c2e10c799c03'/>
<id>urn:sha1:81aa96497686bd31c5a9a3cdf110c2e10c799c03</id>
<content type='text'>
* maint:
  git submodule: fix usage line
  doc/git-pack-refs: fix two grammar issues
  commit: abort commit if interactive add failed
  git-repack: use non-dashed update-server-info
</content>
</entry>
<entry>
<title>git-repack: use non-dashed update-server-info</title>
<updated>2009-04-05T07:08:49Z</updated>
<author>
<name>Dan McGee</name>
<email>dpmcgee@gmail.com</email>
</author>
<published>2009-04-04T16:59:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e1dc49bcdefd362e129c9ee3a85527b518f9b49d'/>
<id>urn:sha1:e1dc49bcdefd362e129c9ee3a85527b518f9b49d</id>
<content type='text'>
Signed-off-by: Dan McGee &lt;dpmcgee@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/maint-1.6.0-keep-pack'</title>
<updated>2009-04-02T05:34:19Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-04-02T05:34:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3c91bf6805249d0f59ddff4e5dc4118127527243'/>
<id>urn:sha1:3c91bf6805249d0f59ddff4e5dc4118127527243</id>
<content type='text'>
* jc/maint-1.6.0-keep-pack:
  pack-objects: don't loosen objects available in alternate or kept packs
  t7700: demonstrate repack flaw which may loosen objects unnecessarily
  Remove --kept-pack-only option and associated infrastructure
  pack-objects: only repack or loosen objects residing in "local" packs
  git-repack.sh: don't use --kept-pack-only option to pack-objects
  t7700-repack: add two new tests demonstrating repacking flaws

Conflicts:
	t/t7700-repack.sh
</content>
</entry>
<entry>
<title>git-repack.sh: don't use --kept-pack-only option to pack-objects</title>
<updated>2009-03-20T20:32:33Z</updated>
<author>
<name>Brandon Casey</name>
<email>casey@nrlssc.navy.mil</email>
</author>
<published>2009-03-20T03:47:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=171110a4a67f04c28d2ac89385ab88ba051fc780'/>
<id>urn:sha1:171110a4a67f04c28d2ac89385ab88ba051fc780</id>
<content type='text'>
The --kept-pack-only option to pack-objects treats all kept packs as equal.
This results in objects that reside in an alternate pack that has a .keep
file, not being packed into a newly created pack when the user specifies the
-a option to repack.  Since the user may not have any control over the
alternate database, git should not refrain from repacking those objects
even though they are in a pack with a .keep file.

This fixes the 'packed obs in alternate ODB kept pack are repacked' test in
t7700.

Signed-off-by: Brandon Casey &lt;casey@nrlssc.navy.mil&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/maint-1.6.0-keep-pack'</title>
<updated>2009-03-11T20:49:56Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-03-11T20:49:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=aec813062b340e6bb181470cf57cc4b4406e1bb8'/>
<id>urn:sha1:aec813062b340e6bb181470cf57cc4b4406e1bb8</id>
<content type='text'>
* jc/maint-1.6.0-keep-pack:
  is_kept_pack(): final clean-up
  Simplify is_kept_pack()
  Consolidate ignore_packed logic more
  has_sha1_kept_pack(): take "struct rev_info"
  has_sha1_pack(): refactor "pretend these packs do not exist" interface
  git-repack: resist stray environment variable
</content>
</entry>
<entry>
<title>Simplify is_kept_pack()</title>
<updated>2009-02-28T09:06:06Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-02-28T08:00:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=03a9683d22eca52bc2b2b9b09258a143e76416f6'/>
<id>urn:sha1:03a9683d22eca52bc2b2b9b09258a143e76416f6</id>
<content type='text'>
This removes --unpacked=&lt;packfile&gt; parameter from the revision parser, and
rewrites its use in git-repack to pass a single --kept-pack-only option
instead.

The new --kept-pack-only option means just that.  When this option is
given, is_kept_pack() that used to say "not on the --unpacked=&lt;packfile&gt;
list" now says "the packfile has corresponding .keep file".

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-repack: resist stray environment variable</title>
<updated>2009-02-28T09:06:05Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-02-28T07:58:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2478dc84b5fb2617bfab3a8f65f1270de578b94a'/>
<id>urn:sha1:2478dc84b5fb2617bfab3a8f65f1270de578b94a</id>
<content type='text'>
The script used $args and $existing without initializing it to empty.  It
would have been confused by an environment variable the end user had
before running it.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Make repack less likely to corrupt repository</title>
<updated>2009-02-12T02:32:16Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-02-10T20:16:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3e6b1d0abcd58f0b2b106212ce0a0e07a6de342f'/>
<id>urn:sha1:3e6b1d0abcd58f0b2b106212ce0a0e07a6de342f</id>
<content type='text'>
Some platforms refuse to rename a file that is open.  When repacking an
already packed repository without adding any new object, the resulting
pack will contain the same set of objects as an existing pack, and on such
platforms, a newly created packfile cannot replace the existing one.

The logic detected this issue but did not try hard enough to recover from
it.  Especially because the files that needs renaming come in pairs, there
potentially are different failure modes that one can be renamed but the
others cannot.  Asking manual recovery to end users were error prone.

This patch tries to make it more robust by first making sure all the
existing files that need to be renamed have been renamed before
continuing, and attempts to roll back if some failed to rename.

This is based on an initial patch by Robin Rosenberg.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>repack: only unpack-unreachable if we are deleting redundant packs</title>
<updated>2008-11-15T05:39:10Z</updated>
<author>
<name>Brandon Casey</name>
<email>casey@nrlssc.navy.mil</email>
</author>
<published>2008-11-13T20:11:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=83d0289df6fb4deae100ee3fc37b90683c2e8c9f'/>
<id>urn:sha1:83d0289df6fb4deae100ee3fc37b90683c2e8c9f</id>
<content type='text'>
The -A option calls pack-objects with the --unpack-unreachable option so
that the unreachable objects in local packs are left in the local object
store loose. But if the -d option to repack was _not_ used, then these
unpacked loose objects are redundant and unnecessary.

Update tests in t7701.

Signed-off-by: Brandon Casey &lt;casey@nrlssc.navy.mil&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>repack: do not fall back to incremental repacking with [-a|-A]</title>
<updated>2008-11-12T18:28:13Z</updated>
<author>
<name>Brandon Casey</name>
<email>casey@nrlssc.navy.mil</email>
</author>
<published>2008-11-12T17:59:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f7991d1ed37502c0e98dfa95866dfc1a8b08d834'/>
<id>urn:sha1:f7991d1ed37502c0e98dfa95866dfc1a8b08d834</id>
<content type='text'>
When repack is called with either the -a or -A option, the user has
requested to repack all objects including those referenced by the
alternates mechanism. Currently, if there are no local packs without
.keep files, then repack will call pack-objects with the
'--unpacked --incremental' options which causes it to exclude alternate
packed objects. So, remove this fallback.

Signed-off-by: Brandon Casey &lt;casey@nrlssc.navy.mil&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
