MCPcopy Create free account
hub / github.com/isomorphic-git/isomorphic-git / withoutSignature

Method withoutSignature

src/models/GitCommit.js:125–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123 }
124
125 withoutSignature() {
126 const commit = normalizeNewlines(this._commit)
127 if (commit.indexOf('\ngpgsig') === -1) return commit
128 const headers = commit.slice(0, commit.indexOf('\ngpgsig'))
129 const message = commit.slice(
130 commit.indexOf('-----END PGP SIGNATURE-----\n') +
131 '-----END PGP SIGNATURE-----\n'.length
132 )
133 return normalizeNewlines(headers + '\n' + message)
134 }
135
136 isolateSignature() {
137 const signature = this._commit.slice(

Callers 2

_readCommitFunction · 0.45
signMethod · 0.45

Calls 2

normalizeNewlinesFunction · 0.90
sliceMethod · 0.80

Tested by

no test coverage detected