Skip to content

Commit e006462

Browse files
jeffhostetlervdye
authored andcommitted
trace2:gvfs:experiment: report_tracking
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
1 parent b8d46f5 commit e006462

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

builtin/checkout.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,8 +1015,11 @@ static void update_refs_for_switch(const struct checkout_opts *opts,
10151015
remove_branch_state(the_repository, !opts->quiet);
10161016
strbuf_release(&msg);
10171017
if (!opts->quiet &&
1018-
(new_branch_info->path || (!opts->force_detach && !strcmp(new_branch_info->name, "HEAD"))))
1018+
(new_branch_info->path || (!opts->force_detach && !strcmp(new_branch_info->name, "HEAD")))) {
1019+
trace2_region_enter("exp", "report_tracking", the_repository);
10191020
report_tracking(new_branch_info);
1021+
trace2_region_leave("exp", "report_tracking", the_repository);
1022+
}
10201023
}
10211024

10221025
static int add_pending_uninteresting_ref(const char *refname,

0 commit comments

Comments
 (0)