Documentation
¶
Index ¶
- func ArmoredPublicKey(u *User) *bytes.Buffer
- func HighlightedBlobHTML(b *Blob) template.HTML
- func InitDB() *bolt.DB
- type Blame
- type Blob
- type Commit
- type Diff
- type DiffHunk
- type Ref
- type Repo
- func (repo *Repo) CommitLog(ref *Ref) []*Commit
- func (r Repo) LookupCommit(hash string) (*Commit, error)
- func (r *Repo) LookupRef(ref string) (Ref, error)
- func (repo *Repo) ReadBlob(commit *Commit, filepath string) (*Blob, error)
- func (repo *Repo) ReadBlobBlame(commit *Commit, filepath string) (*Blame, error)
- func (repo *Repo) Refs() []*Ref
- type TreeEntry
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArmoredPublicKey ¶
func HighlightedBlobHTML ¶
TODO: possibly do this for known blobs in a separate thread when staring the server?
Types ¶
type Commit ¶
type Commit struct { User *User *git.Commit }
func MakeCommit ¶
func MakeCommit(g *git.Commit) *Commit
type TreeEntry ¶
type TreeEntry struct { DirPath string *git.TreeEntry }
func GetSubTree ¶
TODO: combine getTreeEntry and getSubTree into one function
func GetTreeEntries ¶
func GetTreeEntry ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.