From: Jannik ZANDER Date: Wed, 25 Oct 2017 14:50:34 +0000 (+0200) Subject: Remove git hooks X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=e746eb862d0578f7b2193b15af130d5f3755b930;p=dotfiles.git Remove git hooks --- diff --git a/.bashrc b/.bashrc index 3551ddf..05d73af 100644 --- a/.bashrc +++ b/.bashrc @@ -13,3 +13,4 @@ done; # last line [ -f ~/.bashrc_local ] && . ~/.bashrc_local +LS_COLORS="ow=01;36;40" && export LS_COLORS diff --git a/.config/git/config b/.config/git/config index cf4929f..4d9d1aa 100644 --- a/.config/git/config +++ b/.config/git/config @@ -70,7 +70,8 @@ ctags = "!sh -c '[ -f .git/hooks/ctags ] || git init; .git/hooks/ctags' git-ctags" gtags = "!sh -c '[ -f .git/hooks/gtags ] || git init; .git/hooks/gtags' git-gtags" cscope = "!sh -c '[ -f .git/hooks/cscope ] || git init; .git/hooks/cscope' git-cscope" - + mydiff = difftool --dir-diff --tool=bc --no-prompt + [help] autocorrect = 10 [branch] @@ -85,13 +86,23 @@ default = simple [diff] tool = vimdiff -[difftool] - prompt = false [merge] tool = vimdiff +[difftool "vimdiff"] + prompt = false conflictstyle = diff3 -[mergetool] +[mergetool "vimdiff"] prompt = false +#[diff] +# tool = bc +#[merge] +# tool = bc +#[difftool "bc"] +# path = C:\\Program Files\\Beyond Compare 4\\BComp.exe +# trustExitCode = false +#[mergetool "bc"] +# path = C:\\Program Files\\Beyond Compare 4\\BComp.exe +# trustExitCode = false [init] templatedir = ~/.config/git/templates [core] diff --git a/.config/git/templates/hooks/cscope b/.config/git/templates/hooks/cscope deleted file mode 100755 index d625a41..0000000 --- a/.config/git/templates/hooks/cscope +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -set -e -PATH="/usr/local/bin:$PATH" -dir="`git rev-parse --git-dir`" -trap 'rm -f "$dir/$$.cscope.out"' EXIT INT TERM -git ls-files |\ - grep -E '\.(c(pp)?|h)$' |\ - awk '{print "\""$0"\""}' |\ - cscope -R -b -i - -f "$dir/$$.cscope.out" -mv "$dir/$$.cscope.out" "$dir/cscope.out" diff --git a/.config/git/templates/hooks/ctags b/.config/git/templates/hooks/ctags deleted file mode 100755 index 774d101..0000000 --- a/.config/git/templates/hooks/ctags +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -set -e -PATH="/usr/local/bin:$PATH" -dir="`git rev-parse --git-dir`" -trap 'rm -f "$dir/$$.tags"' EXIT INT TERM -git ls-files | \ - ctags --tag-relative -L - -f"$dir/$$.tags" --languages=-javascript,sql -mv "$dir/$$.tags" "$dir/tags" diff --git a/.config/git/templates/hooks/gtags b/.config/git/templates/hooks/gtags deleted file mode 100755 index 3e8e848..0000000 --- a/.config/git/templates/hooks/gtags +++ /dev/null @@ -1,9 +0,0 @@ -#! /bin/sh -set -e -PATH="/usr/local/bin:$PATH" -dir="`git rev-parse --git-dir`" -trap 'rm -rf "$dir/$$.gtags/"' EXIT INT TERM -mkdir "$dir/$$.gtags" -git ls-files | \ - gtags --file=- --skip-unreadable "$dir/$$.gtags" -mv "$dir/$$.gtags"/* "$dir/.." diff --git a/.config/git/templates/hooks/post-applypatch b/.config/git/templates/hooks/post-applypatch deleted file mode 100755 index be09ac7..0000000 --- a/.config/git/templates/hooks/post-applypatch +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -.git/hooks/ctags >/dev/null 2>&1 & -.git/hooks/gtags >/dev/null 2>&1 & -.git/hooks/cscope >/dev/null 2>&1 & - - - diff --git a/.config/git/templates/hooks/post-checkout b/.config/git/templates/hooks/post-checkout deleted file mode 100755 index ca24a88..0000000 --- a/.config/git/templates/hooks/post-checkout +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -.git/hooks/ctags >/dev/null 2>&1 & -.git/hooks/gtags >/dev/null 2>&1 & -.git/hooks/cscope >/dev/null 2>&1 & diff --git a/.config/git/templates/hooks/post-commit b/.config/git/templates/hooks/post-commit deleted file mode 100755 index ca24a88..0000000 --- a/.config/git/templates/hooks/post-commit +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -.git/hooks/ctags >/dev/null 2>&1 & -.git/hooks/gtags >/dev/null 2>&1 & -.git/hooks/cscope >/dev/null 2>&1 & diff --git a/.config/git/templates/hooks/post-merge b/.config/git/templates/hooks/post-merge deleted file mode 100644 index ca24a88..0000000 --- a/.config/git/templates/hooks/post-merge +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -.git/hooks/ctags >/dev/null 2>&1 & -.git/hooks/gtags >/dev/null 2>&1 & -.git/hooks/cscope >/dev/null 2>&1 & diff --git a/.config/git/templates/hooks/post-rewrite b/.config/git/templates/hooks/post-rewrite deleted file mode 100755 index aed59b9..0000000 --- a/.config/git/templates/hooks/post-rewrite +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -case "$1" in - rebase) exec .git/hooks/post-merge ;; -esac diff --git a/.vimrc b/.vimrc index 9750ff8..8a5439e 100644 --- a/.vimrc +++ b/.vimrc @@ -33,13 +33,13 @@ Plug 'scrooloose/syntastic' Plug 'airblade/vim-gitgutter' Plug 'majutsushi/tagbar' Plug 'fholgado/minibufexpl.vim' -Plug 'brookhong/cscope.vim' +"Plug 'brookhong/cscope.vim' Plug 'ctrlpvim/ctrlp.vim' Plug 'brandonbloom/csearch.vim' Plug 'mileszs/ack.vim' Plug 'jeetsukumaran/vim-filesearch' Plug 'haya14busa/incsearch.vim' -Plug 'altercation/vim-colors-solarized' +"Plug 'altercation/vim-colors-solarized' Plug 'editorconfig/editorconfig-vim' Plug 'johnsyweb/vim-makeshift' Plug 'tfnico/vim-gradle'