git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question about unpack-trees.c and tree_entry_list
@ 2007-07-22 16:17 David Kastrup
  2007-07-24 21:54 ` [PATCH] cleanup unpack-trees.c: shrink struct tree_entry_list René Scharfe
  0 siblings, 1 reply; 2+ messages in thread
From: David Kastrup @ 2007-07-22 16:17 UTC (permalink / raw)
  To: git


The definition of tree_entry_list ist the following

struct tree_entry_list {
	struct tree_entry_list *next;
	unsigned directory : 1;
	unsigned executable : 1;
	unsigned symlink : 1;
	unsigned int mode;
	const char *name;
	const unsigned char *sha1;
};

but it appears to me that the only of the bit fields that is used at
all is "directory" : all other uses revert to "mode" which directory
presumably could do as well.

Is there something I am overlooking?

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-07-24 21:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-22 16:17 Question about unpack-trees.c and tree_entry_list David Kastrup
2007-07-24 21:54 ` [PATCH] cleanup unpack-trees.c: shrink struct tree_entry_list René Scharfe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).