From: Mohamed Akram Date: Tue, 23 Aug 2022 20:03:42 GMT Subject: Re: git diff prints long usage help if not run in git repo Message-ID: In-Reply-To: I haven’t tried it but that patch seems to make sense to me, although I found another related issue so it might need tweaking. When running `git diff` in a repo owned by another user, the warning message says that this is not a git repository, instead of the warning shown by other git commands about "dubious ownership". To reproduce: sudo mkdir repo cd repo sudo git init git diff