File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -263,6 +263,8 @@ static int checkout_paths(const struct checkout_opts *opts,
263
263
struct lock_file lock_file = LOCK_INIT ;
264
264
int nr_checkouts = 0 , nr_unmerged = 0 ;
265
265
266
+ trace2_cmd_mode (opts -> patch_mode ? "patch" : "path" );
267
+
266
268
if (opts -> track != BRANCH_TRACK_UNSPECIFIED )
267
269
die (_ ("'%s' cannot be used with updating paths" ), "--track" );
268
270
@@ -966,6 +968,9 @@ static int switch_branches(const struct checkout_opts *opts,
966
968
void * path_to_free ;
967
969
struct object_id rev ;
968
970
int flag , writeout_error = 0 ;
971
+
972
+ trace2_cmd_mode ("branch" );
973
+
969
974
memset (& old_branch_info , 0 , sizeof (old_branch_info ));
970
975
old_branch_info .path = path_to_free = resolve_refdup ("HEAD" , 0 , & rev , & flag );
971
976
if (old_branch_info .path )
@@ -1203,6 +1208,8 @@ static int switch_unborn_to_new_branch(const struct checkout_opts *opts)
1203
1208
int status ;
1204
1209
struct strbuf branch_ref = STRBUF_INIT ;
1205
1210
1211
+ trace2_cmd_mode ("unborn" );
1212
+
1206
1213
if (!opts -> new_branch )
1207
1214
die (_ ("You are on a branch yet to be born" ));
1208
1215
strbuf_addf (& branch_ref , "refs/heads/%s" , opts -> new_branch );
You can’t perform that action at this time.
0 commit comments