You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
551 B
Go

package giq
import "log"
type Giqi interface {
Whoami() string
GitStruct(string, string, string, string) Git
AddBareWorktree(string, string, string, string)
RemoveBareWorktree(string, string, string, string)
}
type Git struct {
RepoPath string
Worktree string
TmpRepoPath string
IsBare bool
Branch string
PreviousCommit string
LastCommit string
IndexPath string
Publish bool
}
type Gogit struct{}
type Sysgit struct{}
func check(e error) {
if e != nil {
log.Fatal(e)
panic(e)
}
}