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