Replace gitweb glue with WebLink extensions

Keep the gitweb configuration section, but bind the URLs through the
WebLink extension points instead of specific support in the web UI.
This simplifies the server and UI implementations a bit by using
only code paths that other plugins like the gitiles plugin use.

Change-Id: I8508dcaf3a4405b3ce3a47f2f717472a46e5a8ca
This commit is contained in:
Shawn Pearce
2016-06-08 21:29:53 -07:00
parent e7d7282284
commit c4a90512d5
17 changed files with 180 additions and 504 deletions

View File

@@ -26,7 +26,6 @@ public class GitwebType {
private String rootTree;
private char pathSeparator = '/';
private boolean linkDrafts = true;
private boolean urlEncode = true;
/** @return name displayed in links. */
@@ -141,20 +140,6 @@ public class GitwebType {
this.pathSeparator = separator;
}
/** @return whether to generate links to draft patch sets. */
public boolean getLinkDrafts() {
return linkDrafts;
}
/**
* Set whether to generate links to draft patch sets.
*
* @param linkDrafts new value.
*/
public void setLinkDrafts(boolean linkDrafts) {
this.linkDrafts = linkDrafts;
}
/** @return whether to URL encode path segments. */
public boolean getUrlEncode() {
return urlEncode;