diff options
| author | Jeff Carr <[email protected]> | 2024-02-23 11:00:33 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-23 11:00:33 -0600 |
| commit | 28a20e09220d5191f8920d7bd78c961ae9cd05e0 (patch) | |
| tree | e6b294e8e6a3743188a79e1cdd93c5cb43eec04a /gitConfig.go | |
| parent | 5268267408166a8b6d80ada8231399d657a21243 (diff) | |
add repo.IsPrivate()v0.20.10
Diffstat (limited to 'gitConfig.go')
| -rw-r--r-- | gitConfig.go | 8 |
1 files changed, 8 insertions, 0 deletions
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) |
