parse_hide_refs_config: tell parse_config_key we don't want a subsection
This lets us avoid declaring some otherwise useless variables. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
							parent
							
								
									48f8d9f732
								
							
						
					
					
						commit
						ad8c7cdadd
					
				
							
								
								
									
										7
									
								
								refs.c
								
								
								
								
							
							
						
						
									
										7
									
								
								refs.c
								
								
								
								
							|  | @ -1029,11 +1029,10 @@ static struct string_list *hide_refs; | ||||||
|  |  | ||||||
| int parse_hide_refs_config(const char *var, const char *value, const char *section) | int parse_hide_refs_config(const char *var, const char *value, const char *section) | ||||||
| { | { | ||||||
| 	const char *subsection, *key; | 	const char *key; | ||||||
| 	int subsection_len; |  | ||||||
| 	if (!strcmp("transfer.hiderefs", var) || | 	if (!strcmp("transfer.hiderefs", var) || | ||||||
| 	    (!parse_config_key(var, section, &subsection, &subsection_len, &key) | 	    (!parse_config_key(var, section, NULL, NULL, &key) && | ||||||
| 	    && !subsection && !strcmp(key, "hiderefs"))) { | 	     !strcmp(key, "hiderefs"))) { | ||||||
| 		char *ref; | 		char *ref; | ||||||
| 		int len; | 		int len; | ||||||
|  |  | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Jeff King
						Jeff King