{"thread":{"id":"1664","subject":"Fix: remove generated template files","startedAt":"2005-08-26T18:26:24Z","lastAt":"2005-08-26T18:52:31Z","messageCount":2,"participants":["Marco Costalba","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"7816","messageId":"20050826182624.86421.qmail@web26306.mail.ukl.yahoo.com","threadId":"1664","inReplyTo":null,"subject":"Fix: remove generated template files","fromName":"Marco Costalba","fromEmail":"mcostalba@yahoo.it","sentAt":"2005-08-26T18:26:24Z","receivedAt":"2005-08-26T18:26:24Z","isPatch":false,"sender":{"key":"mcostalba@gmail.com","avatar":null},"body":"From: Marco Costalba <mcostalba@yahoo.it>\nDate: 1125080490 +0200\n\nThis files are created by 'make' so remove from\nrepository\n\nSigned-off-by: Marco Costalba <mcostalba@yahoo.it>\n\n---\n\nThis time I send the patch ;-)\n\n\n templates/blt/description          |    1 -\n templates/blt/hooks/applypatch-msg |   14 --------\n templates/blt/hooks/commit-msg     |   14 --------\n templates/blt/hooks/post-commit    |    8 -----\n templates/blt/hooks/post-update    |    8 -----\n templates/blt/hooks/pre-applypatch |   14 --------\n templates/blt/hooks/pre-commit     |   61 ------------------------------------\n templates/blt/hooks/update         |   27 ----------------\n templates/blt/info/exclude         |    6 ----\n 9 files changed, 0 insertions(+), 153 deletions(-)\n delete mode 100644 templates/blt/description\n delete mode 100644 templates/blt/hooks/applypatch-msg\n delete mode 100644 templates/blt/hooks/commit-msg\n delete mode 100644 templates/blt/hooks/post-commit\n delete mode 100644 templates/blt/hooks/post-update\n delete mode 100644 templates/blt/hooks/pre-applypatch\n delete mode 100644 templates/blt/hooks/pre-commit\n delete mode 100644 templates/blt/hooks/update\n delete mode 100644 templates/blt/info/exclude\n\n01168c6044e7ebb570e851b4707b4fe0c7f40c15\ndiff --git a/templates/blt/description b/templates/blt/description\ndeleted file mode 100644\n--- a/templates/blt/description\n+++ /dev/null\n@@ -1 +0,0 @@\n-Unnamed repository; edit this file to name it for gitweb.\ndiff --git a/templates/blt/hooks/applypatch-msg b/templates/blt/hooks/applypatch-msg\ndeleted file mode 100644\n--- a/templates/blt/hooks/applypatch-msg\n+++ /dev/null\n@@ -1,14 +0,0 @@\n-#!/bin/sh\n-#\n-# An example hook script to check the commit log message taken by\n-# applypatch from an e-mail message.\n-#\n-# The hook should exit with non-zero status after issuing an\n-# appropriate message if it wants to stop the commit.  The hook is\n-# allowed to edit the commit message file.\n-#\n-# To enable this hook, make this file executable.\n-\n-test -x \"$GIT_DIR/hooks/commit-msg\" &&\n-\texec \"$GIT_DIR/hooks/commit-msg\" ${1+\"$@\"}\n-:\ndiff --git a/templates/blt/hooks/commit-msg b/templates/blt/hooks/commit-msg\ndeleted file mode 100644\n--- a/templates/blt/hooks/commit-msg\n+++ /dev/null\n@@ -1,14 +0,0 @@\n-#!/bin/sh\n-#\n-# An example hook script to check the commit log message.\n-# Called by git-commit-script with one argument, the name of the file\n-# that has the commit message.  The hook should exit with non-zero\n-# status after issuing an appropriate message if it wants to stop the\n-# commit.  The hook is allowed to edit the commit message file.\n-#\n-# To enable this hook, make this file executable.\n-\n-# This example catches duplicate Signed-off-by lines.\n-\n-test \"\" = \"$(grep '^Signed-off-by: ' \"$1\" |\n-\t sort | uniq -c | sed -e '/^[ \t]*1 /d')\"\ndiff --git a/templates/blt/hooks/post-commit b/templates/blt/hooks/post-commit\ndeleted file mode 100644\n--- a/templates/blt/hooks/post-commit\n+++ /dev/null\n@@ -1,8 +0,0 @@\n-#!/bin/sh\n-#\n-# An example hook script that is called after a successful\n-# commit is made.\n-#\n-# To enable this hook, make this file executable.\n-\n-: Nothing\ndiff --git a/templates/blt/hooks/post-update b/templates/blt/hooks/post-update\ndeleted file mode 100644\n--- a/templates/blt/hooks/post-update\n+++ /dev/null\n@@ -1,8 +0,0 @@\n-#!/bin/sh\n-#\n-# An example hook script to prepare a packed repository for use over\n-# dumb transports.\n-#\n-# To enable this hook, make this file executable by \"chmod +x post-update\".\n-\n-exec git-update-server-info\ndiff --git a/templates/blt/hooks/pre-applypatch b/templates/blt/hooks/pre-applypatch\ndeleted file mode 100644\n--- a/templates/blt/hooks/pre-applypatch\n+++ /dev/null\n@@ -1,14 +0,0 @@\n-#!/bin/sh\n-#\n-# An example hook script to verify what is about to be committed\n-# by applypatch from an e-mail message.\n-#\n-# The hook should exit with non-zero status after issuing an\n-# appropriate message if it wants to stop the commit.\n-#\n-# To enable this hook, make this file executable.\n-\n-test -x \"$GIT_DIR/hooks/pre-commit\" &&\n-\texec \"$GIT_DIR/hooks/pre-commit\" ${1+\"$@\"}\n-:\n-\ndiff --git a/templates/blt/hooks/pre-commit b/templates/blt/hooks/pre-commit\ndeleted file mode 100644\n--- a/templates/blt/hooks/pre-commit\n+++ /dev/null\n@@ -1,61 +0,0 @@\n-#!/bin/sh\n-#\n-# An example hook script to verify what is about to be committed.\n-# Called by git-commit-script with no arguments.  The hook should\n-# exit with non-zero status after issuing an appropriate message if\n-# it wants to stop the commit.\n-#\n-# To enable this hook, make this file executable.\n-\n-# This is slightly modified from Andrew Morton's Perfect Patch.\n-# Lines you introduce should not have trailing whitespace.\n-# Also check for an indentation that has SP before a TAB.\n-perl -e '\n-    my $fh;\n-    my $found_bad = 0;\n-    my $filename;\n-    my $reported_filename = \"\";\n-    my $lineno;\n-    sub bad_line {\n-\tmy ($why, $line) = @_;\n-\tif (!$found_bad) {\n-\t    print STDERR \"*\\n\";\n-\t    print STDERR \"* You have some suspicious patch lines:\\n\";\n-\t    print STDERR \"*\\n\";\n-\t    $found_bad = 1;\n-\t}\n-\tif ($reported_filename ne $filename) {\n-\t    print STDERR \"* In $filename\\n\";\n-\t    $reported_filename = $filename;\n-\t}\n-\tprint STDERR \"* $why (line $lineno)\\n\";\n-\tprint STDERR \"$filename:$lineno:$line\\n\";\n-    }\n-    open $fh, \"-|\", qw(git-diff-cache -p -M --cached HEAD);\n-    while (<$fh>) {\n-\tif (m|^diff --git a/(.*) b/\\1$|) {\n-\t    $filename = $1;\n-\t    next;\n-\t}\n-\tif (/^@@ -\\S+ \\+(\\d+)/) {\n-\t    $lineno = $1 - 1;\n-\t    next;\n-\t}\n-\tif (/^ /) {\n-\t    $lineno++;\n-\t    next;\n-\t}\n-\tif (s/^\\+//) {\n-\t    $lineno++;\n-\t    chomp;\n-\t    if (/\\s$/) {\n-\t\tbad_line(\"trailing whitespace\", $_);\n-\t    }\n-\t    if (/^\\s* \t/) {\n-\t\tbad_line(\"indent SP followed by a TAB\", $_);\n-\t    }\n-\t}\n-    }\n-    exit($found_bad);\n-'\n-\ndiff --git a/templates/blt/hooks/update b/templates/blt/hooks/update\ndeleted file mode 100644\n--- a/templates/blt/hooks/update\n+++ /dev/null\n@@ -1,27 +0,0 @@\n-#!/bin/sh\n-#\n-# An example hook script to mail out commit update information.\n-# Called by git-receive-pack with arguments: refname sha1-old sha1-new\n-#\n-# To enable this hook:\n-# (1) change the recipient e-mail address\n-# (2) make this file executable by \"chmod +x update\".\n-#\n-\n-recipient=\"commit-list@mydomain.xz\"\n-\n-if expr \"$2\" : '0*$' >/dev/null\n-then\n-\techo \"Created a new ref, with the following commits:\"\n-\tgit-rev-list --pretty \"$3\"\n-else\n-\t$base=$(git-merge-base \"$2\" \"$3\")\n-\tif [ $base == \"$2\" ]; then\n-\t\techo \"New commits:\"\n-\telse\n-\t\techo \"Rebased ref, commits from common ancestor:\"\n-fi\n-git-rev-list --pretty \"$3\" \"^$base\"\n-fi |\n-mail -s \"Changes to ref $1\" \"$recipient\"\n-exit 0\ndiff --git a/templates/blt/info/exclude b/templates/blt/info/exclude\ndeleted file mode 100644\n--- a/templates/blt/info/exclude\n+++ /dev/null\n@@ -1,6 +0,0 @@\n-# git-ls-files --others --exclude-from=.git/info/exclude\n-# Lines that start with '#' are comments.\n-# For a project mostly in C, the following would be a good set of\n-# exclude patterns (uncomment them if you want to use them):\n-# *.[oa]\n-# *~\n\n\n\n__________________________________________________\nDo You Yahoo!?\nTired of spam?  Yahoo! Mail has the best spam protection around \nhttp://mail.yahoo.com \n"},{"id":"7818","messageId":"7vll2obkeo.fsf@assigned-by-dhcp.cox.net","threadId":"1664","inReplyTo":"20050826182624.86421.qmail@web26306.mail.ukl.yahoo.com","subject":"Re: Fix: remove generated template files","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2005-08-26T18:52:31Z","receivedAt":"2005-08-26T18:52:31Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Marco Costalba <mcostalba@yahoo.it> writes:\n\n> 01168c6044e7ebb570e851b4707b4fe0c7f40c15\n> diff --git a/templates/blt/description b/templates/blt/description\n\nCould I please see output of the following command in your\nrepository?\n\n  $ git whatchanged 01168c6044e7ebb570e851b4707b4fe0c7f40c15 templates/\n"}]}