All executes the query and returns a list of GitCommits.
(ctx context.Context)
| 188 | |
| 189 | // All executes the query and returns a list of GitCommits. |
| 190 | func (gcq *GitCommitQuery) All(ctx context.Context) ([]*GitCommit, error) { |
| 191 | ctx = setContextOp(ctx, gcq.ctx, ent.OpQueryAll) |
| 192 | if err := gcq.prepareQuery(ctx); err != nil { |
| 193 | return nil, err |
| 194 | } |
| 195 | qr := querierAll[[]*GitCommit, *GitCommitQuery]() |
| 196 | return withInterceptors[[]*GitCommit](ctx, gcq, qr, gcq.inters) |
| 197 | } |
| 198 | |
| 199 | // AllX is like All, but panics if an error occurs. |
| 200 | func (gcq *GitCommitQuery) AllX(ctx context.Context) []*GitCommit { |
no test coverage detected