@@ -538,7 +538,7 @@ static void append_one_rev(const char *av)
538
538
for_each_ref (append_matching_ref , NULL );
539
539
if (saved_matches == ref_name_cnt &&
540
540
ref_name_cnt < MAX_REVS )
541
- error ("no matching refs with %s" , av );
541
+ error (_ ( "no matching refs with %s" ) , av );
542
542
if (saved_matches + 1 < ref_name_cnt )
543
543
sort_ref_range (saved_matches , ref_name_cnt );
544
544
return ;
@@ -701,8 +701,8 @@ int cmd_show_branch(int ac, const char **av, const char *prefix)
701
701
*
702
702
* Also --all and --remotes do not make sense either.
703
703
*/
704
- die ("--reflog is incompatible with --all, --remotes, "
705
- "--independent or --merge-base" );
704
+ die (_ ( "--reflog is incompatible with --all, --remotes, "
705
+ "--independent or --merge-base" ) );
706
706
}
707
707
708
708
/* If nothing is specified, show all branches by default */
@@ -725,16 +725,16 @@ int cmd_show_branch(int ac, const char **av, const char *prefix)
725
725
av = fake_av ;
726
726
ac = 1 ;
727
727
if (!* av )
728
- die ("no branches given, and HEAD is not valid" );
728
+ die (_ ( "no branches given, and HEAD is not valid" ) );
729
729
}
730
730
if (ac != 1 )
731
- die ("--reflog option needs one branch name" );
731
+ die (_ ( "--reflog option needs one branch name" ) );
732
732
733
733
if (MAX_REVS < reflog )
734
734
die ("Only %d entries can be shown at one time." ,
735
735
MAX_REVS );
736
736
if (!dwim_ref (* av , strlen (* av ), oid .hash , & ref ))
737
- die ("No such ref %s" , * av );
737
+ die (_ ( "no such ref %s") , * av );
738
738
739
739
/* Has the base been specified? */
740
740
if (reflog_base ) {
@@ -828,10 +828,10 @@ int cmd_show_branch(int ac, const char **av, const char *prefix)
828
828
if (MAX_REVS <= num_rev )
829
829
die ("cannot handle more than %d revs." , MAX_REVS );
830
830
if (get_sha1 (ref_name [num_rev ], revkey .hash ))
831
- die ("'%s' is not a valid ref." , ref_name [num_rev ]);
831
+ die (_ ( "'%s' is not a valid ref." ) , ref_name [num_rev ]);
832
832
commit = lookup_commit_reference (revkey .hash );
833
833
if (!commit )
834
- die ("cannot find commit %s (%s)" ,
834
+ die (_ ( "cannot find commit %s (%s)" ) ,
835
835
ref_name [num_rev ], oid_to_hex (& revkey ));
836
836
parse_commit (commit );
837
837
mark_seen (commit , & seen );
0 commit comments