Skip to content

Commit a047080

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

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
@@ -986,8 +986,11 @@ static void update_refs_for_switch(const struct checkout_opts *opts,
986986
remove_branch_state(the_repository, !opts->quiet);
987987
strbuf_release(&msg);
988988
if (!opts->quiet &&
989-
(new_branch_info->path || (!opts->force_detach && !strcmp(new_branch_info->name, "HEAD"))))
989+
(new_branch_info->path || (!opts->force_detach && !strcmp(new_branch_info->name, "HEAD")))) {
990+
trace2_region_enter("exp", "report_tracking", the_repository);
990991
report_tracking(new_branch_info);
992+
trace2_region_leave("exp", "report_tracking", the_repository);
993+
}
991994
}
992995

993996
static int add_pending_uninteresting_ref(const char *refname,

0 commit comments

Comments
 (0)