stash: don't translate literal commands
PATCH 1/1 stash: don't translate literal commands
--- builtin/stash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
builtin/stash.c +2 -2
@@ -26,7 +26,7 @@ static const char * const git_stash_usage[] = {N_ ("git stash drop [-q|--quiet] [<stash>]" ),N_ ("git stash ( pop | apply ) [--index] [-q|--quiet] [<stash>]" ),N_ ("git stash branch <branchname> [<stash>]" ), -N_ ("git stash clear" ), +"git stash clear" ,N_ ("git stash [push [-p|--patch] [-k|--[no-]keep-index] [-q|--quiet]\n" " [-u|--include-untracked] [-a|--all] [-m|--message <message>]\n" " [--pathspec-from-file=<file> [--pathspec-file-nul]]\n"
@@ -67,7 +67,7 @@ static const char * const git_stash_branch_usage[] = { };static const char *const git_stash_clear_usage[] = { -N_ ("git stash clear" ), +"git stash clear" ,NULL };
Signature · 1 line
2.31.1
Quoted 10 lines · Alex Henrie
Signed-off-by Alex Henrie <[email protected]>--- builtin/stash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)builtin/stash.c +0
-0
builtin/stash.c static const char * const git_stash_usage[] = { · line 29
Quoted 5 lines
builtin/stash.c +1
-1@@ -26,7 +26,7 @@ static const char * const git_stash_usage[] = {N_ ("git stash drop [-q|--quiet] [<stash>]" ),N_ ("git stash ( pop | apply ) [--index] [-q|--quiet] [<stash>]" ),N_ ("git stash branch <branchname> [<stash>]" ), - N_("git stash clear"), + "git stash clear",
I immediately saw the commands above and wondered why you are not removing them from being translated. My guess is that the "<stash>" strings are the bits that are interesting to translate. Perhaps add some description in your commit message as to why you are drawing the line here?
Quoted 5 lines
builtin/stash.c +1
-1static const char *const git_stash_clear_usage[] = { -N_ ("git stash clear" ), +"git stash clear" ,NULL };
Are there other instances in builtin/*.c? If not, then it would be nice to say so. Otherwise, it would be good to fix them, while you are here.
Thanks,
-Stolee
Quoted 9 lines · Derrick Stolee
builtin/stash.c static const char * const git_stash_branch_usage[] = { · line 72
Quoted 5 lines · Alex Henrie
static const char * const git_stash_clear_usage[] = {
builtin/stash.c +1
-1-N_ ("git stash clear" ), +"git stash clear" , NULL };
Quoted 3 lines
Are there other instances in builtin/*.c? If not, then it would be nice to say so. Otherwise, it would be good to fix them, while you are here.
I reviewed all of the translatable strings and only found this problem in graph.c and builtin/stash.c.
-Alex