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

Re: rebase invoking pre-commit

From
Sean Allred <allred.sean@gmail.com>
Date
Dec 22, 2023, 22:05 UTC
Message-ID
<m01qbdx561.fsf@epic96565.epic.com>
In-Reply-To
<bf1ce173-50d7-405f-88c1-7edb7ec5a55a@gmail.com>
Phillip Wood <phillip.wood123@gmail.com> writes:
> [...], we'd need to add something like "git rebase --continue
> --no-verify" as a way to bypass it when resolving conflicts in commits
> that were created with "git commit --no-verify".

Looks like such a flag already exists to skip the 'pre-rebase' hook. Presumably it can pull double-duty to skip pre-commit as well.

(It's a little messy to me to not be able to pick/choose which hooks to skip, but looks like this is already status quo with other hooks.)

-- Sean Allred

Previous: Phillip WoodNext: Junio C Hamano
Message 3 of 8 in “rebase invoking pre-commit”
  1. Sean AllredDec 21, 2023
  2. Phillip WoodDec 22, 2023
  3. Sean AllredDec 22, 2023
  4. Junio C HamanoDec 26, 2023
  5. Elijah NewrenDec 23, 2023
  6. Sean AllredDec 31, 2023
  7. Elijah NewrenJan 5, 2024
  8. Junio C HamanoJan 5, 2024

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.