(repo: &Repository, content: &str)
| 1185 | } |
| 1186 | |
| 1187 | fn record(repo: &Repository, content: &str) -> Hash { |
| 1188 | record_path(repo, "subject.txt", content) |
| 1189 | } |
| 1190 | |
| 1191 | fn record_path(repo: &Repository, relative: &str, content: &str) -> Hash { |
| 1192 | let path = repo.root().join(relative); |