| 
															
																@@ -17,7 +17,7 @@ import ( 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 type Analyser struct { 
															 | 
															
															 | 
															
																 type Analyser struct { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 	Repository  *git.Repository 
															 | 
															
															 | 
															
																 	Repository  *git.Repository 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 	Granularity int 
															 | 
															
															 | 
															
																 	Granularity int 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-	OnProgress  func(int) 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+	OnProgress  func(int, int) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 } 
															 | 
															
															 | 
															
																 } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																 func checkClose(c io.Closer) { 
															 | 
															
															 | 
															
																 func checkClose(c io.Closer) { 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -105,7 +105,7 @@ func (analyser *Analyser) handleModification( 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 	str_to := str(blob_to) 
															 | 
															
															 | 
															
																 	str_to := str(blob_to) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 	file, exists := files[change.From.Name] 
															 | 
															
															 | 
															
																 	file, exists := files[change.From.Name] 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 	if !exists { 
															 | 
															
															 | 
															
																 	if !exists { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-		fmt.Fprintf(os.Stderr, "warning: file %s does not exist\n", change.From.Name) 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+		// fmt.Fprintf(os.Stderr, "warning: file %s does not exist\n", change.From.Name) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 		analyser.handleInsertion(change, day, status, files) 
															 | 
															
															 | 
															
																 		analyser.handleInsertion(change, day, status, files) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 		return 
															 | 
															
															 | 
															
																 		return 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 	} 
															 | 
															
															 | 
															
																 	} 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -212,7 +212,7 @@ func (analyser *Analyser) Analyse() [][]int64 { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 	} 
															 | 
															
															 | 
															
																 	} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 	onProgress := analyser.OnProgress 
															 | 
															
															 | 
															
																 	onProgress := analyser.OnProgress 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 	if onProgress == nil { 
															 | 
															
															 | 
															
																 	if onProgress == nil { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-		onProgress = func(int) {} 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+		onProgress = func(int, int) {} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 	} 
															 | 
															
															 | 
															
																 	} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																 	// current daily alive number of lines; key is the number of days from the 
															 | 
															
															 | 
															
																 	// current daily alive number of lines; key is the number of days from the 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -230,7 +230,7 @@ func (analyser *Analyser) Analyse() [][]int64 { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 	prev_day := 0 
															 | 
															
															 | 
															
																 	prev_day := 0 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																 	for index, commit := range commits { 
															 | 
															
															 | 
															
																 	for index, commit := range commits { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-		onProgress(index) 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+		onProgress(index, len(commits)) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 		tree, err := commit.Tree() 
															 | 
															
															 | 
															
																 		tree, err := commit.Tree() 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 		if err != nil { 
															 | 
															
															 | 
															
																 		if err != nil { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 			panic(err) 
															 | 
															
															 | 
															
																 			panic(err) 
															 |