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

Function file_index

lib/git/git.js:244–254  ·  view source on GitHub ↗
(git, callback)

Source from the content-addressed store, hash-verified

242}
243
244var file_index = function(git, callback) {
245 // If we have a file index object return it otherwise create a new one
246 if(!git.git_file_index) {
247 new FileIndex(git.git_directory, function(err, _file_index) {
248 git.git_file_index = _file_index;
249 callback(null, _file_index);
250 });
251 } else {
252 callback(null, git.git_file_index);
253 }
254}
255
256// Fetch a revision list
257Git.prototype.rev_list = function(options, reference, callback) {

Callers 1

git.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected