Skip to content

Commit 616e63e

Browse files
jeffhostetlerderrickstolee
authored andcommitted
trace2:gvfs:experiment: report_tracking
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
1 parent be80116 commit 616e63e

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
@@ -978,8 +978,11 @@ static void update_refs_for_switch(const struct checkout_opts *opts,
978978
remove_branch_state(the_repository, !opts->quiet);
979979
strbuf_release(&msg);
980980
if (!opts->quiet &&
981-
(new_branch_info->path || (!opts->force_detach && !strcmp(new_branch_info->name, "HEAD"))))
981+
(new_branch_info->path || (!opts->force_detach && !strcmp(new_branch_info->name, "HEAD")))) {
982+
trace2_region_enter("exp", "report_tracking", the_repository);
982983
report_tracking(new_branch_info);
984+
trace2_region_leave("exp", "report_tracking", the_repository);
985+
}
983986
}
984987

985988
static int add_pending_uninteresting_ref(const char *refname,

0 commit comments

Comments
 (0)