diff options
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) |
