MCPcopy
hub / github.com/syncthing/syncthing / trimTagMessage

Function trimTagMessage

build.go:1388–1399  ·  view source on GitHub ↗
(msg, tag string)

Source from the content-addressed store, hash-verified

1386}
1387
1388func trimTagMessage(msg, tag string) string {
1389 firstBlank := strings.Index(msg, "\n\n")
1390 if firstBlank > 0 {
1391 msg = msg[firstBlank+2:]
1392 }
1393 msg = strings.TrimPrefix(msg, tag)
1394 beginSig := strings.Index(msg, "-----BEGIN PGP")
1395 if beginSig > 0 {
1396 msg = msg[:beginSig]
1397 }
1398 return strings.TrimSpace(msg)
1399}
1400
1401func nextPatchVersion(ver string) string {
1402 parts := strings.SplitN(ver, "-", 2)

Callers 1

tagMessageFunction · 0.85

Calls 1

IndexMethod · 0.65

Tested by

no test coverage detected