Re: [PATCH] branch: -r -d(D) should say "remote-tracking branch"
- From
Ralf Thielow <ralf.thielow@gmail.com>
- Date
- May 6, 2015, 17:49 UTC
- Message-ID
- <CAN0XMOJ8QJ14B15BoFrr7d7L-jE06yUbquo8pW3OCj4wmUk2Rw@mail.gmail.com>
- In-Reply-To
- <CAMbsUu5pKiQ76WrCXvziQ8zER-Mc5oVt7tGnC7Q3RMVX2r8ZXQ@mail.gmail.com>
Danny Lin <danny0838@gmail.com> wrote:
> git branch -r -d(D) currently says "delete remote branch", > which should be "remote-tracking branch". > ---
No "Signed-off-by" line. (see Documentation/SubmittingPatches)
Show 13 quoted lines
> builtin/branch.c | 6 +++--- > po/bg.po | 6 +++--- > po/ca.po | 6 +++--- > po/de.po | 6 +++--- > po/fr.po | 6 +++--- > po/git.pot | 6 +++--- > po/it.po | 6 +++--- > po/pt_PT.po | 6 +++--- > po/sv.po | 6 +++--- > po/vi.po | 6 +++--- > po/zh_CN.po | 6 +++--- > 11 files changed, 33 insertions(+), 33 deletions(-) >
You don't need to update messages within "po/*" as they're updated by the l10n coordinator and translators.
Show 34 quoted lines
> diff --git a/builtin/branch.c b/builtin/branch.c
> index dc6f0b2..3560c51 100644
> --- a/builtin/branch.c
> +++ b/builtin/branch.c
> @@ -242,7 +242,7 @@ static int delete_branches(int argc, const char
> **argv, int force, int kinds,
> sha1, &flags);
> if (!target) {
> error(remote_branch
> - ? _("remote branch '%s' not found.")
> + ? _("remote-tracking branch '%s' not found.")
> : _("branch '%s' not found."), bname.buf);
> ret = 1;
> continue;
> @@ -257,7 +257,7 @@ static int delete_branches(int argc, const char
> **argv, int force, int kinds,
>
> if (delete_ref(name, sha1, REF_NODEREF)) {
> error(remote_branch
> - ? _("Error deleting remote branch '%s'")
> + ? _("Error deleting remote-tracking branch '%s'")
> : _("Error deleting branch '%s'"),
> bname.buf);
> ret = 1;
> @@ -265,7 +265,7 @@ static int delete_branches(int argc, const char
> **argv, int force, int kinds,
> }
> if (!quiet) {
> printf(remote_branch
> - ? _("Deleted remote branch %s (was %s).\n")
> + ? _("Deleted remote-tracking branch %s (was %s).\n")
> : _("Deleted branch %s (was %s).\n"),
> bname.buf,
> (flags & REF_ISBROKEN) ? "broken"Looks good to me.