From: Jeff King Date: Mon, 15 Jan 2018 21:44:19 GMT Subject: Re: [PATCH v2 04/18] cat-file: move struct expand_data into ref-filter Message-ID: <20180115214419.GE4778@sigill.intra.peff.net> In-Reply-To: <01020160df6dc532-75f3ef78-26cb-4751-9ded-eb0e8d23833b-000000@eu-west-1.amazonses.com> On Wed, Jan 10, 2018 at 09:36:41AM +0000, Olga Telezhnaya wrote: > Need that for further reusing of formatting logic in cat-file. > Have plans to get rid of using expand_data in cat-file at all, > and use it only in ref-filter for collecting, formatting and printing > needed data. I think some of these will want to remain in cat-file.c. For instance, split_on_whitespace is not something that ref-filter.c itself would care about. I'd expect in the endgame for cat-file to keep its own split_on_whitespace flag, and to set it based on the presence of the %(rest) flag, which it can check by seeing if the "rest" atom is in the "used_atom" list after parsing the format. -Peff