@ -588,6 +588,7 @@ type DiffFile struct { 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
						IsSubmodule              bool   
					 
					 
					 
						IsSubmodule              bool   
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
						Sections                 [ ] * DiffSection   
					 
					 
					 
						Sections                 [ ] * DiffSection   
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
						IsIncomplete             bool   
					 
					 
					 
						IsIncomplete             bool   
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					 
					 
					 
					 
						IsIncompleteLineTooLong  bool   
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
						IsProtected              bool   
					 
					 
					 
						IsProtected              bool   
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					}  
					 
					 
					 
					}  
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					
 
					 
					 
					 
					
 
				
			 
			
		
	
	
		
		
			
				
					
						
							
								 
							 
						
						
							
								 
							 
						
						
					 
					 
					@ -935,6 +936,7 @@ func parseHunks(curFile *DiffFile, maxLines, maxLineCharacters int, input *bufio 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
						for  {   
					 
					 
					 
						for  {   
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
							for  isFragment  {   
					 
					 
					 
							for  isFragment  {   
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
								curFile . IsIncomplete  =  true   
					 
					 
					 
								curFile . IsIncomplete  =  true   
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					 
					 
					 
					 
								curFile . IsIncompleteLineTooLong  =  true   
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
								_ ,  isFragment ,  err  =  input . ReadLine ( )   
					 
					 
					 
								_ ,  isFragment ,  err  =  input . ReadLine ( )   
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
								if  err  !=  nil  {   
					 
					 
					 
								if  err  !=  nil  {   
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
									// Now by the definition of ReadLine this cannot be io.EOF
   
					 
					 
					 
									// Now by the definition of ReadLine this cannot be io.EOF
   
				
			 
			
		
	
	
		
		
			
				
					
						
							
								 
							 
						
						
							
								 
							 
						
						
					 
					 
					@ -1062,6 +1064,7 @@ func parseHunks(curFile *DiffFile, maxLines, maxLineCharacters int, input *bufio 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
							line  :=  string ( lineBytes )   
					 
					 
					 
							line  :=  string ( lineBytes )   
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
							if  isFragment  {   
					 
					 
					 
							if  isFragment  {   
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
								curFile . IsIncomplete  =  true   
					 
					 
					 
								curFile . IsIncomplete  =  true   
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					 
					 
					 
					 
								curFile . IsIncompleteLineTooLong  =  true   
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
								for  isFragment  {   
					 
					 
					 
								for  isFragment  {   
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
									lineBytes ,  isFragment ,  err  =  input . ReadLine ( )   
					 
					 
					 
									lineBytes ,  isFragment ,  err  =  input . ReadLine ( )   
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
									if  err  !=  nil  {   
					 
					 
					 
									if  err  !=  nil  {   
				
			 
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
							 
						
					 
					 
					@ -1073,6 +1076,7 @@ func parseHunks(curFile *DiffFile, maxLines, maxLineCharacters int, input *bufio 
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
							}   
					 
					 
					 
							}   
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
							if  len ( line )  >  maxLineCharacters  {   
					 
					 
					 
							if  len ( line )  >  maxLineCharacters  {   
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
								curFile . IsIncomplete  =  true   
					 
					 
					 
								curFile . IsIncomplete  =  true   
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
					 
					 
					 
					 
								curFile . IsIncompleteLineTooLong  =  true   
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
								line  =  line [ : maxLineCharacters ]   
					 
					 
					 
								line  =  line [ : maxLineCharacters ]   
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
							}   
					 
					 
					 
							}   
				
			 
			
		
	
		
		
			
				
					
					 
					 
					 
							curSection . Lines [ len ( curSection . Lines ) - 1 ] . Content  =  line   
					 
					 
					 
							curSection . Lines [ len ( curSection . Lines ) - 1 ] . Content  =  line