commit-graph: add '--reachable' option
When writing commit-graph files, it can be convenient to ask for all reachable commits (starting at the ref set) in the resulting file. This is particularly helpful when writing to stdin is complicated, such as a future integration with 'git gc'. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
		
				
					committed by
					
						
						Junio C Hamano
					
				
			
			
				
	
			
			
			
						parent
						
							d88b14b3fd
						
					
				
				
					commit
					59fb87701f
				
			@ -48,6 +48,7 @@ struct commit_graph {
 | 
			
		||||
 | 
			
		||||
struct commit_graph *load_commit_graph_one(const char *graph_file);
 | 
			
		||||
 | 
			
		||||
void write_commit_graph_reachable(const char *obj_dir, int append);
 | 
			
		||||
void write_commit_graph(const char *obj_dir,
 | 
			
		||||
			struct string_list *pack_indexes,
 | 
			
		||||
			struct string_list *commit_hex,
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user