From b56319077cdcc53a11316b66c218a4dc6486fdc3 Mon Sep 17 00:00:00 2001 From: Matthieu Moy Date: Sun, 15 May 2016 08:48:12 +0200 Subject: [PATCH] send output of ln -s to log file with --quiet --- git-latexdiff | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/git-latexdiff b/git-latexdiff index ee9d7ac..5a166e2 100755 --- a/git-latexdiff +++ b/git-latexdiff @@ -515,7 +515,8 @@ verbose "Checking out old and new version" cd old || die "Cannot cd to old/" if test "$ln_untracked" = 1; then ( - mkdir -p "$maindir" && cd "$maindir" && ln -s "$initial_repo"/"$maindir"/* . + mkdir -p "$maindir" && cd "$maindir" && + log_cmd ln-old.log ln -s "$initial_repo"/"$maindir"/* . ) fi @@ -531,14 +532,15 @@ verbose_progress cd ../new || die "Cannot cd to new/" if test "$new" == "--"; then # Copy working tree files - (cd "$git_worktree" && git ls-files -- "$checkoutroot" | tar -cf - -T -) | tar -xvf - + (cd "$git_worktree" && git ls-files -- "$checkoutroot" | tar -cf - -T -) | tar -xf - else # checkout new revision (cd "$git_dir" && git archive --format=tar "$new" "$checkoutroot") | tar -xf - fi if test "$ln_untracked" = 1; then ( - mkdir -p "$maindir" && cd "$maindir" && ln -s "$initial_repo"/"$maindir"/* . + mkdir -p "$maindir" && cd "$maindir" && + log_cmd ln-new.log ln -s "$initial_repo"/"$maindir"/* . ) || true fi