blob: 904cc9ebb0cf9d63eec6dfd0379cbd5e562fe780 (
plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
[[!comment format=sh
username="https://www.google.com/accounts/o8/id?id=AItOawn0hu_TPhLcUM1Ivvn7iIoZ_iD3g_5WDcs"
nickname="Greg"
subject="comment 2"
date="2014-10-06T19:20:26Z"
content="""
ubuntu@hostname:~$ cd annex
ubuntu@hostname:~/annex$ git init
Initialized empty Git repository in /home/ubuntu/annex/.git/
ubuntu@hostname:~/annex$ git annex init
init ok
ubuntu@hostname:~/annex$ echo foo > test.txt
ubuntu@hostname:~/annex$ git annex add .
add test.txt (checksum...) ok
(Recording state in git...)
ubuntu@hostname:~/annex$ git commit -a -m first
[master (root-commit) fe54856] first
1 file changed, 1 insertion(+)
create mode 120000 test.txt
ubuntu@hostname:~/annex$ git annex unlock test.txt
unlock test.txt (copying...) ok
ubuntu@hostname:~/annex$ echo foobar > test.txt
ubuntu@hostname:~/annex$ echo foo > test2.txt
ubuntu@hostname:~/annex$ git annex add .
add test2.txt (checksum...) ok
add test.txt (checksum...) ok
(Recording state in git...)
ubuntu@hostname:~/annex$ git commit -a -m second
[master 1776b25] second
2 files changed, 2 insertions(+), 1 deletion(-)
create mode 120000 test2.txt
ubuntu@hostname:~/annex$ tree -d ./git/annex
./git/annex [error opening dir]
0 directories
ubuntu@hostname:~/annex$ tree -d .git/annex
.git/annex
├── journal
├── objects
│ ├── 8Z
│ │ └── 1J
│ │ └── SHA256-s4--b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c
│ └── q2
│ └── Xj
│ └── SHA256-s7--aec070645fe53ee3b3763059376134f058cc337247c978add178b6ccdfb0019f
└── tmp
9 directories
ubuntu@hostname:~/annex$ ls
test2.txt test.txt
ubuntu@hostname:~/annex$
I'm expecting 3 SHA's in .git/annex, but I only see two.
"""]]
|