<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-repack.sh, branch v1.2.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.2.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.2.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2005-12-14T10:53:44Z</updated>
<entry>
<title>git-repack: Usage string clean-up, emit usage at incorrect invocation</title>
<updated>2005-12-14T10:53:44Z</updated>
<author>
<name>freku045@student.liu.se</name>
<email>freku045@student.liu.se</email>
</author>
<published>2005-12-13T22:30:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9678faaaffd3eba057bf1cb643399c5a5365a611'/>
<id>urn:sha1:9678faaaffd3eba057bf1cb643399c5a5365a611</id>
<content type='text'>
Signed-off-by: Fredrik Kuivinen &lt;freku045@student.liu.se&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>git-sh-setup: die if outside git repository.</title>
<updated>2005-11-25T21:49:17Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-11-24T08:12:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ae2b0f15180d4b044828c836bcab6a990efa5c8e'/>
<id>urn:sha1:ae2b0f15180d4b044828c836bcab6a990efa5c8e</id>
<content type='text'>
Now all the users of this script detect its exit status and die,
complaining that it is outside git repository.  So move the code
that dies from all callers to git-sh-setup script.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>git-repack: Properly abort in corrupt repository</title>
<updated>2005-11-21T22:08:49Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@osdl.org</email>
</author>
<published>2005-11-21T20:38:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ef07618fdd660057b80fe75007405c62502a5820'/>
<id>urn:sha1:ef07618fdd660057b80fe75007405c62502a5820</id>
<content type='text'>
In a corrupt repository, git-repack produces a pack that does not
contain needed objects without complaining, and the result of this
combined with -d flag can be very painful -- e.g. a lossage of one
tree object can lead to lossage of blobs reachable only through that
tree.

Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>git-repack: do not do complex redundancy check.</title>
<updated>2005-11-19T20:13:53Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-11-19T20:13:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6ed64058e1241f9939c4abf5d6a9eaed6a2cc795'/>
<id>urn:sha1:6ed64058e1241f9939c4abf5d6a9eaed6a2cc795</id>
<content type='text'>
With "-a", redundant pack removal is trivial, and otherwise
redundant pack removal is pointless; do not call
git-redundant-pack from this script.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Remove all old packfiles when doing "git repack -a -d"</title>
<updated>2005-11-18T22:26:31Z</updated>
<author>
<name>Lukas Sandström</name>
<email>lukass@etek.chalmers.se</email>
</author>
<published>2005-11-18T20:36:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=62af0b532b5ab94d231205db2db444a638a4ce49'/>
<id>urn:sha1:62af0b532b5ab94d231205db2db444a638a4ce49</id>
<content type='text'>
No point in running git-pack-redundant if we already know
which packs are redundant.

Signed-off-by: Lukas Sandström &lt;lukass@etek.chalmers.se&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>git-repack: Fix variable name</title>
<updated>2005-11-18T05:28:45Z</updated>
<author>
<name>Ralf Baechle</name>
<email>ralf@linux-mips.org</email>
</author>
<published>2005-11-17T14:34:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0adb3358f6538aaa9006f4068d6757cd506afcdd'/>
<id>urn:sha1:0adb3358f6538aaa9006f4068d6757cd506afcdd</id>
<content type='text'>
Three times remove_redandant -&gt; remove_redundant.

Signed-off-by: Ralf Baechle &lt;ralf@linux-mips.org&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Make git-pack-redundant consider alt-odbs</title>
<updated>2005-11-12T05:19:11Z</updated>
<author>
<name>Lukas_Sandström</name>
<email>lukass@etek.chalmers.se</email>
</author>
<published>2005-11-11T00:25:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1c3039e8f1eb01766cff976793c8f439095967f6'/>
<id>urn:sha1:1c3039e8f1eb01766cff976793c8f439095967f6</id>
<content type='text'>
This patch changes git-pack-redundant so that packfiles
in alternate object directories also are considered when
deciding which objects are redundant.

This functionality is controlled by the flag '--alt-odb'.

Also convert the other flags to the long form, and update
docs and git-repack accordingly.

Signed-off-by: Lukas Sandström &lt;lukass@etek.chalmers.se&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Rename git-pack-intersect to git-pack-redundant</title>
<updated>2005-11-12T05:19:11Z</updated>
<author>
<name>Lukas_Sandström</name>
<email>lukass@etek.chalmers.se</email>
</author>
<published>2005-11-09T23:16:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9bc0f32c77b755b8d77d215cc47fafff53cad6f5'/>
<id>urn:sha1:9bc0f32c77b755b8d77d215cc47fafff53cad6f5</id>
<content type='text'>
This patch renames git-pack-intersect to git-pack-redundant
as suggested by Petr Baudis. The new name reflects what the
program does, rather than how it does it.

Also fix a small argument parsing bug.

Signed-off-by: Lukas Sandström &lt;lukass@etek.chalmers.se&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Make git-repack use git-pack-intersect.</title>
<updated>2005-11-12T05:19:11Z</updated>
<author>
<name>Lukas_Sandström</name>
<email>lukass@etek.chalmers.se</email>
</author>
<published>2005-11-09T01:25:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b4ad3552de8b3231b55f5ee32ee2178202708118'/>
<id>urn:sha1:b4ad3552de8b3231b55f5ee32ee2178202708118</id>
<content type='text'>
Signed-off-by: Lukas Sandström &lt;lukass@etek.chalmers.se&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Be marginally more careful about removing objects</title>
<updated>2005-10-28T21:25:02Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@osdl.org</email>
</author>
<published>2005-10-28T16:45:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=41f222e87a9062833712367d66114cae90b3769a'/>
<id>urn:sha1:41f222e87a9062833712367d66114cae90b3769a</id>
<content type='text'>
The git philosophy when it comes to disk accesses is "Laugh in the face of
danger".

Notably, since we never modify an existing object, we don't really care
that deeply about flushing things to disk, since even if the machine
crashes in the middle of a git operation, you can never really have lost
any old work. At most, you'd need to figure out the proper heads (which
git-fsck-objects can do for you) and re-do the operation.

However, there's two exceptions to this: pruning and repacking. Those
operations will actually _delete_ old objects that they know about in
other ways (ie that they just repacked, or that they have found in other
places).

However, since they actually modify old state, we should thus be a bit
more careful about them. If the machine crashes and the duplicate new
objects haven't been flushed to disk, you can actually be in trouble.

This is trivially stupid about it by calling "sync" before removing the
objects. Not very smart, but we're talking about special operations than
are usually done once a week if that.

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