From e667c3c52a535ee67fe895bb0240fbad6e920087 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 7 Mar 2026 18:09:20 +0800 Subject: refstore/files: Accept timeout instead of reading from config And split things up again. --- refstore/files/root_for.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 refstore/files/root_for.go (limited to 'refstore/files/root_for.go') diff --git a/refstore/files/root_for.go b/refstore/files/root_for.go new file mode 100644 index 00000000..cb968ad9 --- /dev/null +++ b/refstore/files/root_for.go @@ -0,0 +1,13 @@ +package files + +import ( + "os" +) + +func (store *Store) rootFor(kind rootKind) *os.Root { + if kind == rootCommon { + return store.commonRoot + } + + return store.gitRoot +} -- cgit v1.3.1-10-gc9f91