IF Commons GitHub

physical/objects

Written to: 2 requirements: 2 proved, 0 partly, 0 failing, 0 with no test recorded. 0003-git-ref FR-001, 0003-git-ref FR-008

Reading what a repository holds, through Git's own commands: the entries of a tree (with their sizes), the bytes of many objects in one call, and the digest a revision is made of. An object of Git is named by what it holds, so a digest kept for an object name is always right and never needs to be forgotten.

Source: commons/anyfs-git/src/physical/objects.ts

0 of 2 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

Entrytypeno test imports it
type Entry = {
  readonly mode: string;
  readonly type: string;
  readonly oid: string;
  /** The size of a blob; nothing for a tree or a link to another repository. */
  readonly size: number | undefined;
  /** The path from the top of the tree, as the bytes of Git read as text. */
  readonly name: string;
};

One entry of a tree of Git.

isRegularconstno test imports it
const isRegular: (e: Entry) => boolean

A file of the kind a store holds: not a link, not a folder, not another repository.

Titles, headings, exports, tables, columns and requirements. Esc closes.