func updateGitCommitCacheList(w http.ResponseWriter, r *http.Request) {
	err := core.UpdateGitCommitCache()
	if err != nil {
		EasyErrorResponse(w, core.NebError, err)
	} else {
		EasyResponse(w, core.NebErrorNone, "updated cache list")
	}
}
User connected, must be admin
package handlers
import (
	"net/http"
	"strconv"
	"github.com/Nebuleuse/Nebuleuse/core"
	"github.com/gorilla/context"
)
func getBranchList(w http.ResponseWriter, r *http.Request) {
	session := context.Get(r, "session").(*core.UserSession)
	list := core.GetBranchList(session.UserRank)
	EasyDataResponse(w, list)
}
func getBranchUpdates(w http.ResponseWriter, r *http.Request) {
	session := context.Get(r, "session").(*core.UserSession)
	branch := context.Get(r, "branch").(string)
	if !core.CanUserAccessBranch(branch, session.UserRank) {
		EasyResponse(w, core.NebErrorAuthFail, "Cannot access branch: unauthorized or branch does not exist")
		return
	}
	list, err := core.GetBranchUpdates(branch)
	if err != nil {
		EasyErrorResponse(w, core.NebError, err)
	}
	EasyDataResponse(w, list)
}
func getCompleteBranchUpdates(w http.ResponseWriter, r *http.Request) {
	data := core.GetCompleteUpdatesInfos()
	EasyDataResponse(w, data)
}