summaryrefslogtreecommitdiffstats
path: root/gita/common.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2020-11-02 15:57:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2020-11-02 15:57:20 +0000
commitc0456228aa67dadc0b1d28712b4b94a7d1f40054 (patch)
tree95d184e36876ec4e1539fa6806409f458762b270 /gita/common.py
parentReleasing debian version 0.10.10-1. (diff)
downloadgita-c0456228aa67dadc0b1d28712b4b94a7d1f40054.tar.xz
gita-c0456228aa67dadc0b1d28712b4b94a7d1f40054.zip
Merging upstream version 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)