From: Jeff King Date: Thu, 03 Mar 2016 22:29:03 GMT Subject: Re: [PATCH] index-pack: add a helper function to derive .idx/.keep filename Message-ID: <20160303222902.GB26712@sigill.intra.peff.net> In-Reply-To: On Thu, Mar 03, 2016 at 01:37:18PM -0800, Junio C Hamano wrote: > These are automatically named by replacing .pack suffix in the > name of the packfile. Add a small helper to do so, as I'll be > adding another one soonish. > > Signed-off-by: Junio C Hamano > --- > builtin/index-pack.c | 35 +++++++++++++++++------------------ > 1 file changed, 17 insertions(+), 18 deletions(-) Even without the upcoming "another one", this is a nice readability improvement. -Peff