HttpServletRequest request = requestInfo.request;
HttpServletResponse response = requestInfo.response;
Git git = requestInfo.git;
try {
if (gitSegment != null) {
DeleteBranchCommand cc = git.branchDelete();
cc.setBranchNames(gitSegment);
// TODO: the force flag should be passed in the API call
cc.setForce(true);
cc.call();
// TODO: do something with the result
return true;
}
return false;