Re: [PATCH v2] builtin/commit.c: memoize git-path for COMMIT_EDITMSG

2016-06-09 Thread Junio C Hamano
Pranit Bauva writes: > On Wed, May 25, 2016 at 12:49 AM, Pranit Bauva wrote: >> This is a follow up commit for f932729c (memoize common git-path >> "constant" files, 10-Aug-2015). >> >> The many function calls to git_path() are replaced by >>

Re: [PATCH v2] builtin/commit.c: memoize git-path for COMMIT_EDITMSG

2016-06-09 Thread Pranit Bauva
Hey Jeff, On Thu, Jun 9, 2016 at 12:28 PM, Jeff King wrote: > On Tue, Jun 07, 2016 at 08:25:17PM +0530, Pranit Bauva wrote: > >> On Wed, May 25, 2016 at 12:49 AM, Pranit Bauva >> wrote: >> > This is a follow up commit for f932729c (memoize common git-path

Re: [PATCH v2] builtin/commit.c: memoize git-path for COMMIT_EDITMSG

2016-06-09 Thread Jeff King
On Tue, Jun 07, 2016 at 08:25:17PM +0530, Pranit Bauva wrote: > On Wed, May 25, 2016 at 12:49 AM, Pranit Bauva wrote: > > This is a follow up commit for f932729c (memoize common git-path > > "constant" files, 10-Aug-2015). > > > > The many function calls to git_path() are

Re: [PATCH v2] builtin/commit.c: memoize git-path for COMMIT_EDITMSG

2016-06-07 Thread Pranit Bauva
On Wed, May 25, 2016 at 12:49 AM, Pranit Bauva wrote: > This is a follow up commit for f932729c (memoize common git-path > "constant" files, 10-Aug-2015). > > The many function calls to git_path() are replaced by > git_path_commit_editmsg() and which thus eliminates the

[PATCH v2] builtin/commit.c: memoize git-path for COMMIT_EDITMSG

2016-05-24 Thread Pranit Bauva
This is a follow up commit for f932729c (memoize common git-path "constant" files, 10-Aug-2015). The many function calls to git_path() are replaced by git_path_commit_editmsg() and which thus eliminates the need to repeatedly compute the location of "COMMIT_EDITMSG". Mentored-by: Lars Schneider