Package: git-annex Version: 4.20130405 Severity: wishlist Hi,
I've just started using 'git-annex webapp' to handle files in my documents repository. As explained in my blog[1], due to limitations of my scanner, I have to do this from a Windows VM. The scanner software, when told to write to a network-mapped directory that resolves to the git annex checkout on the host system, will attempt to open the target file name for writing before performing the final OCR step in the scanning process. It then appears to close the file (leaving a 0-sized file), performs the OCR step, and finally writes the file in one go to the output file name. This obviously doesn't work very well with git-annex. My first attempts of today caused some data loss, because git-annex adds the empty file to the annex and marks it as read-only; since the scanner software already performed a check on the file, it appears to assume it can be written to and ignores any write errors it may end up with. Reading the git-annex manpage, I found the annex.largefiles option, which I set to "largerthan=1kb" in an attempt to make it ignore the empty files. This works, but does not behave as I expected; rather than ignoring the file, it commits the empty file to git. When the scanner software then finishes doing its thing, the new file is simply marked as a modified non-annexed file; I have to do "git rm --cached file; touch file" for the assistant to pick it up. It would be good if either the annex.largefiles option would cause the assistant to completely ignore the given files, or if another option would be available that would exhibit that behaviour. [1] http://grep.be/blog/en/computer/hardware/dear_hp -- System Information: Debian Release: 7.0 APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=nl_BE.UTF-8, LC_CTYPE=nl_BE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages git-annex depends on: ii curl 7.29.0-2 ii git 1:1.7.10.4-2 ii libc6 2.13-38 ii libffi5 3.0.10-3 ii libgmp10 2:5.0.5+dfsg-2 ii libgnutls26 2.12.20-6 ii libgsasl7 1.8.0-2 ii libidn11 1.25-2 ii libxml2 2.8.0+dfsg1-7+nmu1 ii libyaml-0-2 0.1.4-2 ii openssh-client 1:6.0p1-4 ii rsync 3.0.9-4 ii uuid 1.6.2-1.3 ii wget 1.14-1 ii zlib1g 1:1.2.7.dfsg-13 Versions of packages git-annex recommends: ii bind9-host 1:9.8.4.dfsg.P1-6+nmu1 ii gnupg 1.4.12-7 ii lsof 4.86+dfsg-1 Versions of packages git-annex suggests: pn bup <none> ii graphviz 2.26.3-14 ii libnss-mdns 0.10-3.2 -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org