Exgit.Pack.Delta (exgit v0.1.0)

Copy Markdown View Source

Apply git's pack delta format against a base object.

Every path returns {:ok, bytes} | {:error, reason}. Hostile input — truncated headers, out-of-bounds copy offsets, insert length longer than payload, reserved 0x00 opcode, size-mismatches — produces a tagged error; none raise.

Summary

Functions

apply(base, delta, opts \\ [])

@spec apply(binary(), binary(), keyword()) :: {:ok, binary()} | {:error, term()}