Skip to content

Latest commit

 

History

History
62 lines (48 loc) · 1.63 KB

File metadata and controls

62 lines (48 loc) · 1.63 KB
layout menu_item title description return_to sections
default
api
DiffStats
Version 0.26.1
API Documentation Index
/api/
#deletions #filesChanged #insertions #toBuf
#deletions
#filesChanged
#insertions
#toBuf

DiffStats#deletions SyncExperimental

var result = diffStats.deletions();
Returns
Number total number of deletions in the diff

DiffStats#filesChanged SyncExperimental

var result = diffStats.filesChanged();
Returns
Number total number of files changed in the diff

DiffStats#insertions SyncExperimental

var result = diffStats.insertions();
Returns
Number total number of insertions in the diff

DiffStats#toBuf AsyncExperimental

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.