From 01c9ec53b92c1b1c4f653b1af9dd2714e5635d0e Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Sun, 7 Feb 2016 14:48:06 +0100 Subject: [PATCH] [git] remove custom template for new repositories --- git_template/description | 1 - git_template/hooks/ctags | 6 ------ git_template/hooks/post-checkout | 2 -- git_template/hooks/post-commit | 2 -- git_template/hooks/post-merge | 2 -- git_template/info/exclude | 6 ------ gitconfig | 3 --- 7 files changed, 22 deletions(-) delete mode 100644 git_template/description delete mode 100755 git_template/hooks/ctags delete mode 100755 git_template/hooks/post-checkout delete mode 100755 git_template/hooks/post-commit delete mode 100755 git_template/hooks/post-merge delete mode 100644 git_template/info/exclude diff --git a/git_template/description b/git_template/description deleted file mode 100644 index 498b267..0000000 --- a/git_template/description +++ /dev/null @@ -1 +0,0 @@ -Unnamed repository; edit this file 'description' to name the repository. diff --git a/git_template/hooks/ctags b/git_template/hooks/ctags deleted file mode 100755 index 8d6a243..0000000 --- a/git_template/hooks/ctags +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash -set -e -dir="$(git rev-parse --git-dir)" -trap 'rm -f "$dir/$$.tags"' EXIT -git ls-files | "${CTAGS:-ctags}" --tag-relative -L - -f "$dir/$$.tags" -mv "$dir/$$.tags" "$dir/tags" diff --git a/git_template/hooks/post-checkout b/git_template/hooks/post-checkout deleted file mode 100755 index 4c7f6cc..0000000 --- a/git_template/hooks/post-checkout +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -.git/hooks/ctags >/dev/null 2>&1 & diff --git a/git_template/hooks/post-commit b/git_template/hooks/post-commit deleted file mode 100755 index 4c7f6cc..0000000 --- a/git_template/hooks/post-commit +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -.git/hooks/ctags >/dev/null 2>&1 & diff --git a/git_template/hooks/post-merge b/git_template/hooks/post-merge deleted file mode 100755 index 4c7f6cc..0000000 --- a/git_template/hooks/post-merge +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -.git/hooks/ctags >/dev/null 2>&1 & diff --git a/git_template/info/exclude b/git_template/info/exclude deleted file mode 100644 index a5196d1..0000000 --- a/git_template/info/exclude +++ /dev/null @@ -1,6 +0,0 @@ -# git ls-files --others --exclude-from=.git/info/exclude -# Lines that start with '#' are comments. -# For a project mostly in C, the following would be a good set of -# exclude patterns (uncomment them if you want to use them): -# *.[oa] -# *~ diff --git a/gitconfig b/gitconfig index 0a50201..d55d680 100644 --- a/gitconfig +++ b/gitconfig @@ -1,6 +1,3 @@ -[init] - templatedir = ~/.git_template - [alias] a = add aa = add --all