blob b2c2964d773e853a87d0dea5584545acb421b280 833 bytes (raw)
name: t/t4064-diff-blobfind.sh # note: path name is non-authoritative(*)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
| | #!/bin/sh
test_description='test finding specific blobs in the revision walking'
. ./test-lib.sh
test_expect_success 'setup ' '
git commit --allow-empty -m "empty initial commit" &&
echo "Hello, world!" >greeting &&
git add greeting &&
git commit -m "add the greeting blob" && # borrowed from Git from the Bottom Up
git tag -m "the blob" greeting $(git rev-parse HEAD:greeting) &&
echo asdf >unrelated &&
git add unrelated &&
git commit -m "unrelated history" &&
git revert HEAD^ &&
git commit --allow-empty -m "another unrelated commit"
'
test_expect_success 'find the greeting blob' '
cat >expect <<-EOF &&
Revert "add the greeting blob"
add the greeting blob
EOF
git log --abbrev=12 --oneline --blobfind=greeting^{blob} >actual.raw &&
cut -c 14- actual.raw >actual &&
test_cmp expect actual
'
test_done
|
debug log:
solving b2c2964d77 ...
found b2c2964d77 in https://public-inbox.org/git/20171208002447.20261-2-sbeller@google.com/ ||
https://public-inbox.org/git/20171120222529.24995-2-sbeller@google.com/
applying [1/1] https://public-inbox.org/git/20171208002447.20261-2-sbeller@google.com/
diff --git a/t/t4064-diff-blobfind.sh b/t/t4064-diff-blobfind.sh
new file mode 100755
index 0000000000..b2c2964d77
Checking patch t/t4064-diff-blobfind.sh...
Applied patch t/t4064-diff-blobfind.sh cleanly.
skipping https://public-inbox.org/git/20171120222529.24995-2-sbeller@google.com/ for b2c2964d77
index at:
100755 b2c2964d773e853a87d0dea5584545acb421b280 t/t4064-diff-blobfind.sh
(*) Git path names are given by the tree(s) the blob belongs to.
Blobs themselves have no identifier aside from the hash of its contents.^
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).