File: git_commit_smudges_unncessarily.mdwn

package info (click to toggle)
git-annex 10.20230126-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 69,344 kB
  • sloc: haskell: 74,654; javascript: 9,103; sh: 1,304; makefile: 203; perl: 136; ansic: 44
file content (22 lines) | stat: -rw-r--r-- 1,003 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
### Please describe the problem.

git commit smudges unlocked files in the index when they were already smudged with git status.

### What steps will reproduce the problem?

```
for i in {1..200}; do echo $i > $i; done
git init; git annex init; git config annex.thin true; git config annex.crippledfilesystem true; git config annex.addunlocked true; git annex add .; git status; time git commit -m .
```

git commit should take less than a second but takes several seconds to smudge the files in the index.

### What version of git-annex are you using? On what operating system?

Through bisection, the problem was found to be introduced in [[!commit 428c91606b434512d1986622e751c795edf4df44]]. Problem occurs both in Linux and WSL1.

### Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders)

git-annex has worked wonderfully for managing my files across different machines and cloud storage services.

[[done]]