From 14d9faa61e2d38d31593c8536121d814947240fc Mon Sep 17 00:00:00 2001 From: Zaq? Wiedmann Date: Tue, 28 Aug 2018 17:32:29 -0700 Subject: config: add commentChar to core config struct Signed-off-by: Zaq? Wiedmann --- config/config.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'config/config.go') diff --git a/config/config.go b/config/config.go index ce6506d..a637f6d 100644 --- a/config/config.go +++ b/config/config.go @@ -40,6 +40,9 @@ type Config struct { IsBare bool // Worktree is the path to the root of the working tree. Worktree string + // CommentChar is the character indicating the start of a + // comment for commands like commit and tag + CommentChar string } Pack struct { @@ -113,6 +116,7 @@ const ( urlKey = "url" bareKey = "bare" worktreeKey = "worktree" + commentCharKey = "commentChar" windowKey = "window" mergeKey = "merge" @@ -151,6 +155,7 @@ func (c *Config) unmarshalCore() { } c.Core.Worktree = s.Options.Get(worktreeKey) + c.Core.CommentChar = s.Options.Get(commentCharKey) } func (c *Config) unmarshalPack() error { -- cgit