summaryrefslogtreecommitdiff
path: root/tests/resources
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2015-11-11 10:54:08 +0100
committerPatrick Steinhardt <ps@pks.im>2017-02-13 10:13:02 +0100
commitbd9f4fd24cd9f011dc5105d6f24ea90dfdf4f1b3 (patch)
tree0fb6fddbaba6d3749d31e2f7c3daca20172385ab /tests/resources
parentb0c3fa36c13e2ba76d4e6d16afbda62ebcfd5624 (diff)
downloadlibgit2-bd9f4fd24cd9f011dc5105d6f24ea90dfdf4f1b3.tar.gz
tests: add worktree test data
Diffstat (limited to 'tests/resources')
-rw-r--r--tests/resources/testrepo-worktree/.gitted1
-rw-r--r--tests/resources/testrepo-worktree/README1
-rw-r--r--tests/resources/testrepo-worktree/branch_file.txt2
l---------tests/resources/testrepo-worktree/link_to_new.txt1
-rw-r--r--tests/resources/testrepo-worktree/new.txt1
-rw-r--r--tests/resources/testrepo/.gitted/logs/refs/heads/testrepo-worktree1
-rw-r--r--tests/resources/testrepo/.gitted/refs/heads/testrepo-worktree1
-rw-r--r--tests/resources/testrepo/.gitted/worktrees/testrepo-worktree/HEAD1
-rw-r--r--tests/resources/testrepo/.gitted/worktrees/testrepo-worktree/commondir1
-rw-r--r--tests/resources/testrepo/.gitted/worktrees/testrepo-worktree/gitdir1
-rw-r--r--tests/resources/testrepo/.gitted/worktrees/testrepo-worktree/indexbin0 -> 369 bytes
-rw-r--r--tests/resources/testrepo/.gitted/worktrees/testrepo-worktree/logs/HEAD1
12 files changed, 12 insertions, 0 deletions
diff --git a/tests/resources/testrepo-worktree/.gitted b/tests/resources/testrepo-worktree/.gitted
new file mode 100644
index 000000000..fe4556a92
--- /dev/null
+++ b/tests/resources/testrepo-worktree/.gitted
@@ -0,0 +1 @@
+gitdir: ../testrepo/.git/worktrees/testrepo-worktree
diff --git a/tests/resources/testrepo-worktree/README b/tests/resources/testrepo-worktree/README
new file mode 100644
index 000000000..a8233120f
--- /dev/null
+++ b/tests/resources/testrepo-worktree/README
@@ -0,0 +1 @@
+hey there
diff --git a/tests/resources/testrepo-worktree/branch_file.txt b/tests/resources/testrepo-worktree/branch_file.txt
new file mode 100644
index 000000000..3697d64be
--- /dev/null
+++ b/tests/resources/testrepo-worktree/branch_file.txt
@@ -0,0 +1,2 @@
+hi
+bye!
diff --git a/tests/resources/testrepo-worktree/link_to_new.txt b/tests/resources/testrepo-worktree/link_to_new.txt
new file mode 120000
index 000000000..c0528fd6c
--- /dev/null
+++ b/tests/resources/testrepo-worktree/link_to_new.txt
@@ -0,0 +1 @@
+new.txt \ No newline at end of file
diff --git a/tests/resources/testrepo-worktree/new.txt b/tests/resources/testrepo-worktree/new.txt
new file mode 100644
index 000000000..a71586c1d
--- /dev/null
+++ b/tests/resources/testrepo-worktree/new.txt
@@ -0,0 +1 @@
+my new file
diff --git a/tests/resources/testrepo/.gitted/logs/refs/heads/testrepo-worktree b/tests/resources/testrepo/.gitted/logs/refs/heads/testrepo-worktree
new file mode 100644
index 000000000..93ab5f06f
--- /dev/null
+++ b/tests/resources/testrepo/.gitted/logs/refs/heads/testrepo-worktree
@@ -0,0 +1 @@
+0000000000000000000000000000000000000000 099fabac3a9ea935598528c27f866e34089c2eff Patrick Steinhardt <ps@pks.im> 1442484463 +0200 branch: Created from HEAD
diff --git a/tests/resources/testrepo/.gitted/refs/heads/testrepo-worktree b/tests/resources/testrepo/.gitted/refs/heads/testrepo-worktree
new file mode 100644
index 000000000..f31fe781b
--- /dev/null
+++ b/tests/resources/testrepo/.gitted/refs/heads/testrepo-worktree
@@ -0,0 +1 @@
+099fabac3a9ea935598528c27f866e34089c2eff
diff --git a/tests/resources/testrepo/.gitted/worktrees/testrepo-worktree/HEAD b/tests/resources/testrepo/.gitted/worktrees/testrepo-worktree/HEAD
new file mode 100644
index 000000000..1b8637e32
--- /dev/null
+++ b/tests/resources/testrepo/.gitted/worktrees/testrepo-worktree/HEAD
@@ -0,0 +1 @@
+ref: refs/heads/testrepo-worktree
diff --git a/tests/resources/testrepo/.gitted/worktrees/testrepo-worktree/commondir b/tests/resources/testrepo/.gitted/worktrees/testrepo-worktree/commondir
new file mode 100644
index 000000000..aab0408ce
--- /dev/null
+++ b/tests/resources/testrepo/.gitted/worktrees/testrepo-worktree/commondir
@@ -0,0 +1 @@
+../..
diff --git a/tests/resources/testrepo/.gitted/worktrees/testrepo-worktree/gitdir b/tests/resources/testrepo/.gitted/worktrees/testrepo-worktree/gitdir
new file mode 100644
index 000000000..0d37a5792
--- /dev/null
+++ b/tests/resources/testrepo/.gitted/worktrees/testrepo-worktree/gitdir
@@ -0,0 +1 @@
+../../../../testrepo-worktree/.git
diff --git a/tests/resources/testrepo/.gitted/worktrees/testrepo-worktree/index b/tests/resources/testrepo/.gitted/worktrees/testrepo-worktree/index
new file mode 100644
index 000000000..41141906e
--- /dev/null
+++ b/tests/resources/testrepo/.gitted/worktrees/testrepo-worktree/index
Binary files differ
diff --git a/tests/resources/testrepo/.gitted/worktrees/testrepo-worktree/logs/HEAD b/tests/resources/testrepo/.gitted/worktrees/testrepo-worktree/logs/HEAD
new file mode 100644
index 000000000..3bede502e
--- /dev/null
+++ b/tests/resources/testrepo/.gitted/worktrees/testrepo-worktree/logs/HEAD
@@ -0,0 +1 @@
+099fabac3a9ea935598528c27f866e34089c2eff 099fabac3a9ea935598528c27f866e34089c2eff Patrick Steinhardt <ps@pks.im> 1442484463 +0200 checkout: moving from 099fabac3a9ea935598528c27f866e34089c2eff to testrepo-worktree