Skip to content

Commit 0333672

Browse files
jeffhostetlerdscho
authored andcommitted
trace2:gvfs:experiment: report_tracking
Signed-off-by: Jeff Hostetler <[email protected]>
1 parent 474de59 commit 0333672

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
@@ -1061,8 +1061,11 @@ static void update_refs_for_switch(const struct checkout_opts *opts,
10611061
strbuf_release(&msg);
10621062
if (!opts->quiet &&
10631063
!opts->force_detach &&
1064-
(new_branch_info->path || !strcmp(new_branch_info->name, "HEAD")))
1064+
(new_branch_info->path || !strcmp(new_branch_info->name, "HEAD"))) {
1065+
trace2_region_enter("exp", "report_tracking", the_repository);
10651066
report_tracking(new_branch_info);
1067+
trace2_region_leave("exp", "report_tracking", the_repository);
1068+
}
10661069
}
10671070

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

0 commit comments

Comments
 (0)