Web lists-archives.com

Re: [PATCH v2] run-command.c: print env vars when GIT_TRACE is set

On Fri, Jan 12, 2018 at 2:27 AM, Junio C Hamano <gitster@xxxxxxxxx> wrote:
> I wonder how common it would be to attempt exporting a variable with
> the same value, and to attempt unsetting a variable that is not
> exported, which might help you reduce the clutter by hiding stuff
> that truly do not matter, while keeping what matters (possibly
> including the "unset" part).

It looks pretty good actually. This is with 'git status' and a repo
with submodule 'foo'.

trace: run_command: cd 'foo'; unset GIT_PREFIX; git 'status' '--porcelain=2'

Thanks for the suggestion.