From 54026b7585badf3736ad97f6f6e1d656d9f469e2 Mon Sep 17 00:00:00 2001 From: Alberto Bertogli Date: Sat, 2 Nov 2013 21:12:50 +0000 Subject: Make embedding markdown and images configurable per-repo This patch introduces the embed_markdown and embed_images configuration options, so users can enable and disable those features on a per-repository basis. Signed-off-by: Alberto Bertogli --- git-arr | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'git-arr') diff --git a/git-arr b/git-arr index 9b3c246..a9737ac 100755 --- a/git-arr +++ b/git-arr @@ -55,6 +55,8 @@ def load_config(path): 'web_url_file': 'web_url', 'git_url': '', 'git_url_file': 'cloneurl', + 'embed_markdown': 'yes', + 'embed_images': 'no', } config = configparser.SafeConfigParser(defaults) @@ -115,6 +117,9 @@ def load_config(path): if not r.info.git_url and os.path.isfile(git_url_file): r.info.git_url = open(git_url_file).read() + r.info.embed_markdown = config.getboolean(s, 'embed_markdown') + r.info.embed_images = config.getboolean(s, 'embed_images') + repos[r.name] = r def find_git_dir(path): -- cgit v1.2.3