Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/grep.h
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2021-08-17 00:09:55 +0300
committerJunio C Hamano <gitster@pobox.com>2021-09-08 21:48:02 +0300
commitdd45471a3717bcd6561e405371b81928214ad1b5 (patch)
tree39ff76326814149ad8fd3e06d0e1c62342ef7553 /grep.h
parent78ca584f1c4a720988f6066693b4d2ccde920813 (diff)
grep: allocate subrepos on heap
Currently, struct repository objects corresponding to submodules are allocated on the stack in grep_submodule(). This currently works because they will not be used once grep_submodule() exits, but a subsequent patch will require these structs to be accessible for longer (perhaps even in another thread). Allocate them on the heap and clear them only at the very end. Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Reviewed-by: Matheus Tavares <matheus.bernardino@usp.br> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'grep.h')
0 files changed, 0 insertions, 0 deletions