MCPcopy Create free account
hub / github.com/christkv/node-git / read_file

Function read_file

lib/git/git.js:30–35  ·  view source on GitHub ↗
(path, callback)

Source from the content-addressed store, hash-verified

28}
29
30var read_file = function(path, callback) {
31 fs.stat(path, function(err, stat) {
32 if(err) return callback(err, null);
33 fs.readFile(path, 'ascii', callback);
34 })
35}
36
37// Retrieve references
38Git.prototype.refs = function(options, prefix, callback) {

Callers 1

git.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected