(repo, diff, callback)
| 285 | } |
| 286 | |
| 287 | var 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 |
| 298 | Commit.prototype.show = function(callback) { |