diff options
Diffstat (limited to 'org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/Repository.java')
-rw-r--r-- | org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/Repository.java | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/Repository.java b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/Repository.java index a60c7afc..c84ee587 100644 --- a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/Repository.java +++ b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/Repository.java @@ -68,7 +68,7 @@ public class Repository implements IRepositoryIdProvider, Serializable { private String language; - private String masterBranch; + private String defaultBranch; private String mirrorUrl; @@ -387,18 +387,36 @@ public class Repository implements IRepositoryIdProvider, Serializable { } /** - * @return masterBranch + * @return defaultBranch + */ + public String getDefaultBranch() { + return defaultBranch; + } + + /** + * @param defaultBranch + * @return this repository */ + public Repository setDefaultBranch(String defaultBranch) { + this.defaultBranch = defaultBranch; + return this; + } + + /** + * @return masterBranch + */ + @Deprecated public String getMasterBranch() { - return masterBranch; + return defaultBranch; } /** * @param masterBranch * @return this repository */ + @Deprecated public Repository setMasterBranch(String masterBranch) { - this.masterBranch = masterBranch; + this.defaultBranch = masterBranch; return this; } |