From 715f81ffde428759c902cdd16c9b8d03f2bdf463 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 2 Nov 2020 16:57:16 +0100 Subject: Adding upstream version 0.11.9. Signed-off-by: Daniel Baumann --- gita/common.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gita/common.py') diff --git a/gita/common.py b/gita/common.py index 0a271fc..ef3933d 100644 --- a/gita/common.py +++ b/gita/common.py @@ -6,3 +6,11 @@ def get_config_dir() -> str: os.path.expanduser('~'), '.config') root = os.path.join(parent, "gita") return root + + +def get_config_fname(fname: str) -> str: + """ + Return the file name that stores the repo locations. + """ + root = get_config_dir() + return os.path.join(root, fname) -- cgit v1.2.3