@@ -517,7 +517,7 @@ static int show_blob_object(const struct object_id *oid, struct rev_info *rev, c
517
517
if (get_oid_with_context (the_repository , obj_name ,
518
518
GET_OID_RECORD_PATH ,
519
519
& oidc , & obj_context ))
520
- die (_ ("Not a valid object name %s" ), obj_name );
520
+ die (_ ("not a valid object name %s" ), obj_name );
521
521
if (!obj_context .path ||
522
522
!textconv_object (the_repository , obj_context .path ,
523
523
obj_context .mode , & oidc , 1 , & buf , & size )) {
@@ -541,7 +541,7 @@ static int show_tag_object(const struct object_id *oid, struct rev_info *rev)
541
541
int offset = 0 ;
542
542
543
543
if (!buf )
544
- return error (_ ("Could not read object %s" ), oid_to_hex (oid ));
544
+ return error (_ ("could not read object %s" ), oid_to_hex (oid ));
545
545
546
546
assert (type == OBJ_TAG );
547
547
while (offset < size && buf [offset ] != '\n' ) {
@@ -635,7 +635,7 @@ int cmd_show(int argc, const char **argv, const char *prefix)
635
635
break ;
636
636
o = parse_object (the_repository , & t -> tagged -> oid );
637
637
if (!o )
638
- ret = error (_ ("Could not read object %s" ),
638
+ ret = error (_ ("could not read object %s" ),
639
639
oid_to_hex (& t -> tagged -> oid ));
640
640
objects [i ].item = o ;
641
641
i -- ;
@@ -660,7 +660,7 @@ int cmd_show(int argc, const char **argv, const char *prefix)
660
660
ret = cmd_log_walk (& rev );
661
661
break ;
662
662
default :
663
- ret = error (_ ("Unknown type: %d" ), o -> type );
663
+ ret = error (_ ("unknown type: %d" ), o -> type );
664
664
}
665
665
}
666
666
free (objects );
@@ -898,7 +898,7 @@ static int open_next_file(struct commit *commit, const char *subject,
898
898
printf ("%s\n" , filename .buf + outdir_offset );
899
899
900
900
if ((rev -> diffopt .file = fopen (filename .buf , "w" )) == NULL ) {
901
- error_errno (_ ("Cannot open patch file %s" ), filename .buf );
901
+ error_errno (_ ("cannot open patch file %s" ), filename .buf );
902
902
strbuf_release (& filename );
903
903
return -1 ;
904
904
}
@@ -915,7 +915,7 @@ static void get_patch_ids(struct rev_info *rev, struct patch_ids *ids)
915
915
unsigned flags1 , flags2 ;
916
916
917
917
if (rev -> pending .nr != 2 )
918
- die (_ ("Need exactly one range. " ));
918
+ die (_ ("need exactly one range" ));
919
919
920
920
o1 = rev -> pending .objects [0 ].item ;
921
921
o2 = rev -> pending .objects [1 ].item ;
@@ -925,7 +925,7 @@ static void get_patch_ids(struct rev_info *rev, struct patch_ids *ids)
925
925
c2 = lookup_commit_reference (the_repository , & o2 -> oid );
926
926
927
927
if ((flags1 & UNINTERESTING ) == (flags2 & UNINTERESTING ))
928
- die (_ ("Not a range. " ));
928
+ die (_ ("not a range" ));
929
929
930
930
init_patch_ids (the_repository , ids );
931
931
@@ -1048,13 +1048,13 @@ static void make_cover_letter(struct rev_info *rev, int use_stdout,
1048
1048
struct commit * head = list [0 ];
1049
1049
1050
1050
if (!cmit_fmt_is_mail (rev -> commit_format ))
1051
- die (_ ("Cover letter needs email format" ));
1051
+ die (_ ("cover letter needs email format" ));
1052
1052
1053
1053
committer = git_committer_info (0 );
1054
1054
1055
1055
if (!use_stdout &&
1056
1056
open_next_file (NULL , rev -> numbered_files ? NULL : "cover-letter" , rev , quiet ))
1057
- return ;
1057
+ die ( _ ( "failed to create cover-letter file" )) ;
1058
1058
1059
1059
log_write_email_headers (rev , head , & pp .after_subject , & need_8bit_cte , 0 );
1060
1060
@@ -1218,7 +1218,7 @@ static int output_directory_callback(const struct option *opt, const char *arg,
1218
1218
const char * * dir = (const char * * )opt -> value ;
1219
1219
BUG_ON_OPT_NEG (unset );
1220
1220
if (* dir )
1221
- die (_ ("Two output directories?" ));
1221
+ die (_ ("two output directories?" ));
1222
1222
* dir = arg ;
1223
1223
return 0 ;
1224
1224
}
@@ -1329,7 +1329,7 @@ static struct commit *get_base_commit(const char *base_commit,
1329
1329
if (base_commit && strcmp (base_commit , "auto" )) {
1330
1330
base = lookup_commit_reference_by_name (base_commit );
1331
1331
if (!base )
1332
- die (_ ("Unknown commit %s" ), base_commit );
1332
+ die (_ ("unknown commit %s" ), base_commit );
1333
1333
} else if ((base_commit && !strcmp (base_commit , "auto" )) || base_auto ) {
1334
1334
struct branch * curr_branch = branch_get (NULL );
1335
1335
const char * upstream = branch_get_upstream (curr_branch , NULL );
@@ -1339,18 +1339,18 @@ static struct commit *get_base_commit(const char *base_commit,
1339
1339
struct object_id oid ;
1340
1340
1341
1341
if (get_oid (upstream , & oid ))
1342
- die (_ ("Failed to resolve '%s' as a valid ref. " ), upstream );
1342
+ die (_ ("failed to resolve '%s' as a valid ref" ), upstream );
1343
1343
commit = lookup_commit_or_die (& oid , "upstream base" );
1344
1344
base_list = get_merge_bases_many (commit , total , list );
1345
1345
/* There should be one and only one merge base. */
1346
1346
if (!base_list || base_list -> next )
1347
- die (_ ("Could not find exact merge base. " ));
1347
+ die (_ ("could not find exact merge base" ));
1348
1348
base = base_list -> item ;
1349
1349
free_commit_list (base_list );
1350
1350
} else {
1351
- die (_ ("Failed to get upstream, if you want to record base commit automatically,\n"
1351
+ die (_ ("failed to get upstream, if you want to record base commit automatically,\n"
1352
1352
"please use git branch --set-upstream-to to track a remote branch.\n"
1353
- "Or you could specify base commit by --base=<base-commit-id> manually. " ));
1353
+ "Or you could specify base commit by --base=<base-commit-id> manually" ));
1354
1354
}
1355
1355
}
1356
1356
@@ -1368,7 +1368,7 @@ static struct commit *get_base_commit(const char *base_commit,
1368
1368
struct commit_list * merge_base ;
1369
1369
merge_base = get_merge_bases (rev [2 * i ], rev [2 * i + 1 ]);
1370
1370
if (!merge_base || merge_base -> next )
1371
- die (_ ("Failed to find exact merge base" ));
1371
+ die (_ ("failed to find exact merge base" ));
1372
1372
1373
1373
rev [i ] = merge_base -> item ;
1374
1374
}
@@ -1747,7 +1747,7 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)
1747
1747
if (use_stdout )
1748
1748
die (_ ("standard output, or directory, which one?" ));
1749
1749
if (mkdir (output_directory , 0777 ) < 0 && errno != EEXIST )
1750
- die_errno (_ ("Could not create directory '%s'" ),
1750
+ die_errno (_ ("could not create directory '%s'" ),
1751
1751
output_directory );
1752
1752
}
1753
1753
@@ -1949,7 +1949,7 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)
1949
1949
1950
1950
if (!use_stdout &&
1951
1951
open_next_file (rev .numbered_files ? NULL : commit , NULL , & rev , quiet ))
1952
- die (_ ("Failed to create output files" ));
1952
+ die (_ ("failed to create output files" ));
1953
1953
shown = log_tree_commit (& rev , commit );
1954
1954
free_commit_buffer (the_repository -> parsed_objects ,
1955
1955
commit );
@@ -2073,9 +2073,9 @@ int cmd_cherry(int argc, const char **argv, const char *prefix)
2073
2073
revs .max_parents = 1 ;
2074
2074
2075
2075
if (add_pending_commit (head , & revs , 0 ))
2076
- die (_ ("Unknown commit %s" ), head );
2076
+ die (_ ("unknown commit %s" ), head );
2077
2077
if (add_pending_commit (upstream , & revs , UNINTERESTING ))
2078
- die (_ ("Unknown commit %s" ), upstream );
2078
+ die (_ ("unknown commit %s" ), upstream );
2079
2079
2080
2080
/* Don't say anything if head and upstream are the same. */
2081
2081
if (revs .pending .nr == 2 ) {
@@ -2087,7 +2087,7 @@ int cmd_cherry(int argc, const char **argv, const char *prefix)
2087
2087
get_patch_ids (& revs , & ids );
2088
2088
2089
2089
if (limit && add_pending_commit (limit , & revs , UNINTERESTING ))
2090
- die (_ ("Unknown commit %s" ), limit );
2090
+ die (_ ("unknown commit %s" ), limit );
2091
2091
2092
2092
/* reverse the list of commits */
2093
2093
if (prepare_revision_walk (& revs ))
0 commit comments