pub fn announcement(
query: AnnouncedQuery,
version: &str,
real_git: &Path,
) -> StringExpand description
What:
Build the text printed after Git’s own answer.
&str borrows the version;
&Path borrows the resolved real Git path;
the result is owned, line-terminated text.
Why:
The banner states which wrapper build and which Git answered;
the help section also says what the wrapper adds.
Building it from plain values keeps it testable without a process.
A path that is not UTF-8 prints with replacement characters, because the text is for people.
In TS you’d write (pseudocode):
function announcement(query: AnnouncedQuery, version: string, realGit: string): string;