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

Re: [PATCH 3/5] Make verbosity configurable in reset_index_file()

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

On Tue, May 27, 2008 at 10:08:01AM -0400, Kristian H?gsberg [off-list ref] wrote:
quoted
-int reset_index_file(const unsigned char *sha1, int is_hard_reset)
+int reset_index_file(const unsigned char *sha1, int is_hard_reset, int verbose)
I would suggest using flags here instead of a bunch of boolean args.
Consider the readability of

    reset_index_file(sha1, 1, 1);

vs

    reset_index_file(sha1, RESET_HARD | RESET_VERBOSE);
Thanks for the suggestion, but - as Daniel already pointed out - the
same functionality can be achieved by using the unpack_trees() API
directly, so the patch is useless.

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