From 28a20e09220d5191f8920d7bd78c961ae9cd05e0 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 23 Feb 2024 11:00:33 -0600 Subject: add repo.IsPrivate() --- gitConfig.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gitConfig.go') diff --git a/gitConfig.go b/gitConfig.go index 633d732..bc78f9d 100644 --- a/gitConfig.go +++ b/gitConfig.go @@ -229,6 +229,14 @@ func (rs *RepoStatus) ReadOnly() bool { } } +func (rs *RepoStatus) SetReadOnly(b bool) { + if b { + rs.readOnly.SetText("true") + } else { + rs.readOnly.SetText("false") + } +} + func (rs *RepoStatus) processBranch(branch string) { fullpath := rs.realPath.String() log.Log(INFO, " ", branch) -- cgit v1.2.3