Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/GitHubService.java')
-rw-r--r--org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/GitHubService.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/GitHubService.java b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/GitHubService.java
index 25fc3abe..9d9ebc28 100644
--- a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/GitHubService.java
+++ b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/service/GitHubService.java
@@ -52,6 +52,16 @@ public abstract class GitHubService {
public static final String ACCEPT_FULL = "application/vnd.github.v3.full+json"; //$NON-NLS-1$
/**
+ * Accept header for diff response
+ */
+ public static final String ACCEPT_DIFF = "application/vnd.github.v3.diff"; //$NON-NLS-1$
+
+ /**
+ * Accept header for patch response
+ */
+ public static final String ACCEPT_PATCH = "application/vnd.github.v3.patch"; //$NON-NLS-1$
+
+ /**
* Accept header to use preview features of the 'ironman' release.
* @see <a href="https://developer.github.com/changes">https://developer.github.com/changes</a>
* @since 4.2

Back to the top