From: Miklos Vajna Date: Sat, 24 May 2008 21:55:30 GMT Subject: Re: [PATCH 1/5] Move reset_index_file() to a new reset.c Message-ID: <20080524215530.GA27724@genesis.frugalware.org> In-Reply-To: On Sat, May 24, 2008 at 12:21:42AM -0400, Daniel Barkalow wrote: > You might as well use unpack_trees() directly here, instead of running a > separate command. In fact, you might skip making a function here, and just > call unpack_trees() where you'd use it. (And maybe have a function to > initialize a struct unpack_tree_options to some common defaults to make it > easy to see what's being done.) Thanks for the suggestion, I did so; as a result now patch #1 and #3 are no longer necessary. (I haven't sent out a new series yet, but it's in git://repo.or.cz/git/vmiklos.git builtin-merge.) Maybe builtin-reset could use unpack_trees() directly as well? I don't know if it's just a question of "nobody did it yet", or there is some reason for not using unpack_trees() there.