Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
submodule: take advantage of gettextln and eval_gettextln.
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Seymour <jon.seymour@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
jonseymour authored and gitster committed Aug 8, 2011
1 parent 6fdd50e commit 6ff875c
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions git-submodule.sh
Expand Up @@ -223,12 +223,9 @@ cmd_add()

if test -z "$force" && ! git add --dry-run --ignore-missing "$path" > /dev/null 2>&1
then
(
eval_gettext "The following path is ignored by one of your .gitignore files:
eval_gettextln "The following path is ignored by one of your .gitignore files:
\$path
Use -f if you really want to add it." &&
echo
) >&2
Use -f if you really want to add it." >&2
exit 1
fi

Expand All @@ -237,7 +234,7 @@ Use -f if you really want to add it." &&
then
if test -d "$path"/.git -o -f "$path"/.git
then
eval_gettext "Adding existing repo at '\$path' to the index"; echo
eval_gettextln "Adding existing repo at '\$path' to the index"
else
die "$(eval_gettext "'\$path' already exists and is not a valid git repo")"
fi
Expand Down Expand Up @@ -696,10 +693,7 @@ cmd_summary() {
;; # removed
*)
# unexpected type
(
eval_gettext "unexpected mode \$mod_dst" &&
echo
) >&2
eval_gettextln "unexpected mode \$mod_dst" >&2
continue ;;
esac
fi
Expand Down Expand Up @@ -786,9 +780,9 @@ cmd_summary() {
done |
if test -n "$for_status"; then
if [ -n "$files" ]; then
gettext "# Submodules changed but not updated:"; echo
gettextln "# Submodules changed but not updated:"
else
gettext "# Submodule changes to be committed:"; echo
gettextln "# Submodule changes to be committed:"
fi
echo "#"
sed -e 's|^|# |' -e 's|^# $|#|'
Expand Down

0 comments on commit 6ff875c

Please sign in to comment.