upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/test_utils/src/git.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-02-21 11:07:38 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2024-02-21 11:07:38 +0000
commit125ead4bb64d9e4a76266aabe5e826fc23551edc (patch)
treead6807af12e11f9fba9d2e04e15e1c56bb5f64b3 /test_utils/src/git.rs
parent141ebf0cc0c6cfea640debc9b9073303509a8bc7 (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/git.rs')
-rw-r--r--test_utils/src/git.rs1
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")?;