From: Jeff King Date: Wed, 16 Mar 2016 17:39:41 GMT Subject: Re: [PATCH] help.c: strip suffix only if the STRIP_EXTENSION defined Message-ID: <20160316173941.GA9142@sigill.intra.peff.net> In-Reply-To: On Wed, Mar 16, 2016 at 11:36:49PM +0600, Alexander Kuleshov wrote: > > I also wonder if this should be sharing the strip_extension() helper > > added in your 63ca1c0. > > Yes, I want to move strip_extension() (from 63ca1c0) to the git-compat-util.h > and adapt/reuse it in the help.c. What do you think about this? Naively, it sounds like a good idea to me, but I haven't looked too hard. There may be complications in the interface (it looks like the helper wants to make a new string, but one in help.c makes its own copy into the flex-array struct). -Peff