From 49a55ccd54149793eac0e48b9ab6c724e37fed7b Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 15 Jun 2015 15:27:17 -0400 Subject: add basic progress --- doc/tips/automatically_adding_metadata/pre-commit-annex | 1 + doc/todo/git-annex_metadata_extractor_progress_bar.mdwn | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'doc') diff --git a/doc/tips/automatically_adding_metadata/pre-commit-annex b/doc/tips/automatically_adding_metadata/pre-commit-annex index fe818d032..873284d2c 100755 --- a/doc/tips/automatically_adding_metadata/pre-commit-annex +++ b/doc/tips/automatically_adding_metadata/pre-commit-annex @@ -52,6 +52,7 @@ IFS=" process () { if [ -e "$f" ]; then + echo "adding metadata for $f" for l in $(extract "$f" | egrep "$want"); do field="${l%% - *}" value="${l#* - }" diff --git a/doc/todo/git-annex_metadata_extractor_progress_bar.mdwn b/doc/todo/git-annex_metadata_extractor_progress_bar.mdwn index 599e386ca..87fcdae92 100644 --- a/doc/todo/git-annex_metadata_extractor_progress_bar.mdwn +++ b/doc/todo/git-annex_metadata_extractor_progress_bar.mdwn @@ -1,3 +1,7 @@ it can take a significant amount of time for the [[automatic metadata script|tips/automatically_adding_metadata/]] to run on commit. it would be nice to have some progress, otherwise it just looks like the command is hanging. here it's been processing my photos for more than three hours, and it's probably not even halfway done, according to ps... [[anarcat]] + +> Well, I added an echo of each file as it's processed. More complex +> progress could be done, patches accepted. But I suppose a file list is +> good enough; it's good enough for git-annex itself. [[done]] --[[Joey]] -- cgit v1.2.3