repo2post - v0.1.1
    Preparing search index...

    Function splitUnifiedDiff

    • Split a unified git diff into per-file sections.

      Each section starts at a diff --git a/… b/… header. The file path is taken from the +++ b/… line when present (handles renames), falling back to the diff --git header.

      Parameters

      • patch: string

      Returns { binary: boolean; path: string; text: string }[]