(repo *Repository)
| 457 | } |
| 458 | |
| 459 | func headTree(repo *Repository) (*Tree, error) { |
| 460 | headCommit, err := headCommit(repo) |
| 461 | if err != nil { |
| 462 | return nil, err |
| 463 | } |
| 464 | defer headCommit.Free() |
| 465 | |
| 466 | tree, err := headCommit.Tree() |
| 467 | if err != nil { |
| 468 | return nil, err |
| 469 | } |
| 470 | |
| 471 | return tree, nil |
| 472 | } |
| 473 | |
| 474 | func commitSomething(repo *Repository, something, content string, commitOpts commitOptions) (*Oid, error) { |
| 475 | headCommit, err := headCommit(repo) |
no test coverage detected
searching dependent graphs…