mirror of
https://github.com/dolthub/dolt.git
synced 2026-03-01 18:19:12 -06:00
[ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh
This commit is contained in:
@@ -106,13 +106,13 @@ func (iter *CommitIterator) Next(ctx context.Context) (LogNode, bool) {
|
||||
type LogNode struct {
|
||||
addr hash.Hash
|
||||
height uint64
|
||||
commit types.Value // commit that needs to be printed
|
||||
startingColCount int // how many branches are being tracked when this commit is printed
|
||||
endingColCount int // home many branches will be tracked when next commit is printed
|
||||
col int // col to put the '*' character in graph
|
||||
newCols []int // col to start using '\' in graph
|
||||
foldedCols []int // cols with common ancestors, that will get folded together
|
||||
lastCommit bool // this is the last commit that will be returned by iterator
|
||||
commit types.Value // commit that needs to be printed
|
||||
startingColCount int // how many branches are being tracked when this commit is printed
|
||||
endingColCount int // home many branches will be tracked when next commit is printed
|
||||
col int // col to put the '*' character in graph
|
||||
newCols []int // col to start using '\' in graph
|
||||
foldedCols []int // cols with common ancestors, that will get folded together
|
||||
lastCommit bool // this is the last commit that will be returned by iterator
|
||||
}
|
||||
|
||||
func (n LogNode) String() string {
|
||||
|
||||
@@ -170,7 +170,7 @@ func commit_flatbuffer(vaddr hash.Hash, opts CommitOptions, heights []uint64) ([
|
||||
serial.CommitAddTimestampMillis(builder, opts.Meta.Timestamp)
|
||||
serial.CommitAddUserTimestampMillis(builder, opts.Meta.UserTimestamp)
|
||||
builder.FinishWithFileIdentifier(serial.CommitEnd(builder), []byte(serial.CommitFileID))
|
||||
return builder.FinishedBytes(), maxheight+1
|
||||
return builder.FinishedBytes(), maxheight + 1
|
||||
}
|
||||
|
||||
func newCommitForValue(ctx context.Context, vrw types.ValueReadWriter, v types.Value, opts CommitOptions) (*Commit, error) {
|
||||
|
||||
@@ -238,7 +238,7 @@ func WalkAddrsForChunkStore(cs chunks.ChunkStore) (func(chunks.Chunk, func(h has
|
||||
return WalkAddrsForNBF(nbf), nil
|
||||
}
|
||||
|
||||
func WalkAddrsForNBF(nbf *NomsBinFormat) (func(chunks.Chunk, func(h hash.Hash, isleaf bool) error) error) {
|
||||
func WalkAddrsForNBF(nbf *NomsBinFormat) func(chunks.Chunk, func(h hash.Hash, isleaf bool) error) error {
|
||||
return func(c chunks.Chunk, cb func(h hash.Hash, isleaf bool) error) error {
|
||||
return walkRefs(c.Data(), nbf, func(r Ref) error {
|
||||
return cb(r.TargetHash(), r.Height() == 1)
|
||||
|
||||
@@ -166,7 +166,7 @@ func (sm SerialMessage) walkRefs(nbf *NomsBinFormat, cb RefCallback) error {
|
||||
func SerialCommitParentRefs(nbf *NomsBinFormat, sm SerialMessage) ([]Ref, error) {
|
||||
msg := serial.GetRootAsCommit([]byte(sm), 0)
|
||||
addrs := msg.ParentAddrsBytes()
|
||||
n := len(addrs)/20
|
||||
n := len(addrs) / 20
|
||||
ret := make([]Ref, n)
|
||||
for i := 0; i < n; i++ {
|
||||
addr := hash.New(addrs[:20])
|
||||
|
||||
Reference in New Issue
Block a user