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

[PATCH] hooks-pre-commit: use \t, rather than a literal TAB in regexp

From
Jim Meyering <jim@meyering.net>
Date
Oct 26, 2007, 10:48 UTC
Message-ID
<87tzoei22e.fsf@rho.meyering.net>
Signed-off-by: Jim Meyering <meyering@redhat.com>
---
 templates/hooks--pre-commit |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/templates/hooks--pre-commit b/templates/hooks--pre-commit
index 18b8730..a19279b 100644
--- a/templates/hooks--pre-commit
+++ b/templates/hooks--pre-commit
@@ -58,7 +58,7 @@ perl -e '
 	    if (/\s$/) {
 		bad_line("trailing whitespace", $_);
 	    }
-	    if (/^\s* 	/) {
+	    if (/^\s* \t/) {
 		bad_line("indent SP followed by a TAB", $_);
 	    }
 	    if (/^(?:[<>=]){7}/) {
-- 
1.5.3.4.383.gd90a7
Message 1 of 1 in “hooks-pre-commit: use \t, rather than a literal TAB in regexp”
  1. hooks-pre-commit: use \t, rather than a literal TAB in regexpJim Meyering, Oct 26, 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.