Skip to content

Commit a38eaec

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

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: builtin/checkout.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -1049,8 +1049,11 @@ static void update_refs_for_switch(const struct checkout_opts *opts,
10491049
strbuf_release(&msg);
10501050
if (!opts->quiet &&
10511051
!opts->force_detach &&
1052-
(new_branch_info->path || !strcmp(new_branch_info->name, "HEAD")))
1052+
(new_branch_info->path || !strcmp(new_branch_info->name, "HEAD"))) {
1053+
trace2_region_enter("exp", "report_tracking", the_repository);
10531054
report_tracking(new_branch_info);
1055+
trace2_region_leave("exp", "report_tracking", the_repository);
1056+
}
10541057
}
10551058

10561059
static int add_pending_uninteresting_ref(const char *refname, const char *referent UNUSED,

0 commit comments

Comments
 (0)