Hi,
I'm sending these as separate patches as they touch completely unrelated
parts of Git, but feel free to squash them together you think that's
better.
All of them is about using rev-parse -q instead of rev-parse 2>/dev/null.
Miklos Vajna (5):
filter-branch: use git rev-parse -q
lost-found: use git rev-parse -q
pull: use git rev-parse -q
rebase: use git rev-parse -q
submodule: use git rev-parse -q
git-filter-branch.sh | 2 +-
git-lost-found.sh | 2 +-
git-pull.sh | 8 ++++----
git-rebase.sh | 4 ++--
git-submodule.sh | 6 +++---
5 files changed, 11 insertions(+), 11 deletions(-)
@@ -20,7 +20,7 @@ while read dangling type sha1docase"$dangling"indangling)-ifgitrev-parse--verify"$sha1^0">/dev/null2>/dev/null+ifgitrev-parse-q--verify"$sha1^0">/dev/nullthendir="$laf/commit"gitshow-branch"$sha1"
@@ -121,13 +121,13 @@ test true = "$rebase" && {test-z"$origin"&&origin=$(get_default_remote)reflist="$(get_remote_refs_for_fetch"$@"2>/dev/null|sed"s|refs/heads/\(.*\):|\1|")" &&-oldremoteref="$(gitrev-parse--verify\-"refs/remotes/$origin/$reflist"2>/dev/null)"+oldremoteref="$(gitrev-parse-q--verify\+"refs/remotes/$origin/$reflist")"}-orig_head=$(gitrev-parse--verifyHEAD2>/dev/null)+orig_head=$(gitrev-parse-q--verifyHEAD) gitfetch$verbosity--update-head-ok"$@"||exit1-curr_head=$(gitrev-parse--verifyHEAD2>/dev/null)+curr_head=$(gitrev-parse-q--verifyHEAD)iftest-n"$orig_head"&&test"$curr_head"!="$orig_head"then# The fetch involved updating the current branch.
@@ -256,7 +256,7 @@ while read commit parents; do*)# The commit may not have the subdirectory at allerr=$(gitread-tree-i-m$commit:"$filter_subdir"2>&1)||{-if!gitrev-parse--verify$commit:"$filter_subdir"2>/dev/null+if!gitrev-parse-q--verify$commit:"$filter_subdir"thenrm-f"$GIT_INDEX_FILE"else