git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git apply --check should give some indication that a patch applies cleanly

From
DDDaniel Dromboski <dandromb@gmail.com>
Date
Mar 14, 2019, 18:28 UTC
Message-ID
<CAGGzCPF_0ZGWn1-GCLLb=1XKcW936U_4CxiNRHPCV1kw5ZeOBw@mail.gmail.com>
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.
Message 1 of 1 in “git apply --check should give some indication that a patch applies cleanly”
  1. Daniel DromboskiMar 14, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.