git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git diff prints long usage help if not run in git repo
@ 2022-08-22 18:22 Mohamed Akram
  2022-08-22 19:43 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Mohamed Akram @ 2022-08-22 18:22 UTC (permalink / raw)
  To: git

When running `git diff` in a directory that’s not a git repo, it prints a warning that this is the case, followed by a very long help text that, on your average terminal, causes it to scroll so much that the warning isn’t even visible. It should only print the warning and nothing else like other git commands. This was tested with git version 2.37.2 on macOS.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-08-23 20:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-22 18:22 git diff prints long usage help if not run in git repo Mohamed Akram
2022-08-22 19:43 ` Junio C Hamano
2022-08-23 20:03   ` Mohamed Akram

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).