Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainDB ¶
type ChainDB struct {
// contains filtered or unexported fields
}
ChainDB chains a RepoDB and a fallback DB, always querying the first, and falling back to querying the second. This i.e. allows to chain a FSDB and a RepoDB to both handle files that are already committed and those that are not, yet.
func NewChainDB ¶
type FSDB ¶
type FSDB struct{}
FSDB will extract information from the underlying file system.
func (*FSDB) Modified ¶
Modified will look at the directory's and all files modification times, and recursive into each contained directory's to return the most recent modified time.
This function has different semantics than the file system's mtime: Most file systems change the mtime of the directory when a new file or directory is created inside it, the mtime will not change when a file has been modified.
It will not descend into directories it considers hidden (their name is prefixed by a dot), except when the given directory itself is dot-hidden.
type RepoDB ¶
type RepoDB struct {
// contains filtered or unexported fields
}
RepoDB uses the information from a repository to extract better meta data.