Ævar Arnfjörð Bjarmason [off-list ref] writes:
On Thu, May 06 2021, Emily Shaffer wrote:
quoted
It can be useful to tell who invoked Git - was it invoked manually by a
user via CLI or script? By an IDE? Knowing where the Git invocation came
from can help with debugging to isolate where the problem came from.
Aside from the portability concerns others have raised, I don't really
see why you'd need this.
We already have the nest-level as part of the SID, so isn't it
sufficient (and portable) at the top-level to log what isatty says + set
the initial SID "root" in the IDE (which presumably knows about git).
Wouldn't this log passwords in cases of e.g.:
some-script --git-password secret # invokes "git"
Both valid and excellent points, I would think.