Merge branch 'ab/sh-retire-rebase-preserve-merges'
Code clean-up to remove unused helpers. * ab/sh-retire-rebase-preserve-merges: git-sh-setup: remove messaging supporting --preserve-merges git-sh-i18n: remove unused eval_ngettext()
This commit is contained in:
commit
942843e8dd
@ -51,12 +51,6 @@ gettext_without_eval_gettext)
|
||||
)
|
||||
}
|
||||
|
||||
eval_ngettext () {
|
||||
ngettext "$1" "$2" "$3" | (
|
||||
export PATH $(git sh-i18n--envsubst --variables "$2");
|
||||
git sh-i18n--envsubst "$2"
|
||||
)
|
||||
}
|
||||
;;
|
||||
*)
|
||||
gettext () {
|
||||
@ -70,12 +64,6 @@ gettext_without_eval_gettext)
|
||||
)
|
||||
}
|
||||
|
||||
eval_ngettext () {
|
||||
(test "$3" = 1 && printf "%s" "$1" || printf "%s" "$2") | (
|
||||
export PATH $(git sh-i18n--envsubst --variables "$2");
|
||||
git sh-i18n--envsubst "$2"
|
||||
)
|
||||
}
|
||||
;;
|
||||
esac
|
||||
|
||||
|
@ -217,9 +217,6 @@ require_clean_work_tree () {
|
||||
then
|
||||
action=$1
|
||||
case "$action" in
|
||||
rebase)
|
||||
gettextln "Cannot rebase: You have unstaged changes." >&2
|
||||
;;
|
||||
"rewrite branches")
|
||||
gettextln "Cannot rewrite branches: You have unstaged changes." >&2
|
||||
;;
|
||||
@ -235,14 +232,7 @@ require_clean_work_tree () {
|
||||
if test $err = 0
|
||||
then
|
||||
action=$1
|
||||
case "$action" in
|
||||
rebase)
|
||||
gettextln "Cannot rebase: Your index contains uncommitted changes." >&2
|
||||
;;
|
||||
*)
|
||||
eval_gettextln "Cannot \$action: Your index contains uncommitted changes." >&2
|
||||
;;
|
||||
esac
|
||||
eval_gettextln "Cannot \$action: Your index contains uncommitted changes." >&2
|
||||
else
|
||||
gettextln "Additionally, your index contains uncommitted changes." >&2
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user