blob: 5db40f4dd643a56a161345084d61d77a8159f4b0 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
### Please describe the problem.
annex add seems to ignore content under directories having . prefix.
We thought to unify (across direct/indirect/v6) adding files to annex repository by using 'git annex add' with corresponding setting for largefiles for any addition, but it seems to ignore content under .-prefixed directories, unlike git
### What version of git-annex are you using? On what operating system?
6.20161122+gitg9f179ae-1~ndall+1
### Please provide any additional information below.
[[!format sh """
hopa:/tmp/datalad_temp_test_annex_add_no_dotfilesqMXck8
$> git status
On branch master
Initial commit
nothing to commit (create/copy files and use "git add" to track)
$> mkdir .dir dir; echo 123 > .dir/123; echo 124 > dir/124
$> git status
On branch master
Initial commit
Untracked files:
(use "git add <file>..." to include in what will be committed)
.dir/
dir/
nothing added to commit but untracked files present (use "git add" to track)
$> git annex add -c 'annex.largefiles=nothing' .
add dir/124 (non-large file; adding content to git repository) ok
(recording state in git...)
$> git status
On branch master
Initial commit
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: dir/124
Untracked files:
(use "git add <file>..." to include in what will be committed)
.dir/
# and with regular git
$> git -c 'annex.largefiles=nothing' add .
$> git status
On branch master
Initial commit
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: .dir/123
new file: dir/124
"""]]
Ref: https://github.com/datalad/datalad/issues/1027
[[!meta author=yoh]]
[[done]]; oh -- it is RTFM: --include-dotfiles --[[yoh]]
|