diff options
Diffstat (limited to 'test_utils/src')
| -rw-r--r-- | test_utils/src/git.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test_utils/src/git.rs b/test_utils/src/git.rs index e522ffd..058eb31 100644 --- a/test_utils/src/git.rs +++ b/test_utils/src/git.rs | |||
| @@ -154,6 +154,12 @@ impl GitTestRepo { | |||
| 154 | self.stage_and_commit("add t2.md") | 154 | self.stage_and_commit("add t2.md") |
| 155 | } | 155 | } |
| 156 | 156 | ||
| 157 | pub fn populate_minus_1(&self) -> Result<Oid> { | ||
| 158 | self.initial_commit()?; | ||
| 159 | fs::write(self.dir.join("t1.md"), "some content")?; | ||
| 160 | self.stage_and_commit("add t1.md") | ||
| 161 | } | ||
| 162 | |||
| 157 | pub fn populate_with_test_branch(&self) -> Result<Oid> { | 163 | pub fn populate_with_test_branch(&self) -> Result<Oid> { |
| 158 | self.populate()?; | 164 | self.populate()?; |
| 159 | self.create_branch("add-example-feature")?; | 165 | self.create_branch("add-example-feature")?; |