Merge "Add gitweb.linkDrafts to control if gitweb links are shown on drafts"

This commit is contained in:
David Pursehouse
2013-04-17 03:08:00 +00:00
committed by Gerrit Code Review
5 changed files with 38 additions and 1 deletions

View File

@@ -75,6 +75,9 @@ public class GitWebType {
* project names */
private char pathSeparator = '/';
/** Whether to include links to draft patch sets */
private boolean linkDrafts;
/** Private default constructor for gson. */
protected GitWebType() {
}
@@ -124,6 +127,15 @@ public class GitWebType {
return fileHistory;
}
/**
* Get whether to link to draft patch sets
*
* @return True to link
*/
public boolean getLinkDrafts() {
return linkDrafts;
}
/**
* Set the pattern for branch view.
*
@@ -201,4 +213,8 @@ public class GitWebType {
public void setPathSeparator(char separator) {
this.pathSeparator = separator;
}
public void setLinkDrafts(boolean linkDrafts) {
this.linkDrafts = linkDrafts;
}
}