MCPcopy Index your code
hub / github.com/christkv/node-git / process_diff

Function process_diff

lib/git/commit.js:287–295  ·  view source on GitHub ↗
(repo, diff, callback)

Source from the content-addressed store, hash-verified

285}
286
287var process_diff = function(repo, diff, callback) {
288 if(diff.match(/diff --git a/)) {
289 diff = diff.substring(diff.match(/diff --git a/).index, diff.length);
290 } else {
291 diff = '';
292 }
293 // Return the diffs
294 Diff.list_from_string(repo, diff, callback);
295}
296
297// Show the commits
298Commit.prototype.show = function(callback) {

Callers 1

commit.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected