Skip to content

Commit

Permalink
bench history: replace existing history values
Browse files Browse the repository at this point in the history
  • Loading branch information
krichprollsch committed Feb 2, 2024
1 parent edb5dec commit 0c5d85a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/history/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,10 @@ func run(ctx context.Context, args []string, stdout, stderr io.Writer) error {
// let merge all and res
APPEND:
for _, in := range res {
for _, a := range all {
for i, a := range all {
if in.Hash == a.Hash {
// the commit already exists in all
// the commit already exists in all we replace the values.
all[i] = in
continue APPEND
}
}
Expand Down

0 comments on commit 0c5d85a

Please sign in to comment.