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

Re: [PATCH] pull: passthrough --no-verify to merge

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 11, 2020, 17:37 UTC
Message-ID
<CAPc5daXjJY42Ou-P71G6Tmo-Qgf2CeLT9dCiw63urg2cZ1eiNw@mail.gmail.com>
In-Reply-To
<20200611172201.962109-1-a3at.mail@gmail.com>

Here is where you justify why applying this patch is a good idea for the project and its users. You left it blank.

Show 5 quoted lines
> Signed-off-by: Azat Khuzhin <a3at.mail@gmail.com>
> ---
>  builtin/pull.c                                   |  6 ++++++
>  t/t7503-pre-commit-and-pre-merge-commit-hooks.sh | 12 ++++++++++++
>  2 files changed, 18 insertions(+)
I can sort of see the convenience value of doing:
  $ git pull --no-verify

when the remote is *known* to always have problematic changes that you'd rather prefer to skip the check, instead of having to do

  $ git pull
  $ git merge --no-verify FETCH_HEAD

to see if this time their new stuff passes the check and use the option only when they are unclean.

But I am not sure if it is a good idea to let the convenience trump the code hygiene in general.

In any case, even if we assume that the convenience value outweighs the downside of allowing people to become even more sloppy, we would need an update to the documentation, no?

Would "--no-verify" work well both in the rebase mode and in the merge mode, by the way? If yes, then that would be great. If it works only with one backend but not with the other, do we silently ignore, or do we detect incompatible options and error out? That needs to be designed, documented, and tested, too.

Thanks.
Previous: Azat Khuzhin
Message 2 of 2 in “pull: passthrough --no-verify to merge”
  1. pull: passthrough --no-verify to mergeAzat Khuzhin, Jun 11, 2020
  2. Junio C HamanoJun 11, 2020

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.