func processDelete(index bleve.Index, repo *git.Repository, path string) { log.Printf("delete: %s", path) rp := relativePath(path) err := index.Delete(rp) if err != nil { log.Print(err) } }