mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-09 10:38:10 -06:00
repoformat: format_repo.sh.
This commit is contained in:
@@ -159,19 +159,19 @@ func (c *Commit) Height() (uint64, error) {
|
||||
}
|
||||
|
||||
func maxChunkHeight(v types.Value, nbf *types.NomsBinFormat) (max uint64, err error) {
|
||||
err = v.WalkRefs(nbf, func(r types.Ref) error {
|
||||
if height := r.Height(); height > max {
|
||||
max = height
|
||||
}
|
||||
err = v.WalkRefs(nbf, func(r types.Ref) error {
|
||||
if height := r.Height(); height > max {
|
||||
max = height
|
||||
}
|
||||
|
||||
return nil
|
||||
})
|
||||
return nil
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
|
||||
return max, nil
|
||||
return max, nil
|
||||
}
|
||||
|
||||
func (c *Commit) getParent(ctx context.Context, idx int) (*types.Struct, error) {
|
||||
|
||||
@@ -44,14 +44,14 @@ func (q *q) NumVisiblePending() int {
|
||||
}
|
||||
|
||||
func (q *q) Push(x interface{}) {
|
||||
q.pending = append(q.pending, x.(*c))
|
||||
q.pending = append(q.pending, x.(*c))
|
||||
}
|
||||
|
||||
func (q *q) Pop() interface{} {
|
||||
old := q.pending
|
||||
ret := old[len(old)-1]
|
||||
q.pending = old[:len(old)-1]
|
||||
return ret
|
||||
old := q.pending
|
||||
ret := old[len(old)-1]
|
||||
q.pending = old[:len(old)-1]
|
||||
return ret
|
||||
}
|
||||
|
||||
func (q *q) Len() int {
|
||||
|
||||
Reference in New Issue
Block a user