summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Noel Avila <jn.avila@free.fr>2017-05-11 14:06:34 +0200
committerJunio C Hamano <gitster@pobox.com>2017-05-12 15:27:10 +0900
commit6963893943dacc1a532d047c83ce905818dece46 (patch)
tree42d1aab9c5aec1af57b1144dd967b47c6b912bb9
parent9932242f597b2990117430546e411793090e22e2 (diff)
downloadgit-ja/do-not-ask-needless-questions.tar.gz
git-filter-branch: be more direct in an error messageja/do-not-ask-needless-questions
git-filter-branch requires the specification of a branch by one way or another. If no branch appears to have been specified, we know the user got the usage wrong but we don't know what they were trying to do --- e.g. maybe they specified the ref to rewrite but in the wrong place. In this case, just state that the branch specification is missing. Signed-off-by: Jean-Noel Avila <jn.avila@free.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xgit-filter-branch.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-filter-branch.sh b/git-filter-branch.sh
index 2b8cdba157..aafaf708da 100755
--- a/git-filter-branch.sh
+++ b/git-filter-branch.sh
@@ -239,7 +239,7 @@ git rev-parse --no-flags --revs-only --symbolic-full-name \
sed -e '/^^/d' "$tempdir"/raw-heads >"$tempdir"/heads
test -s "$tempdir"/heads ||
- die "Which ref do you want to rewrite?"
+ die "You must specify a ref to rewrite."
GIT_INDEX_FILE="$(pwd)/../index"
export GIT_INDEX_FILE