Skip to content

Commit cab7dad

Browse files
committed
trace2:gvfs:experiment: report_tracking
Signed-off-by: Jeff Hostetler <[email protected]>
1 parent fa5a6dc commit cab7dad

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
@@ -856,8 +856,11 @@ static void update_refs_for_switch(const struct checkout_opts *opts,
856856
remove_branch_state(the_repository);
857857
strbuf_release(&msg);
858858
if (!opts->quiet &&
859-
(new_branch_info->path || (!opts->force_detach && !strcmp(new_branch_info->name, "HEAD"))))
859+
(new_branch_info->path || (!opts->force_detach && !strcmp(new_branch_info->name, "HEAD")))) {
860+
trace2_region_enter("exp", "report_tracking", the_repository);
860861
report_tracking(new_branch_info);
862+
trace2_region_leave("exp", "report_tracking", the_repository);
863+
}
861864
}
862865

863866
static int add_pending_uninteresting_ref(const char *refname,

0 commit comments

Comments
 (0)