git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Daniel Dromboski <dandromb@gmail.com>
To: git@vger.kernel.org
Subject: git apply --check should give some indication that a patch applies cleanly
Date: Thu, 14 Mar 2019 14:28:22 -0400	[thread overview]
Message-ID: <CAGGzCPF_0ZGWn1-GCLLb=1XKcW936U_4CxiNRHPCV1kw5ZeOBw@mail.gmail.com> (raw)

Hi folks,

The main purpose of `git apply --check` is to see if a patch can apply.

It's not intuitive to a user, just from the command name, that "no
output" means your patch can apply cleanly.

Furthermore, `git apply --check --verbose` only says that it is
checking the patch, ending with "..." which usually means "more info
to come"... But it doesn't print anything else. An example command and
output:

```
$ git apply --check --verbose [my-patch.patch]
Checking patch [path/to/file.ext]...
```

I'd like if there were some way for the command to confirm outright
that the patch applies, to save users the confusion.

Thanks.

                 reply	other threads:[~2019-03-14 18:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

  List information: http://vger.kernel.org/majordomo-info.html

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

  git send-email \
    --in-reply-to='CAGGzCPF_0ZGWn1-GCLLb=1XKcW936U_4CxiNRHPCV1kw5ZeOBw@mail.gmail.com' \
    --to=dandromb@gmail.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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).