{"thread":{"id":"19013","subject":"[PATCH] Convert to use quiet option when available","startedAt":"2009-04-23T01:46:02Z","lastAt":"2009-04-23T04:21:19Z","messageCount":2,"participants":["Dan Loewenherz","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"112031","messageId":"6f5a4e780904221846t3f783eacx4677c26c537f1fa4@mail.gmail.com","threadId":"19013","inReplyTo":null,"subject":"[PATCH] Convert to use quiet option when available","fromName":"Dan Loewenherz","fromEmail":"daniel.loewenherz@yale.edu","sentAt":"2009-04-23T01:46:02Z","receivedAt":"2009-04-23T01:46:02Z","isPatch":true,"sender":{"key":"daniel.loewenherz@yale.edu","avatar":null},"body":"A minor fix that eliminates usage of \"2>/dev/null\" when --quiet or\n-q has already been implemented.\n\nSigned-off-by: Dan Loewenherz <daniel.loewenherz@yale.edu>\n---\n git-filter-branch.sh |    2 +-\n git-merge-resolve.sh |    4 ++--\n git-parse-remote.sh  |    2 +-\n git-pull.sh          |    2 +-\n 4 files changed, 5 insertions(+), 5 deletions(-)\n\ndiff --git a/git-filter-branch.sh b/git-filter-branch.sh\nindex b90d3df..37e044d 100755\n--- a/git-filter-branch.sh\n+++ b/git-filter-branch.sh\n@@ -430,7 +430,7 @@ if [ \"$filter_tag_name\" ]; then\n \t\tif [ \"$type\" = \"tag\" ]; then\n \t\t\t# Dereference to a commit\n \t\t\tsha1t=\"$sha1\"\n-\t\t\tsha1=\"$(git rev-parse \"$sha1\"^{commit} 2>/dev/null)\" || continue\n+\t\t\tsha1=\"$(git rev-parse -q \"$sha1\"^{commit})\" || continue\n \t\tfi\n\n \t\t[ -f \"../map/$sha1\" ] || continue\ndiff --git a/git-merge-resolve.sh b/git-merge-resolve.sh\nindex 93bcfc2..c9da747 100755\n--- a/git-merge-resolve.sh\n+++ b/git-merge-resolve.sh\n@@ -37,10 +37,10 @@ then\n \texit 2\n fi\n\n-git update-index --refresh 2>/dev/null\n+git update-index -q --refresh\n git read-tree -u -m --aggressive $bases $head $remotes || exit 2\n echo \"Trying simple merge.\"\n-if result_tree=$(git write-tree  2>/dev/null)\n+if result_tree=$(git write-tree 2>/dev/null)\n then\n \texit 0\n else\ndiff --git a/git-parse-remote.sh b/git-parse-remote.sh\nindex 695a409..a296719 100755\n--- a/git-parse-remote.sh\n+++ b/git-parse-remote.sh\n@@ -2,7 +2,7 @@\n\n # git-ls-remote could be called from outside a git managed repository;\n # this would fail in that case and would issue an error message.\n-GIT_DIR=$(git rev-parse --git-dir 2>/dev/null) || :;\n+GIT_DIR=$(git rev-parse -q --git-dir) || :;\n\n get_data_source () {\n \tcase \"$1\" in\ndiff --git a/git-pull.sh b/git-pull.sh\nindex 8c75027..3526153 100755\n--- a/git-pull.sh\n+++ b/git-pull.sh\n@@ -147,7 +147,7 @@ then\n \techo >&2 \"Warning: fetch updated the current branch head.\"\n \techo >&2 \"Warning: fast forwarding your working tree from\"\n \techo >&2 \"Warning: commit $orig_head.\"\n-\tgit update-index --refresh 2>/dev/null\n+\tgit update-index -q --refresh\n \tgit read-tree -u -m \"$orig_head\" \"$curr_head\" ||\n \t\tdie 'Cannot fast-forward your working tree.\n After making sure that you saved anything precious from\n-- \n1.6.3.rc1.34.g0be9b.dirty\n"},{"id":"112044","messageId":"7vskk0xao0.fsf@gitster.siamese.dyndns.org","threadId":"19013","inReplyTo":"6f5a4e780904221846t3f783eacx4677c26c537f1fa4@mail.gmail.com","subject":"Re: [PATCH] Convert to use quiet option when available","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2009-04-23T04:21:19Z","receivedAt":"2009-04-23T04:21:19Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Thanks.\n"}]}