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

[PATCH] fix documentation for git-commit --no-verify

From
MTMichael S. Tsirkin <mst@mellanox.co.il>
Date
Jan 12, 2007, 07:49 UTC
Message-ID
<20070112074935.GB1049@mellanox.co.il>
In-Reply-To
<20070111221211.GM17999@mellanox.co.il>

Despite what the documentation claims, git-commit does not check commit for suspicious lines: all hooks are disabled by default, and the pre-comit hook could be changed to do something else.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
---
Show 5 quoted lines
> Quoting Michael S. Tsirkin <mst@mellanox.co.il>:
> Subject: git-commit/git-applypatch whitespace rules different?
> 
> git-commit/git-applypatch whitespace rules seem to be different.
> Is this expected?
OK I found out why this happens, but the documentation can be improved.
diff --git a/Documentation/git-commit.txt b/Documentation/git-commit.txt
index a7adf24..cb081cd 100644
--- a/Documentation/git-commit.txt
+++ b/Documentation/git-commit.txt
@@ -72,12 +72,8 @@ OPTIONS
 	Add Signed-off-by line at the end of the commit message.
 
 --no-verify::
-	By default, the command looks for suspicious lines the
-	commit introduces, and aborts committing if there is one.
-	The definition of 'suspicious lines' is currently the
-	lines that has trailing whitespaces, and the lines whose
-	indentation has a SP character immediately followed by a
-	TAB character.  This option turns off the check.
+	This option bypasses the pre-commit hook.
+	See also link:hooks.html[hooks].
 
 -e|--edit::
 	The message taken from file with `-F`, command line with
-- 
MST
Previous: Michael S. Tsirkin
Message 2 of 2 in “git-commit/git-applypatch whitespace rules different?”
  1. Michael S. TsirkinJan 11, 2007
  2. fix documentation for git-commit --no-verifyMichael S. Tsirkin, Jan 12, 2007

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.