package git

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Unpack.DecoderSource

Parameters

module Hash : sig ... end
module Mapper : sig ... end
module Inflate : sig ... end
module Hunk : H with module Hash := Hash
module Pack : P with module Hash := Hash and module Inflate := Inflate and module Hunk := Hunk

Signature

Sourcetype error =
  1. | Invalid_hash of Hash.t
    (*

    Appears when the user requested a wrong hash.

    *)
  2. | Invalid_offset of int64
    (*

    Appears when the given offset is not available inside the PACK file.

    *)
  3. | Invalid_target of int * int
    (*

    Appears when the result of the application of a P.H.hunks returns a bad raw.

    *)
  4. | Unpack_error of Pack.t * Window.t * Pack.error
    (*

    Appears when we have an P.error.

    *)
  5. | Mapper_error of Mapper.error

The type error.

Sourceval pp_error : error Fmt.t

Pretty-printer for error.

Sourcetype kind = [
  1. | `Commit
  2. | `Blob
  3. | `Tree
  4. | `Tag
]

The type of the kind of the git object.

Sourcetype pack

The type of the decoder.

Sourceval idx : pack -> Hash.t -> (Checkseum.Crc32.t * int64) option
Sourceval extern : pack -> Hash.t -> (kind * Cstruct.t) option Lwt.t
Sourceval update_idx : (Hash.t -> (Checkseum.Crc32.t * int64) option) -> pack -> pack
Sourceval update_extern : (Hash.t -> (kind * Cstruct.t) option Lwt.t) -> pack -> pack
Sourceval make : ?bucket:int -> Mapper.fd -> (Hash.t -> (Checkseum.Crc32.t * int64) option) -> (Hash.t -> (kind * Cstruct.t) option Lwt.t) -> (pack, Mapper.error) result Lwt.t
Sourcemodule Diff : sig ... end
Sourcemodule Patch : sig ... end
Sourcemodule Base : sig ... end
Sourcemodule Object : sig ... end
Sourcemodule Cache : sig ... end
Sourcemodule Ascendant : sig ... end
Sourcemodule Descendant : sig ... end