git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mohamed Akram <mohd.akram@outlook.com>
To: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: git diff prints long usage help if not run in git repo
Date: Mon, 22 Aug 2022 18:22:21 +0000	[thread overview]
Message-ID: <A2326287-9808-4479-95C5-E54979E21F95@outlook.com> (raw)

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.

             reply	other threads:[~2022-08-22 18:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-22 18:22 Mohamed Akram [this message]
2022-08-22 19:43 ` git diff prints long usage help if not run in git repo Junio C Hamano
2022-08-23 20:03   ` Mohamed Akram

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A2326287-9808-4479-95C5-E54979E21F95@outlook.com \
    --to=mohd.akram@outlook.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).