MCPcopy Index your code
hub / github.com/syncthing/syncthing / tagMessage

Function tagMessage

build.go:1376–1386  ·  view source on GitHub ↗
(tag string)

Source from the content-addressed store, hash-verified

1374}
1375
1376func tagMessage(tag string) (string, error) {
1377 hash, err := runError("git", "rev-parse", tag)
1378 if err != nil {
1379 return "", err
1380 }
1381 obj, err := runError("git", "cat-file", "-p", string(hash))
1382 if err != nil {
1383 return "", err
1384 }
1385 return trimTagMessage(string(obj), tag), nil
1386}
1387
1388func trimTagMessage(msg, tag string) string {
1389 firstBlank := strings.Index(msg, "\n\n")

Callers 1

runCommandFunction · 0.85

Calls 2

runErrorFunction · 0.85
trimTagMessageFunction · 0.85

Tested by

no test coverage detected