Add test target for figfs_test.
[figfs.git] / git / packfile.mli
blob3e4cd926d62d4a948f8a5a8ebe0b22f2daba010c
1 (* Git pack file access.
2 * Copyright (C) 2009 Reilly Grant
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 (* Get directory where packs are stored. *)
20 val pack_directory : unit -> string
22 (* Get list of pack files (by hash). *)
23 val enumerate_packs : unit -> string list
25 (* Path to the index file for the given pack. *)
26 val index_path : string -> string
28 (* Path to the pack file for the given pack. *)
29 val pack_path : string -> string
31 (* Scan the given pack index for an object. Result is the offset in the pack
32 * file. *)
33 val scan_index : string -> Object.hash -> int64
35 val find_object_raw : Object.hash -> Object.obj_stat * string
37 val find_object : Object.hash -> Object.obj
39 val stat_object : Object.hash -> Object.obj_stat