path: root/Documentation/git-index-pack.txt
diff options
authorSergey Vlasov <>2005-10-12 19:01:31 (GMT)
committerJunio C Hamano <>2005-10-13 01:32:02 (GMT)
commit9cf6d3357aaaaa89dd86cc156221b7b604e9358c (patch)
tree05414ddb382cbd7a05eaf9181a5d995e6fd3a8a7 /Documentation/git-index-pack.txt
parenta1451104ac2aa97f2e74818787ff54e29b2a77e5 (diff)
Add git-index-pack utility
git-index-pack builds a pack index file for an existing packed archive. With this utility a packed archive which was transferred without the corresponding pack index can be added to objects/pack/ without repacking. Signed-off-by: Sergey Vlasov <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/git-index-pack.txt')
1 files changed, 44 insertions, 0 deletions
diff --git a/Documentation/git-index-pack.txt b/Documentation/git-index-pack.txt
new file mode 100644
index 0000000..71ce557
--- /dev/null
+++ b/Documentation/git-index-pack.txt
@@ -0,0 +1,44 @@
+git-index-pack - Build pack index file for an existing packed archive
+'git-index-pack' [-o <index-file>] <pack-file>
+Reads a packed archive (.pack) from the specified file, and
+builds a pack index file (.idx) for it. The packed archive
+together with the pack index can then be placed in the
+objects/pack/ directory of a git repository.
+-o <index-file>::
+ Write the generated pack index into the specified
+ file. Without this option the name of pack index
+ file is constructed from the name of packed archive
+ file by replacing .pack with .idx (and the program
+ fails if the name of packed archive does not end
+ with .pack).
+Written by Sergey Vlasov <>
+Documentation by Sergey Vlasov
+Part of the gitlink:git[7] suite