We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b014a6 commit 85e631aCopy full SHA for 85e631a
1 file changed
lib/convenient_patch.js
@@ -144,4 +144,20 @@ ConvenientPatch.prototype.isTypeChange = function() {
144
return this.status() == Diff.DELTA.TYPECHANGE;
145
};
146
147
+/**
148
+ * Is this an undreadable patch?
149
+ * @return {Boolean}
150
+ */
151
+ConvenientPatch.prototype.isUnreadable = function() {
152
+ return this.status() == Diff.DELTA.UNREADABLE;
153
+}
154
+
155
156
+ * Is this a conflicted patch?
157
158
159
+ConvenientPatch.prototype.isConflicted = function() {
160
+ return this.status() == Diff.DELTA.CONFLICTED;
161
162
163
NodeGit.ConvenientPatch = ConvenientPatch;
0 commit comments