@@ -507,7 +507,7 @@ static int run_status(FILE *fp, const char *index_file, const char *prefix, int
507
507
wt_status_collect (s );
508
508
wt_status_print (s );
509
509
510
- return s -> commitable ;
510
+ return s -> committable ;
511
511
}
512
512
513
513
static int is_a_merge (const struct commit * current_head )
@@ -653,7 +653,7 @@ static int prepare_to_commit(const char *index_file, const char *prefix,
653
653
{
654
654
struct stat statbuf ;
655
655
struct strbuf committer_ident = STRBUF_INIT ;
656
- int commitable ;
656
+ int committable ;
657
657
struct strbuf sb = STRBUF_INIT ;
658
658
const char * hook_arg1 = NULL ;
659
659
const char * hook_arg2 = NULL ;
@@ -870,7 +870,7 @@ static int prepare_to_commit(const char *index_file, const char *prefix,
870
870
871
871
saved_color_setting = s -> use_color ;
872
872
s -> use_color = 0 ;
873
- commitable = run_status (s -> fp , index_file , prefix , 1 , s );
873
+ committable = run_status (s -> fp , index_file , prefix , 1 , s );
874
874
s -> use_color = saved_color_setting ;
875
875
} else {
876
876
struct object_id oid ;
@@ -888,7 +888,7 @@ static int prepare_to_commit(const char *index_file, const char *prefix,
888
888
for (i = 0 ; i < active_nr ; i ++ )
889
889
if (ce_intent_to_add (active_cache [i ]))
890
890
ita_nr ++ ;
891
- commitable = active_nr - ita_nr > 0 ;
891
+ committable = active_nr - ita_nr > 0 ;
892
892
} else {
893
893
/*
894
894
* Unless the user did explicitly request a submodule
@@ -904,7 +904,7 @@ static int prepare_to_commit(const char *index_file, const char *prefix,
904
904
if (ignore_submodule_arg &&
905
905
!strcmp (ignore_submodule_arg , "all" ))
906
906
flags .ignore_submodules = 1 ;
907
- commitable = index_differs_from (parent , & flags , 1 );
907
+ committable = index_differs_from (parent , & flags , 1 );
908
908
}
909
909
}
910
910
strbuf_release (& committer_ident );
@@ -916,7 +916,7 @@ static int prepare_to_commit(const char *index_file, const char *prefix,
916
916
* explicit --allow-empty. In the cherry-pick case, it may be
917
917
* empty due to conflict resolution, which the user should okay.
918
918
*/
919
- if (!commitable && whence != FROM_MERGE && !allow_empty &&
919
+ if (!committable && whence != FROM_MERGE && !allow_empty &&
920
920
!(amend && is_a_merge (current_head ))) {
921
921
s -> display_comment_prefix = old_display_comment_prefix ;
922
922
run_status (stdout , index_file , prefix , 0 , s );
@@ -1186,14 +1186,14 @@ static int parse_and_validate_options(int argc, const char *argv[],
1186
1186
static int dry_run_commit (int argc , const char * * argv , const char * prefix ,
1187
1187
const struct commit * current_head , struct wt_status * s )
1188
1188
{
1189
- int commitable ;
1189
+ int committable ;
1190
1190
const char * index_file ;
1191
1191
1192
1192
index_file = prepare_index (argc , argv , prefix , current_head , 1 );
1193
- commitable = run_status (stdout , index_file , prefix , 0 , s );
1193
+ committable = run_status (stdout , index_file , prefix , 0 , s );
1194
1194
rollback_index_files ();
1195
1195
1196
- return commitable ? 0 : 1 ;
1196
+ return committable ? 0 : 1 ;
1197
1197
}
1198
1198
1199
1199
define_list_config_array_extra (color_status_slots , {"added" });
0 commit comments