DiffStats#deletions
var result = diffStats.deletions();
Returns | |
---|---|
Number | total number of deletions in the diff |
DiffStats#filesChanged
var result = diffStats.filesChanged();
Returns | |
---|---|
Number | total number of files changed in the diff |
DiffStats#insertions
var result = diffStats.insertions();
Returns | |
---|---|
Number | total number of insertions in the diff |
DiffStats#toBuf
diffStats.toBuf(format, width).then(function(buf) {
// Use buf
});
Parameters | Type | |
---|---|---|
format | Number | Formatting option. |
width | Number | Target width for output (only affects GIT_DIFF_STATS_FULL) |
Returns | |
---|---|
Buf | buffer to store the formatted diff statistics in. |