Remove unused "zeropad" entry from tree_list_entry
That was a hack, only needed because 'git fsck-objects' didn't look at the raw tree format. Now that fsck traverses the tree itself, we can drop it. Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>maint
							parent
							
								
									e9a95bef7f
								
							
						
					
					
						commit
						3bc1eca91e
					
				
							
								
								
									
										3
									
								
								tree.c
								
								
								
								
							
							
						
						
									
										3
									
								
								tree.c
								
								
								
								
							|  | @ -217,6 +217,7 @@ struct tree_entry_list *create_tree_entry_list(struct tree *tree) | ||||||
| 		struct tree_entry_list *entry; | 		struct tree_entry_list *entry; | ||||||
|  |  | ||||||
| 		sha1 = tree_entry_extract(&desc, &path, &mode); | 		sha1 = tree_entry_extract(&desc, &path, &mode); | ||||||
|  | 		update_tree_entry(&desc); | ||||||
|  |  | ||||||
| 		entry = xmalloc(sizeof(struct tree_entry_list)); | 		entry = xmalloc(sizeof(struct tree_entry_list)); | ||||||
| 		entry->name = path; | 		entry->name = path; | ||||||
|  | @ -225,10 +226,8 @@ struct tree_entry_list *create_tree_entry_list(struct tree *tree) | ||||||
| 		entry->directory = S_ISDIR(mode) != 0; | 		entry->directory = S_ISDIR(mode) != 0; | ||||||
| 		entry->executable = (mode & S_IXUSR) != 0; | 		entry->executable = (mode & S_IXUSR) != 0; | ||||||
| 		entry->symlink = S_ISLNK(mode) != 0; | 		entry->symlink = S_ISLNK(mode) != 0; | ||||||
| 		entry->zeropad = *(const char *)(desc.buf) == '0'; |  | ||||||
| 		entry->next = NULL; | 		entry->next = NULL; | ||||||
|  |  | ||||||
| 		update_tree_entry(&desc); |  | ||||||
| 		*list_p = entry; | 		*list_p = entry; | ||||||
| 		list_p = &entry->next; | 		list_p = &entry->next; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
							
								
								
									
										1
									
								
								tree.h
								
								
								
								
							
							
						
						
									
										1
									
								
								tree.h
								
								
								
								
							|  | @ -10,7 +10,6 @@ struct tree_entry_list { | ||||||
| 	unsigned directory : 1; | 	unsigned directory : 1; | ||||||
| 	unsigned executable : 1; | 	unsigned executable : 1; | ||||||
| 	unsigned symlink : 1; | 	unsigned symlink : 1; | ||||||
| 	unsigned zeropad : 1; |  | ||||||
| 	unsigned int mode; | 	unsigned int mode; | ||||||
| 	const char *name; | 	const char *name; | ||||||
| 	const unsigned char *sha1; | 	const unsigned char *sha1; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Linus Torvalds
						Linus Torvalds