Skip to content

Commit

Permalink
trace2:gvfs:experiment: report_tracking
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Hostetler <[email protected]>
  • Loading branch information
jeffhostetler authored and dscho committed Dec 18, 2024
1 parent f8ff65a commit 0ddff0b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion builtin/checkout.c
Original file line number Diff line number Diff line change
Expand Up @@ -1047,8 +1047,11 @@ static void update_refs_for_switch(const struct checkout_opts *opts,
strbuf_release(&msg);
if (!opts->quiet &&
!opts->force_detach &&
(new_branch_info->path || !strcmp(new_branch_info->name, "HEAD")))
(new_branch_info->path || !strcmp(new_branch_info->name, "HEAD"))) {
trace2_region_enter("exp", "report_tracking", the_repository);
report_tracking(new_branch_info);
trace2_region_leave("exp", "report_tracking", the_repository);
}
}

static int add_pending_uninteresting_ref(const char *refname, const char *referent UNUSED,
Expand Down

0 comments on commit 0ddff0b

Please sign in to comment.