(git, callback)
| 242 | } |
| 243 | |
| 244 | var 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 |
| 257 | Git.prototype.rev_list = function(options, reference, callback) { |