diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-02-21 11:07:38 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-02-21 11:07:38 +0000 |
| commit | 125ead4bb64d9e4a76266aabe5e826fc23551edc (patch) | |
| tree | ad6807af12e11f9fba9d2e04e15e1c56bb5f64b3 /test_utils/src | |
| parent | 141ebf0cc0c6cfea640debc9b9073303509a8bc7 (diff) | |
feat(send): specify commits eg HEAD~2
specifiy commits or commit ranges in the
same way that `git format-patch` allows
Diffstat (limited to 'test_utils/src')
| -rw-r--r-- | test_utils/src/git.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test_utils/src/git.rs b/test_utils/src/git.rs index 7f0b4c7..76656df 100644 --- a/test_utils/src/git.rs +++ b/test_utils/src/git.rs | |||
| @@ -56,6 +56,7 @@ impl GitTestRepo { | |||
| 56 | pub fn populate_with_test_branch(&self) -> Result<Oid> { | 56 | pub fn populate_with_test_branch(&self) -> Result<Oid> { |
| 57 | self.populate()?; | 57 | self.populate()?; |
| 58 | self.create_branch("add-example-feature")?; | 58 | self.create_branch("add-example-feature")?; |
| 59 | self.checkout("add-example-feature")?; | ||
| 59 | fs::write(self.dir.join("f1.md"), "some content")?; | 60 | fs::write(self.dir.join("f1.md"), "some content")?; |
| 60 | self.stage_and_commit("add f1.md")?; | 61 | self.stage_and_commit("add f1.md")?; |
| 61 | fs::write(self.dir.join("f2.md"), "some content")?; | 62 | fs::write(self.dir.join("f2.md"), "some content")?; |