summaryrefslogtreecommitdiffstats
path: root/gita/common.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2020-11-02 15:57:16 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2020-11-02 15:57:16 +0000
commit715f81ffde428759c902cdd16c9b8d03f2bdf463 (patch)
tree70b3b6429a411371bff8907340157d2122760fab /gita/common.py
parentAdding upstream version 0.10.10. (diff)
downloadgita-715f81ffde428759c902cdd16c9b8d03f2bdf463.tar.xz
gita-715f81ffde428759c902cdd16c9b8d03f2bdf463.zip
Adding upstream version 0.11.9.upstream/0.11.9
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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)