Thread (10 messages) flat view 10 messages, 3 authors, 2016-06-15

Re: [PATCH 1/5] Move reset_index_file() to a new reset.c

From: Miklos Vajna <hidden>
Date: 2016-06-15 22:44:38

On Sat, May 24, 2008 at 12:21:42AM -0400, Daniel Barkalow [off-list ref] 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.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help