Movatterモバイル変換


[0]ホーム

URL:


Notice  The highest tagged major version isv5.

revision

package
v4.7.0+incompatibleLatest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2018 License:Apache-2.0Imports:8Imported by:0

Details

Repository

github.com/go-git/go-git

Links

Documentation

Overview

Package revision extracts git revision from stringMore informations about revision :https://www.kernel.org/pub/software/scm/git/docs/gitrevisions.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeAtCheckout

type AtCheckout struct {Depthint}

AtCheckout represents @{-n}

typeAtDate

type AtDate struct {Datetime.Time}

AtDate represents @{"2006-01-02T15:04:05Z"}

typeAtPush

type AtPush struct {BranchNamestring}

AtPush represents @{push}

typeAtReflog

type AtReflog struct {Depthint}

AtReflog represents @{n}

typeAtUpstream

type AtUpstream struct {BranchNamestring}

AtUpstream represents @{upstream}, @{u}

typeCaretPath

type CaretPath struct {Depthint}

CaretPath represents ^, ^{n}

typeCaretReg

type CaretReg struct {Regexp *regexp.RegexpNegatebool}

CaretReg represents ^{/foo bar}

typeCaretType

type CaretType struct {ObjectTypestring}

CaretType represents ^{commit}

typeColonPath

type ColonPath struct {Pathstring}

ColonPath represents :./<path> :<path>

typeColonReg

type ColonReg struct {Regexp *regexp.RegexpNegatebool}

ColonReg represents :/foo bar

typeColonStagePath

type ColonStagePath struct {PathstringStageint}

ColonStagePath represents :<n>:/<path>

typeErrInvalidRevision

type ErrInvalidRevision struct {// contains filtered or unexported fields}

ErrInvalidRevision is emitted if string doesn't match valid revision

func (*ErrInvalidRevision)Error

func (e *ErrInvalidRevision) Error()string

typeParser

type Parser struct {// contains filtered or unexported fields}

Parser represents a parseruse to tokenize and transform to revisioner chunksa given string

funcNewParser

func NewParser(rio.Reader) *Parser

NewParser returns a new instance of parser.

funcNewParserFromString

func NewParserFromString(sstring) *Parser

NewParserFromString returns a new instance of parser from a string.

func (*Parser)Parse

func (p *Parser) Parse() ([]Revisioner,error)

Parse explode a revision string into revisioner chunks

typeRef

type Refstring

Ref represents a reference name : HEAD, master

typeRevisioner

type Revisioner interface {}

Revisioner represents a revision component.A revision is made of multiple revision componentsobtained after parsing a revision string,for instance revision "master~" will be converted intwo revision components Ref and TildePath

typeTildePath

type TildePath struct {Depthint}

TildePath represents ~, ~{n}

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp