UNPKG

@dapplion/benchmark

Version:

Ensures that new code does not introduce performance regressions with CI. Tracks:

23 lines 556 B
type RefTypes = "heads" | "tags" | "pull"; type Ref = { type: RefTypes; name: string; }; /** * Parses a git ref string: * ``` * refs/heads/* > { type: "heads", name: "*" } * refs/tags/* > { type: "tags", name: "*" } * refs/remotes/ > { type: "remotes", name: "" } * ``` * @param refStr "refs/heads/dapplion/feat1" */ export declare function parseRef(refStr: string): Ref; /** * Parse ref * @param refStr * @returns */ export declare function parseBranchFromRef(refStr: string): string; export {}; //# sourceMappingURL=gitRef.d.ts.map