Skip to content

Commit

Permalink
fix reflog print message (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
JunNishimura committed Jun 17, 2023
1 parent e7a1db0 commit e1b7e8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/store/reflog.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ func (r *Reflog) Show() {
}

if referenceString == "" {
fmt.Printf("%s HEAD:{%d}: %s: %s\n", color.YellowString(record.hash.String()[:7]), i, record.recType, record.message)
fmt.Printf("%s HEAD@{%d}: %s: %s\n", color.YellowString(record.Hash.String()[:7]), i, record.recType, record.message)

Check failure on line 118 in internal/store/reflog.go

View workflow job for this annotation

GitHub Actions / lint

record.Hash undefined (type *logRecord has no field or method Hash, but does have hash) (typecheck)

Check failure on line 118 in internal/store/reflog.go

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest)

record.Hash undefined (type *logRecord has no field or method Hash, but does have hash)

Check failure on line 118 in internal/store/reflog.go

View workflow job for this annotation

GitHub Actions / test (macos-latest)

record.Hash undefined (type *logRecord has no field or method Hash, but does have hash)

Check failure on line 118 in internal/store/reflog.go

View workflow job for this annotation

GitHub Actions / test (windows-latest)

record.Hash undefined (type *logRecord has no field or method Hash, but does have hash)
} else {
fmt.Printf("%s (%s) HEAD:{%d}: %s: %s\n", color.YellowString(record.hash.String()[:7]), referenceString, i, record.recType, record.message)
fmt.Printf("%s (%s) HEAD@{%d}: %s: %s\n", color.YellowString(record.Hash.String()[:7]), referenceString, i, record.recType, record.message)

Check failure on line 120 in internal/store/reflog.go

View workflow job for this annotation

GitHub Actions / lint

record.Hash undefined (type *logRecord has no field or method Hash, but does have hash) (typecheck)

Check failure on line 120 in internal/store/reflog.go

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest)

record.Hash undefined (type *logRecord has no field or method Hash, but does have hash)

Check failure on line 120 in internal/store/reflog.go

View workflow job for this annotation

GitHub Actions / test (macos-latest)

record.Hash undefined (type *logRecord has no field or method Hash, but does have hash)

Check failure on line 120 in internal/store/reflog.go

View workflow job for this annotation

GitHub Actions / test (windows-latest)

record.Hash undefined (type *logRecord has no field or method Hash, but does have hash)
}
}
}

0 comments on commit e1b7e8f

Please sign in to comment.