mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	This commit is contained in:
		@@ -344,7 +344,7 @@ func (diffFile *DiffFile) GetHighlightClass() string {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// GetTailSection creates a fake DiffLineSection if the last section is not the end of the file
 | 
					// GetTailSection creates a fake DiffLineSection if the last section is not the end of the file
 | 
				
			||||||
func (diffFile *DiffFile) GetTailSection(gitRepo *git.Repository, leftCommitID, rightCommitID string) *DiffSection {
 | 
					func (diffFile *DiffFile) GetTailSection(gitRepo *git.Repository, leftCommitID, rightCommitID string) *DiffSection {
 | 
				
			||||||
	if diffFile.Type != DiffFileChange || diffFile.IsBin || diffFile.IsLFSFile {
 | 
						if len(diffFile.Sections) == 0 || diffFile.Type != DiffFileChange || diffFile.IsBin || diffFile.IsLFSFile {
 | 
				
			||||||
		return nil
 | 
							return nil
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	leftCommit, err := gitRepo.GetCommit(leftCommitID)
 | 
						leftCommit, err := gitRepo.GetCommit(leftCommitID)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user