Skip to content

Commit 6d71e0d

Browse files
committed
add sample fixture
1 parent f5f616d commit 6d71e0d

File tree

5 files changed

+33
-2
lines changed

5 files changed

+33
-2
lines changed

Cargo.lock

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gix-blame/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ rust-version = "1.65"
1212
doctest = false
1313

1414
[dependencies]
15+
16+
[dev-dependencies]
17+
gix-testtools = { path = "../tests/tools" }

gix-blame/tests/blame.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#[test]
2-
#[ignore]
3-
fn it_works() {}
2+
fn it_works() {
3+
let _worktree = gix_testtools::scripted_fixture_read_only("make_blame_repo.sh").unwrap();
4+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
make_blame_repo.tar
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env bash
2+
set -eu -o pipefail
3+
4+
5+
git init -q
6+
git config merge.ff false
7+
8+
git checkout -q -b main
9+
git commit -q --allow-empty -m c1
10+
git tag at-c1
11+
git commit -q --allow-empty -m c2
12+
git commit -q --allow-empty -m c3
13+
git commit -q --allow-empty -m c4
14+
15+
git checkout -q -b branch1
16+
git commit -q --allow-empty -m b1c1
17+
git tag at-b1c1
18+
git commit -q --allow-empty -m b1c2
19+
20+
git checkout -q main
21+
git commit -q --allow-empty -m c5
22+
git tag at-c5
23+
git merge branch1 -m m1b1

0 commit comments

Comments
 (0)