mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 02:46:04 +01:00 
			
		
		
		
	Use commit graph files for listing pages (#7314)
* Experimental support for git commit graph files and bloom filter index Signed-off-by: Filip Navara <filip.navara@gmail.com> * Force vendor of commitgraph Signed-off-by: Filip Navara <filip.navara@gmail.com> * Remove bloom filter experiment and debug prints * Remove old code for building commit graphs * Remove unused function * Remove mmap usage * gofmt * sort vendor/modules.txt * Add copyright header and log commit-graph error
This commit is contained in:
		| @@ -50,7 +50,17 @@ func GetNote(repo *Repository, commitID string, note *Note) error { | ||||
| 		return err | ||||
| 	} | ||||
|  | ||||
| 	lastCommits, err := getLastCommitForPaths(commit, "", []string{commitID}) | ||||
| 	commitNodeIndex, commitGraphFile := repo.CommitNodeIndex() | ||||
| 	if commitGraphFile != nil { | ||||
| 		defer commitGraphFile.Close() | ||||
| 	} | ||||
|  | ||||
| 	commitNode, err := commitNodeIndex.Get(commit.Hash) | ||||
| 	if err != nil { | ||||
| 		return nil | ||||
| 	} | ||||
|  | ||||
| 	lastCommits, err := getLastCommitForPaths(commitNode, "", []string{commitID}) | ||||
| 	if err != nil { | ||||
| 		return err | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user