(workdir, gitdir string)
| 34 | } |
| 35 | |
| 36 | func NewConfig(workdir, gitdir string) *Configuration { |
| 37 | if len(gitdir) == 0 && len(workdir) > 0 { |
| 38 | gitdir = filepath.Join(workdir, ".git") |
| 39 | } |
| 40 | return &Configuration{WorkDir: workdir, GitDir: gitdir} |
| 41 | } |
| 42 | |
| 43 | // NewReadOnlyConfig creates a new configuration that returns an error if an |
| 44 | // attempt to write to the configuration is made. |
no outgoing calls
no test coverage detected