Documentation for Simbo's Packages
    Preparing search index...

    Function parseGitChangeStatus

    • Parses a Git change status string into staged and unstaged statuses.

      The status string is expected to be at least two characters long, where:

      • The first character represents the staged status.
      • The second character represents the unstaged status.

      If the status is '??', it indicates an untracked file.

      This should match the output of git status --porcelain.

      Parameters

      • status: string

        A two-character string representing the Git change status.

      Returns {
          staged: GitChangeStagedStatus | undefined;
          unstaged: GitChangeUnstagedStatus | undefined;
      }

      An object containing the staged and unstaged statuses.