MCPcopy Create free account
hub / github.com/cli/cli / parsePushRevision

Function parsePushRevision

git/client.go:643–650  ·  view source on GitHub ↗
(revParseOut []byte)

Source from the content-addressed store, hash-verified

641}
642
643func parsePushRevision(revParseOut []byte) (RemoteTrackingRef, error) {
644 ref, err := ParseRemoteTrackingRef(firstLine(revParseOut))
645 if err != nil {
646 return RemoteTrackingRef{}, fmt.Errorf("could not parse push revision: %v", err)
647 }
648
649 return ref, nil
650}
651
652func (c *Client) DeleteLocalTag(ctx context.Context, tag string) error {
653 args := []string{"tag", "-d", tag}

Calls 3

ParseRemoteTrackingRefFunction · 0.85
firstLineFunction · 0.70
ErrorfMethod · 0.65