blob: ff23494e7013c5d491c7a7e2642ec30133906aac [file] [log] [blame]
Junio C Hamano5f405202005-07-14 00:08:05 -07001git-unpack-objects(1)
2=====================
Junio C Hamano5f405202005-07-14 00:08:05 -07003
4NAME
5----
Fredrik Kuivinen7bd7f282006-03-09 17:24:50 +01006git-unpack-objects - Unpack objects from a packed archive
Junio C Hamano5f405202005-07-14 00:08:05 -07007
8
9SYNOPSIS
10--------
Martin von Zweigbergk7791a1d2011-07-01 22:38:26 -040011[verse]
Jonathan Niederb1889c32008-06-30 01:09:04 -050012'git unpack-objects' [-n] [-q] [-r] [--strict] <pack-file
Junio C Hamano5f405202005-07-14 00:08:05 -070013
14
15DESCRIPTION
16-----------
seanae0b2192006-05-05 15:05:36 -040017Read a packed archive (.pack) from the standard input, expanding
18the objects contained within and writing them into the repository in
19"loose" (one object per file) format.
20
21Objects that already exist in the repository will *not* be unpacked
22from the pack-file. Therefore, nothing will be unpacked if you use
23this command on a pack-file that exists within the target repository.
24
Jonathan Nieder483bc4f2008-06-30 13:56:34 -050025See linkgit:git-repack[1] for options to generate
seanae0b2192006-05-05 15:05:36 -040026new packs and replace existing ones.
Junio C Hamano5f405202005-07-14 00:08:05 -070027
Junio C Hamano87b7b842005-08-12 01:45:52 -070028OPTIONS
29-------
Nikolai Weibullb2309b72005-11-15 00:20:01 +010030-n::
Sam Vilaine59ade92007-06-07 09:23:16 +120031 Dry run. Check the pack file without actually unpacking
32 the objects.
Nikolai Weibullb2309b72005-11-15 00:20:01 +010033
Junio C Hamano87b7b842005-08-12 01:45:52 -070034-q::
35 The command usually shows percentage progress. This
36 flag suppresses it.
37
Junio C Hamanof986f2c2006-09-03 22:55:54 -070038-r::
39 When unpacking a corrupt packfile, the command dies at
40 the first corruption. This flag tells it to keep going
Junio C Hamano3b67d292006-09-13 12:59:20 -070041 and make the best effort to recover as many objects as
Junio C Hamanof986f2c2006-09-03 22:55:54 -070042 possible.
43
Martin Koeglerb41860b2008-02-25 22:46:11 +010044--strict::
45 Don't write objects with broken content or links.
46
Junio C Hamano5f405202005-07-14 00:08:05 -070047GIT
48---
Christian Couder9e1f0a82008-06-06 09:07:32 +020049Part of the linkgit:git[1] suite