From: Karl Hasselström Date: Sun, 27 Jan 2008 08:06:15 +0000 (+0100) Subject: Create index and worktree objects just once X-Git-Tag: v0.15-rc1~295 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/a0848ecfc1bee1de93d47e15c9cc3ec49b5a6516?hp=a0848ecfc1bee1de93d47e15c9cc3ec49b5a6516 Create index and worktree objects just once Create the objects for a repository's default index, worktree, and index+worktree just once. Both for performance (though the gain is probably negligible), and for future-proofing if we ever add mutable state to those objects. And make them properties while we're at it. Signed-off-by: Karl Hasselström ---