Skip to content

Commit 3a9dae0

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

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

builtin/checkout.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,8 +920,11 @@ static void update_refs_for_switch(const struct checkout_opts *opts,
920920
remove_branch_state(the_repository);
921921
strbuf_release(&msg);
922922
if (!opts->quiet &&
923-
(new_branch_info->path || (!opts->force_detach && !strcmp(new_branch_info->name, "HEAD"))))
923+
(new_branch_info->path || (!opts->force_detach && !strcmp(new_branch_info->name, "HEAD")))) {
924+
trace2_region_enter("exp", "report_tracking", the_repository);
924925
report_tracking(new_branch_info);
926+
trace2_region_leave("exp", "report_tracking", the_repository);
927+
}
925928
}
926929

927930
static int add_pending_uninteresting_ref(const char *refname,

0 commit comments

Comments
 (0)