Documentation
¶
Overview ¶
Copyright © 2020 srz_zumix <https://github.com/srz-zumix>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Index ¶
- Constants
- func DefaultDiffOptions() (git.DiffOptions, error)
- func DiffToBuf(diff *git.Diff, format git.DiffFormat) ([]byte, error)
- func IsErrorCode(err error, errCode git.ErrorCode) bool
- func OpenRepository(path string) (*git.Repository, error)
- type Blob
- type Commit
- type Diff
- type DiffDelta
- type DiffForEachHunkCallback
- type DiffOptions
- type ErrorCode
- type Object
- type ObjectType
- type Odb
- type Oid
- type Reference
- type Repository
- type RevWalk
- type Tree
- type TreeEntry
Constants ¶
const DeltaAdded = git.DeltaAdded
const DeltaConflicted = git.DeltaConflicted
const DeltaCopied = git.DeltaCopied
const DeltaDeleted = git.DeltaDeleted
const DeltaIgnored = git.DeltaIgnored
const DeltaModified = git.DeltaModified
const DeltaRenamed = git.DeltaRenamed
const DeltaTypeChange = git.DeltaTypeChange
const DeltaUnmodified = git.DeltaUnmodified
const DeltaUnreadable = git.DeltaUnreadable
const DeltaUntracked = git.DeltaUntracked
const DiffDetailFiles = git.DiffDetailFiles
const DiffDetailHunks = git.DiffDetailHunks
const DiffDetailLines = git.DiffDetailLines
const DiffFormatNameOnly = git.DiffFormatNameOnly
const DiffFormatNameStatus = git.DiffFormatNameStatus
const DiffFormatPatch = git.DiffFormatPatch
const DiffFormatPatchHeader = git.DiffFormatPatchHeader
const DiffFormatRaw = git.DiffFormatRaw
const ErrIterOver = git.ErrIterOver
const FilemodeBlob = git.FilemodeBlob
const FilemodeBlobExecutable = git.FilemodeBlobExecutable
const FilemodeCommit = git.FilemodeCommit
const FilemodeLink = git.FilemodeLink
const FilemodeTree = git.FilemodeTree
const ObjectBlob = git.ObjectBlob
const ObjectCommit = git.ObjectCommit
const ObjectTree = git.ObjectTree
const SortNone = git.SortNone
const SortReverse = git.SortReverse
const SortTime = git.SortTime
const SortTopological = git.SortTopological
const SubmoduleIgnoreAll = git.SubmoduleIgnoreAll
const SubmoduleIgnoreDirty = git.SubmoduleIgnoreDirty
const SubmoduleIgnoreNone = git.SubmoduleIgnoreNone
const SubmoduleIgnoreUntracked = git.SubmoduleIgnoreUntracked
Variables ¶
This section is empty.
Functions ¶
func DefaultDiffOptions ¶
func DefaultDiffOptions() (git.DiffOptions, error)
func OpenRepository ¶
func OpenRepository(path string) (*git.Repository, error)
Types ¶
type DiffForEachHunkCallback ¶
type DiffForEachHunkCallback = git.DiffForEachHunkCallback
type DiffOptions ¶
type DiffOptions = git.DiffOptions
type ObjectType ¶
type ObjectType = git.ObjectType
type Repository ¶
type Repository = git.Repository