| layout | menu_item | title | description | return_to | sections | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
default |
api |
ConvenientPatch |
Version 0.26.1 |
|
|
convenientPatch.hunks().then(function(arrayConvenientHunk) {
// Use arrayConvenientHunk
});The hunks in this patch
| Returns | |
|---|---|
| Array<ConvenientHunk> | a promise that resolves to an array of ConvenientHunks |
var boolean = convenientPatch.isAdded();Is this an added patch?
| Returns | |
|---|---|
| Boolean |
var boolean = convenientPatch.isConflicted();Is this a conflicted patch?
| Returns | |
|---|---|
| Boolean |
var boolean = convenientPatch.isCopied();Is this a copied patch?
| Returns | |
|---|---|
| Boolean |
var boolean = convenientPatch.isDeleted();Is this a deleted patch?
| Returns | |
|---|---|
| Boolean |
var boolean = convenientPatch.isIgnored();Is this an ignored patch?
| Returns | |
|---|---|
| Boolean |
var boolean = convenientPatch.isModified();Is this an modified patch?
| Returns | |
|---|---|
| Boolean |
var boolean = convenientPatch.isRenamed();Is this a renamed patch?
| Returns | |
|---|---|
| Boolean |
var boolean = convenientPatch.isTypeChange();Is this a type change?
| Returns | |
|---|---|
| Boolean |
var boolean = convenientPatch.isUnmodified();Is this an unmodified patch?
| Returns | |
|---|---|
| Boolean |
var boolean = convenientPatch.isUnreadable();Is this an undreadable patch?
| Returns | |
|---|---|
| Boolean |
var boolean = convenientPatch.isUntracked();Is this an untracked patch?
| Returns | |
|---|---|
| Boolean |
var lineStats = convenientPatch.lineStats();The line statistics of this patch (#contexts, #added, #deleted)
| Returns | |
|---|---|
| lineStats |
var diffFile = convenientPatch.newFile();New attributes of the file
| Returns | |
|---|---|
| DiffFile |
var diffFile = convenientPatch.oldFile();Old attributes of the file
| Returns | |
|---|---|
| DiffFile |
var number = convenientPatch.size();The number of hunks in this patch
| Returns | |
|---|---|
| Number |
var number = convenientPatch.status();The status of this patch (unmodified, added, deleted)
| Returns | |
|---|---|
| Number |