Skip to content

Commit 9cf6d33

Browse files
sigprofJunio C Hamano
authored andcommitted
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 <vsu@altlinux.ru> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent a145110 commit 9cf6d33

File tree

5 files changed

+517
-1
lines changed

5 files changed

+517
-1
lines changed

Documentation/git-index-pack.txt

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
git-index-pack(1)
2+
=================
3+
4+
NAME
5+
----
6+
git-index-pack - Build pack index file for an existing packed archive
7+
8+
9+
SYNOPSIS
10+
--------
11+
'git-index-pack' [-o <index-file>] <pack-file>
12+
13+
14+
DESCRIPTION
15+
-----------
16+
Reads a packed archive (.pack) from the specified file, and
17+
builds a pack index file (.idx) for it. The packed archive
18+
together with the pack index can then be placed in the
19+
objects/pack/ directory of a git repository.
20+
21+
22+
OPTIONS
23+
-------
24+
-o <index-file>::
25+
Write the generated pack index into the specified
26+
file. Without this option the name of pack index
27+
file is constructed from the name of packed archive
28+
file by replacing .pack with .idx (and the program
29+
fails if the name of packed archive does not end
30+
with .pack).
31+
32+
33+
Author
34+
------
35+
Written by Sergey Vlasov <vsu@altlinux.ru>
36+
37+
Documentation
38+
-------------
39+
Documentation by Sergey Vlasov
40+
41+
GIT
42+
---
43+
Part of the gitlink:git[7] suite
44+

Documentation/git.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ gitlink:git-commit-tree[1]::
6868
gitlink:git-hash-object[1]::
6969
Computes the object ID from a file.
7070

71+
gitlink:git-index-pack.html[1]::
72+
Build pack index file for an existing packed archive.
73+
7174
gitlink:git-init-db[1]::
7275
Creates an empty git object database
7376

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ PROGRAMS = \
110110
git-convert-objects$X git-diff-files$X \
111111
git-diff-index$X git-diff-stages$X \
112112
git-diff-tree$X git-fetch-pack$X git-fsck-objects$X \
113-
git-hash-object$X git-init-db$X \
113+
git-hash-object$X git-index-pack$X git-init-db$X \
114114
git-local-fetch$X git-ls-files$X git-ls-tree$X git-merge-base$X \
115115
git-merge-index$X git-mktag$X git-pack-objects$X git-patch-id$X \
116116
git-peek-remote$X git-prune-packed$X git-read-tree$X \

0 commit comments

Comments
 (0)