coccinelle: update commit.cocci
A recent patch series renamed the get_commit_tree_from_graph method but forgot to update the coccinelle script that exempted it from rules regarding accesses to 'maybe_tree'. This fixes that oversight to bring the coccinelle scripts back to a good state. 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
						
							d4f65b8d14
						
					
				
				
					commit
					b18ef13a3f
				
			@ -12,7 +12,7 @@ expression c;
 | 
			
		||||
 | 
			
		||||
// These excluded functions must access c->maybe_tree direcly.
 | 
			
		||||
@@
 | 
			
		||||
identifier f !~ "^(get_commit_tree|get_commit_tree_in_graph|load_tree_for_commit)$";
 | 
			
		||||
identifier f !~ "^(get_commit_tree|get_commit_tree_in_graph_one|load_tree_for_commit)$";
 | 
			
		||||
expression c;
 | 
			
		||||
@@
 | 
			
		||||
  f(...) {...
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user