 4947367267
			
		
	
	4947367267
	
	
	
		
			
			The traverse_commit_list() API takes two callback functions, one to show commit objects, and the other to show other kinds of objects. Even though the former has a callback data parameter, so that the callback does not have to rely on global state, the latter does not. Give the show_objects() callback the same callback data parameter. Signed-off-by: Junio C Hamano <gitster@pobox.com>
		
			
				
	
	
		
			12 lines
		
	
	
		
			429 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			429 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef LIST_OBJECTS_H
 | |
| #define LIST_OBJECTS_H
 | |
| 
 | |
| typedef void (*show_commit_fn)(struct commit *, void *);
 | |
| typedef void (*show_object_fn)(struct object *, const struct name_path *, const char *, void *);
 | |
| void traverse_commit_list(struct rev_info *, show_commit_fn, show_object_fn, void *);
 | |
| 
 | |
| typedef void (*show_edge_fn)(struct commit *);
 | |
| void mark_edges_uninteresting(struct commit_list *, struct rev_info *, show_edge_fn);
 | |
| 
 | |
| #endif
 |