rework git check-attr interface
Now gitattributes are looked up, efficiently, in only the places that really need them, using the same approach used for cat-file. The old CheckAttr code seemed very fragile, in the way it streamed files through git check-attr. I actually found that cad88248 was still deadlocking with ghc 7.4, at the end of adding a lot of files. This should fix that problem, and avoid future ones. The best part is that this removes withAttrFilesInGit and withNumCopies, which were complicated Seek methods, as well as simplfying the types for several other Seek methods that had a Backend tupled in.
Showing
- Annex.hs 3 additions, 0 deletionsAnnex.hs
- Annex/CheckAttr.hs 35 additions, 0 deletionsAnnex/CheckAttr.hs
- Backend.hs 8 additions, 13 deletionsBackend.hs
- Command.hs 12 additions, 5 deletionsCommand.hs
- Command/Add.hs 7 additions, 6 deletionsCommand/Add.hs
- Command/AddUrl.hs 1 addition, 1 deletionCommand/AddUrl.hs
- Command/Copy.hs 3 additions, 3 deletionsCommand/Copy.hs
- Command/Drop.hs 4 additions, 4 deletionsCommand/Drop.hs
- Command/Fsck.hs 4 additions, 3 deletionsCommand/Fsck.hs
- Command/Get.hs 4 additions, 4 deletionsCommand/Get.hs
- Command/Lock.hs 2 additions, 4 deletionsCommand/Lock.hs
- Command/Migrate.hs 4 additions, 4 deletionsCommand/Migrate.hs
- Command/PreCommit.hs 5 additions, 6 deletionsCommand/PreCommit.hs
- Git/CheckAttr.hs 40 additions, 16 deletionsGit/CheckAttr.hs
- Remote/List.hs 2 additions, 2 deletionsRemote/List.hs
- Seek.hs 7 additions, 26 deletionsSeek.hs
Please register or sign in to comment