Commit graph

15 commits

Author SHA1 Message Date
Joey Hess
baa9954e06
Fix metadata hook behavior when multiple files are added at once. Thanks, Klaus Ethgen. 2016-03-02 12:25:41 -04:00
Joey Hess
36ba39c4f3
remove lower-casing of field names; metadata fields are case-insensative 2016-02-28 11:56:55 -04:00
Joey Hess
764e57f1f1
The pre-commit-annex hook script that automatically extracts metadata has been updated to also use exiftool. Thanks, Klaus Ethgen. 2016-02-28 11:10:55 -04:00
Joey Hess
f62138b9c5 add basic progress 2015-06-15 15:27:17 -04:00
https://www.google.com/accounts/o8/id?id=AItOawnW_CrhP9p50n9UUhTg_a9glyKWSvnrjRQ
83cae23dd1 Added a comment: pre-commit is OK on windows now - auto adding last mod datetime 2015-01-30 11:48:25 +00:00
Joey Hess
6035f94666 Windows: Fix running of the pre-commit-annex hook. 2015-01-20 14:48:16 -04:00
Joey Hess
39d289a70b followup 2015-01-20 12:58:41 -04:00
https://www.google.com/accounts/o8/id?id=AItOawnW_CrhP9p50n9UUhTg_a9glyKWSvnrjRQ
d0cc2102e7 Added a comment: direct mode pre-commit hooks [on windows] 2015-01-20 12:43:24 +00:00
Joey Hess
66e806ce2e Merge branch 'master' of ssh://git-annex.branchable.com 2014-04-17 16:27:18 -04:00
http://joeyh.name/
9071111036 Added a comment 2014-04-17 20:15:08 +00:00
Joey Hess
6a0ba7a2ad
modify so the script can be run with existing annexed files to extract their metadata 2014-04-17 16:10:20 -04:00
https://id.koumbit.net/anarcat
9fd87b27a1 Added a comment 2014-04-01 04:18:11 +00:00
https://www.google.com/accounts/o8/id?id=AItOawkSq2FDpK2n66QRUxtqqdbyDuwgbQmUWus
c3be59735d Added a comment 2014-03-03 07:44:30 +00:00
Joey Hess
03dc6dcab8
decruft 2014-03-02 20:26:27 -04:00
Joey Hess
d0fce426c4 pre-commit-annex hook script to automatically extract metadata from lots of types of files
Using the extract(1) program to do the heavy lifting.

Decided to make git-annex run pre-commit-annex when committing. Since
git-annex pre-commit also runs it, it'll be run when git commit is run too,
via the pre-commit hook. This basically gives back the pre-commit hook
that git-annex took away. The implementation avoids repeatedly looking
for the hook script when the assistant is running and committing
repeatedly; only checks if the hook is available once.

To make the script simpler, made git-annex metadata -s field?=value
only set a field when it's not already got a value.

This commit was sponsored by bak.
2014-03-02 20:11:58 -04:00