Documentation
    Preparing search index...

    Interface GitHttpClientInterface

    interface GitHttpClientInterface {
        downloadBlob(sha: string): Promise<string>;
        fetchFileTree(branch?: string): Promise<FileTreeNode[]>;
        parseFrontmatter(content: string): FrontmatterResult;
    }

    Implemented by

    Index

    Methods

    • Downloads a file's raw content by its blob SHA

      Parameters

      • sha: string

      Returns Promise<string>

    • Fetches the repository file tree recursively

      Parameters

      • Optionalbranch: string

      Returns Promise<FileTreeNode[]>

    • Parses a Markdown document containing a YAML frontmatter block

      Parameters

      • content: string

      Returns FrontmatterResult