aboutsummaryrefslogtreecommitdiff
path: root/lib/git/testdata
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2018-09-12 23:36:49 +0700
committerShulhan <ms@kilabit.info>2018-09-12 23:36:49 +0700
commit7ce478ca7702ccb451152d081679f6d9d201e64a (patch)
tree395a858c6ea9ac3e6509537484b7e6d1ebb3d4d3 /lib/git/testdata
parenta36932d8b4206f7e51d3e898e0fc4d30c49b5c99 (diff)
downloadpakakeh.go-7ce478ca7702ccb451152d081679f6d9d201e64a.tar.xz
lib/git: new package that wrap common git commands and parse git config
List of current git commands that are wrapped, - Setting HEAD to specific revision: "git checkout <revision>" - Cloning repository: "git clone <remoteURL>" - Fetch all changes from remote: "git fetch --all" - Get tag on revision: "git describe --tags --exact-match <revision>" - Get latest commit: "git rev-parse --short <ref>" - Get latest tag - Get latest version (combination of get latest commit and tag) - Log revisions: "git --no-pager log --oneline"
Diffstat (limited to 'lib/git/testdata')
-rw-r--r--lib/git/testdata/beku_test.git/HEAD1
-rw-r--r--lib/git/testdata/beku_test.git/config6
-rw-r--r--lib/git/testdata/beku_test.git/description1
-rw-r--r--lib/git/testdata/beku_test.git/objects/pack/pack-6968a14165fc3c53cfcc3b1282019c96d19b6923.idxbin0 -> 1408 bytes
-rw-r--r--lib/git/testdata/beku_test.git/objects/pack/pack-6968a14165fc3c53cfcc3b1282019c96d19b6923.packbin0 -> 1016 bytes
-rw-r--r--lib/git/testdata/beku_test.git/packed-refs5
-rw-r--r--lib/git/testdata/notempty/dummy0
7 files changed, 13 insertions, 0 deletions
diff --git a/lib/git/testdata/beku_test.git/HEAD b/lib/git/testdata/beku_test.git/HEAD
new file mode 100644
index 00000000..cb089cd8
--- /dev/null
+++ b/lib/git/testdata/beku_test.git/HEAD
@@ -0,0 +1 @@
+ref: refs/heads/master
diff --git a/lib/git/testdata/beku_test.git/config b/lib/git/testdata/beku_test.git/config
new file mode 100644
index 00000000..a7302780
--- /dev/null
+++ b/lib/git/testdata/beku_test.git/config
@@ -0,0 +1,6 @@
+[core]
+ repositoryformatversion = 0
+ filemode = true
+ bare = true
+[remote "origin"]
+ url = /home/ms/src/github.com/shuLhan/share/lib/git/testdata/beku_test
diff --git a/lib/git/testdata/beku_test.git/description b/lib/git/testdata/beku_test.git/description
new file mode 100644
index 00000000..498b267a
--- /dev/null
+++ b/lib/git/testdata/beku_test.git/description
@@ -0,0 +1 @@
+Unnamed repository; edit this file 'description' to name the repository.
diff --git a/lib/git/testdata/beku_test.git/objects/pack/pack-6968a14165fc3c53cfcc3b1282019c96d19b6923.idx b/lib/git/testdata/beku_test.git/objects/pack/pack-6968a14165fc3c53cfcc3b1282019c96d19b6923.idx
new file mode 100644
index 00000000..794afbb8
--- /dev/null
+++ b/lib/git/testdata/beku_test.git/objects/pack/pack-6968a14165fc3c53cfcc3b1282019c96d19b6923.idx
Binary files differ
diff --git a/lib/git/testdata/beku_test.git/objects/pack/pack-6968a14165fc3c53cfcc3b1282019c96d19b6923.pack b/lib/git/testdata/beku_test.git/objects/pack/pack-6968a14165fc3c53cfcc3b1282019c96d19b6923.pack
new file mode 100644
index 00000000..4f4e14e9
--- /dev/null
+++ b/lib/git/testdata/beku_test.git/objects/pack/pack-6968a14165fc3c53cfcc3b1282019c96d19b6923.pack
Binary files differ
diff --git a/lib/git/testdata/beku_test.git/packed-refs b/lib/git/testdata/beku_test.git/packed-refs
new file mode 100644
index 00000000..c014ad2d
--- /dev/null
+++ b/lib/git/testdata/beku_test.git/packed-refs
@@ -0,0 +1,5 @@
+# pack-refs with: peeled fully-peeled sorted
+d6ad9dabc61f72558013bb05e91bf273c491e39c refs/heads/beku
+c9f69fb7fea72fbc0e7b70a82a1a48a6e89c4ee0 refs/heads/master
+ec65455bf4ca8c37a65ce88b9385e4191fb21975 refs/tags/v0.1.0
+582b912d9958422308dd6aaca85bc15a0463086e refs/tags/v0.2.0
diff --git a/lib/git/testdata/notempty/dummy b/lib/git/testdata/notempty/dummy
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/lib/git/testdata/notempty/dummy