Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/christkv/node-git
/ chomp
Function
chomp
lib/git/commit.js:94–96 ·
view source on GitHub ↗
(raw_text)
Source
from the content-addressed store, hash-verified
92
93
// Chomp text removing end carriage returns
94
var
chomp =
function
chomp(raw_text) {
95
return
raw_text.replace(/(\n|\r)+$/,
''
);
96
}
97
98
// Fetch the short form of an id
99
Commit.prototype.id_abbrev =
function
(callback) {
Callers
1
commit.js
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected