layout
default
menu_item
api
title
ConvenientPatch
description
Version 0.26.1
return_to
API Documentation Index
/api/
sections
#hunks
#isAdded
#isConflicted
#isCopied
#isDeleted
#isIgnored
#isModified
#isRenamed
#isTypeChange
#isUnmodified
#isUnreadable
#isUntracked
#lineStats
#newFile
#oldFile
#size
#status
#hunks
#isAdded
#isConflicted
#isCopied
#isDeleted
#isIgnored
#isModified
#isRenamed
#isTypeChange
#isUnmodified
#isUnreadable
#isUntracked
#lineStats
#newFile
#oldFile
#size
#status
ConvenientPatch# hunks Async
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 Sync
var boolean = convenientPatch . isAdded ( ) ;
Is this an added patch?
ConvenientPatch# isConflicted Sync
var boolean = convenientPatch . isConflicted ( ) ;
Is this a conflicted patch?
ConvenientPatch# isCopied Sync
var boolean = convenientPatch . isCopied ( ) ;
Is this a copied patch?
ConvenientPatch# isDeleted Sync
var boolean = convenientPatch . isDeleted ( ) ;
Is this a deleted patch?
ConvenientPatch# isIgnored Sync
var boolean = convenientPatch . isIgnored ( ) ;
Is this an ignored patch?
ConvenientPatch# isModified Sync
var boolean = convenientPatch . isModified ( ) ;
Is this an modified patch?
ConvenientPatch# isRenamed Sync
var boolean = convenientPatch . isRenamed ( ) ;
Is this a renamed patch?
ConvenientPatch# isTypeChange Sync
var boolean = convenientPatch . isTypeChange ( ) ;
Is this a type change?
ConvenientPatch# isUnmodified Sync
var boolean = convenientPatch . isUnmodified ( ) ;
Is this an unmodified patch?
ConvenientPatch# isUnreadable Sync
var boolean = convenientPatch . isUnreadable ( ) ;
Is this an undreadable patch?
ConvenientPatch# isUntracked Sync
var boolean = convenientPatch . isUntracked ( ) ;
Is this an untracked patch?
ConvenientPatch# lineStats Sync
var lineStats = convenientPatch . lineStats ( ) ;
The line statistics of this patch (#contexts, #added, #deleted)
ConvenientPatch# newFile Sync
var diffFile = convenientPatch . newFile ( ) ;
New attributes of the file
ConvenientPatch# oldFile Sync
var diffFile = convenientPatch . oldFile ( ) ;
Old attributes of the file
ConvenientPatch# size Sync
var number = convenientPatch . size ( ) ;
The number of hunks in this patch
ConvenientPatch# status Sync
var number = convenientPatch . status ( ) ;
The status of this patch (unmodified, added, deleted)