Merge "Add gitweb.linkDrafts to control if gitweb links are shown on drafts"
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user