summaryrefslogtreecommitdiff
path: root/levenshtein.c
diff options
context:
space:
mode:
authorPranit Bauva <pranit.bauva@gmail.com>2016-05-24 19:19:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-06-09 17:03:10 (GMT)
commite51b0dfc978649b9f0e3a594030810cc472a8b08 (patch)
treee62c9e91ae6fa9bfed42b9bd49e397927eb9fe30 /levenshtein.c
parent49fa3dc76179e04b0833542fa52d0f287a4955ac (diff)
downloadgit-e51b0dfc978649b9f0e3a594030810cc472a8b08.zip
git-e51b0dfc978649b9f0e3a594030810cc472a8b08.tar.gz
git-e51b0dfc978649b9f0e3a594030810cc472a8b08.tar.bz2
builtin/commit.c: memoize git-path for COMMIT_EDITMSG
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 <larsxschneider@gmail.com> Mentored-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Pranit Bauva <pranit.bauva@gmail.com> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'levenshtein.c')
0 files changed, 0 insertions, 0 deletions