Commit graph

22 commits

Author SHA1 Message Date
Joey Hess
e51a587c57
comment 2021-09-03 11:41:38 -04:00
aurelf
7961c5a984 Added a comment: Automatically adding metadata can be very slow 2021-09-03 12:46:07 +00:00
Joey Hess
87356a8f32
response 2020-02-17 13:04:18 -04:00
max
206d2e6bfb Added a comment: adding support for additional metadata tools? 2020-02-10 04:45:56 +00:00
Joey Hess
42f154bd7e
Fix metadata hook script to support non-ascii characters
tips/automatically_adding_metadata/pre-commit-annex: Fix to not silently
skip filenames containing non-ascii characters.

git diff-index defaults to munging non-ascii characters. Using -z makes
it not do that, and then we just change the nulls to newlines.

This commit was sponsored by Jochen Bartl on Patreon.
2018-02-26 12:58:37 -04:00
Joey Hess
6b45e1d5c2
followup 2017-12-11 14:27:33 -04:00
woffs
d141b9cdeb Added a comment: hook and quoting 2017-12-09 11:18:10 +00:00
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