summaryrefslogtreecommitdiffstats
path: root/gita/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'gita/common.py')
-rw-r--r--gita/common.py8
1 files changed, 8 insertions, 0 deletions
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)