=== modified file 'vim/bundle/SearchParty/.git/index' Binary files vim/bundle/SearchParty/.git/index 2015-02-13 10:04:41 +0000 and vim/bundle/SearchParty/.git/index 2015-02-13 09:59:55 +0000 differ === modified file 'vim/bundle/SearchParty/.git/logs/HEAD' --- vim/bundle/SearchParty/.git/logs/HEAD 2015-02-13 10:04:41 +0000 +++ vim/bundle/SearchParty/.git/logs/HEAD 2015-02-13 09:59:55 +0000 @@ -1,1 +1,1 @@ -0000000000000000000000000000000000000000 cf496298833c3ce5df74fd23c814596d0d3acfd5 Jan Pobrislo 1423821864 +0100 clone: from https://github.com/dahu/SearchParty.git +0000000000000000000000000000000000000000 cf496298833c3ce5df74fd23c814596d0d3acfd5 Jan Pobrislo 1423821567 +0100 clone: from https://github.com/dahu/SearchParty.git === modified file 'vim/bundle/SearchParty/.git/logs/refs/heads/master' --- vim/bundle/SearchParty/.git/logs/refs/heads/master 2015-02-13 10:04:41 +0000 +++ vim/bundle/SearchParty/.git/logs/refs/heads/master 2015-02-13 09:59:55 +0000 @@ -1,1 +1,1 @@ -0000000000000000000000000000000000000000 cf496298833c3ce5df74fd23c814596d0d3acfd5 Jan Pobrislo 1423821864 +0100 clone: from https://github.com/dahu/SearchParty.git +0000000000000000000000000000000000000000 cf496298833c3ce5df74fd23c814596d0d3acfd5 Jan Pobrislo 1423821567 +0100 clone: from https://github.com/dahu/SearchParty.git === modified file 'vim/bundle/SearchParty/.git/logs/refs/remotes/origin/HEAD' --- vim/bundle/SearchParty/.git/logs/refs/remotes/origin/HEAD 2015-02-13 10:04:41 +0000 +++ vim/bundle/SearchParty/.git/logs/refs/remotes/origin/HEAD 2015-02-13 09:59:55 +0000 @@ -1,1 +1,1 @@ -0000000000000000000000000000000000000000 cf496298833c3ce5df74fd23c814596d0d3acfd5 Jan Pobrislo 1423821864 +0100 clone: from https://github.com/dahu/SearchParty.git +0000000000000000000000000000000000000000 cf496298833c3ce5df74fd23c814596d0d3acfd5 Jan Pobrislo 1423821567 +0100 clone: from https://github.com/dahu/SearchParty.git === modified file 'vim/bundle/csv.vim/.git/index' Binary files vim/bundle/csv.vim/.git/index 2015-02-13 10:04:41 +0000 and vim/bundle/csv.vim/.git/index 2015-02-13 09:59:55 +0000 differ === modified file 'vim/bundle/csv.vim/.git/logs/HEAD' --- vim/bundle/csv.vim/.git/logs/HEAD 2015-02-13 10:04:41 +0000 +++ vim/bundle/csv.vim/.git/logs/HEAD 2015-02-13 09:59:55 +0000 @@ -1,1 +1,1 @@ -0000000000000000000000000000000000000000 f0f368bc50138c09f2d215d46aa26a4f3774e24f Jan Pobrislo 1423821861 +0100 clone: from https://github.com/chrisbra/csv.vim +0000000000000000000000000000000000000000 f0f368bc50138c09f2d215d46aa26a4f3774e24f Jan Pobrislo 1423821565 +0100 clone: from https://github.com/chrisbra/csv.vim === modified file 'vim/bundle/csv.vim/.git/logs/refs/heads/master' --- vim/bundle/csv.vim/.git/logs/refs/heads/master 2015-02-13 10:04:41 +0000 +++ vim/bundle/csv.vim/.git/logs/refs/heads/master 2015-02-13 09:59:55 +0000 @@ -1,1 +1,1 @@ -0000000000000000000000000000000000000000 f0f368bc50138c09f2d215d46aa26a4f3774e24f Jan Pobrislo 1423821861 +0100 clone: from https://github.com/chrisbra/csv.vim +0000000000000000000000000000000000000000 f0f368bc50138c09f2d215d46aa26a4f3774e24f Jan Pobrislo 1423821565 +0100 clone: from https://github.com/chrisbra/csv.vim === modified file 'vim/bundle/csv.vim/.git/logs/refs/remotes/origin/HEAD' --- vim/bundle/csv.vim/.git/logs/refs/remotes/origin/HEAD 2015-02-13 10:04:41 +0000 +++ vim/bundle/csv.vim/.git/logs/refs/remotes/origin/HEAD 2015-02-13 09:59:55 +0000 @@ -1,1 +1,1 @@ -0000000000000000000000000000000000000000 f0f368bc50138c09f2d215d46aa26a4f3774e24f Jan Pobrislo 1423821861 +0100 clone: from https://github.com/chrisbra/csv.vim +0000000000000000000000000000000000000000 f0f368bc50138c09f2d215d46aa26a4f3774e24f Jan Pobrislo 1423821565 +0100 clone: from https://github.com/chrisbra/csv.vim === removed directory 'vim/bundle/icalendar.vim' === removed directory 'vim/bundle/icalendar.vim/.git' === removed file 'vim/bundle/icalendar.vim/.git/HEAD' --- vim/bundle/icalendar.vim/.git/HEAD 2015-02-13 10:04:41 +0000 +++ vim/bundle/icalendar.vim/.git/HEAD 1970-01-01 00:00:00 +0000 @@ -1,1 +0,0 @@ -ref: refs/heads/master === removed file 'vim/bundle/icalendar.vim/.git/config' --- vim/bundle/icalendar.vim/.git/config 2015-02-13 10:04:41 +0000 +++ vim/bundle/icalendar.vim/.git/config 1970-01-01 00:00:00 +0000 @@ -1,11 +0,0 @@ -[core] - repositoryformatversion = 0 - filemode = true - bare = false - logallrefupdates = true -[remote "origin"] - url = https://github.com/vim-scripts/icalendar.vim.git - fetch = +refs/heads/master:refs/remotes/origin/master -[branch "master"] - remote = origin - merge = refs/heads/master === removed file 'vim/bundle/icalendar.vim/.git/description' --- vim/bundle/icalendar.vim/.git/description 2015-02-13 10:04:41 +0000 +++ vim/bundle/icalendar.vim/.git/description 1970-01-01 00:00:00 +0000 @@ -1,1 +0,0 @@ -Unnamed repository; edit this file 'description' to name the repository. === removed directory 'vim/bundle/icalendar.vim/.git/hooks' === removed file 'vim/bundle/icalendar.vim/.git/hooks/applypatch-msg.sample' --- vim/bundle/icalendar.vim/.git/hooks/applypatch-msg.sample 2015-02-13 10:04:41 +0000 +++ vim/bundle/icalendar.vim/.git/hooks/applypatch-msg.sample 1970-01-01 00:00:00 +0000 @@ -1,15 +0,0 @@ -#!/bin/sh -# -# An example hook script to check the commit log message taken by -# applypatch from an e-mail message. -# -# The hook should exit with non-zero status after issuing an -# appropriate message if it wants to stop the commit. The hook is -# allowed to edit the commit message file. -# -# To enable this hook, rename this file to "applypatch-msg". - -. git-sh-setup -test -x "$GIT_DIR/hooks/commit-msg" && - exec "$GIT_DIR/hooks/commit-msg" ${1+"$@"} -: === removed file 'vim/bundle/icalendar.vim/.git/hooks/commit-msg.sample' --- vim/bundle/icalendar.vim/.git/hooks/commit-msg.sample 2015-02-13 10:04:41 +0000 +++ vim/bundle/icalendar.vim/.git/hooks/commit-msg.sample 1970-01-01 00:00:00 +0000 @@ -1,24 +0,0 @@ -#!/bin/sh -# -# An example hook script to check the commit log message. -# Called by "git commit" with one argument, the name of the file -# that has the commit message. The hook should exit with non-zero -# status after issuing an appropriate message if it wants to stop the -# commit. The hook is allowed to edit the commit message file. -# -# To enable this hook, rename this file to "commit-msg". - -# Uncomment the below to add a Signed-off-by line to the message. -# Doing this in a hook is a bad idea in general, but the prepare-commit-msg -# hook is more suited to it. -# -# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') -# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" - -# This example catches duplicate Signed-off-by lines. - -test "" = "$(grep '^Signed-off-by: ' "$1" | - sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { - echo >&2 Duplicate Signed-off-by lines. - exit 1 -} === removed file 'vim/bundle/icalendar.vim/.git/hooks/post-update.sample' --- vim/bundle/icalendar.vim/.git/hooks/post-update.sample 2015-02-13 10:04:41 +0000 +++ vim/bundle/icalendar.vim/.git/hooks/post-update.sample 1970-01-01 00:00:00 +0000 @@ -1,8 +0,0 @@ -#!/bin/sh -# -# An example hook script to prepare a packed repository for use over -# dumb transports. -# -# To enable this hook, rename this file to "post-update". - -exec git update-server-info === removed file 'vim/bundle/icalendar.vim/.git/hooks/pre-applypatch.sample' --- vim/bundle/icalendar.vim/.git/hooks/pre-applypatch.sample 2015-02-13 10:04:41 +0000 +++ vim/bundle/icalendar.vim/.git/hooks/pre-applypatch.sample 1970-01-01 00:00:00 +0000 @@ -1,14 +0,0 @@ -#!/bin/sh -# -# An example hook script to verify what is about to be committed -# by applypatch from an e-mail message. -# -# The hook should exit with non-zero status after issuing an -# appropriate message if it wants to stop the commit. -# -# To enable this hook, rename this file to "pre-applypatch". - -. git-sh-setup -test -x "$GIT_DIR/hooks/pre-commit" && - exec "$GIT_DIR/hooks/pre-commit" ${1+"$@"} -: === removed file 'vim/bundle/icalendar.vim/.git/hooks/pre-commit.sample' --- vim/bundle/icalendar.vim/.git/hooks/pre-commit.sample 2015-02-13 10:04:41 +0000 +++ vim/bundle/icalendar.vim/.git/hooks/pre-commit.sample 1970-01-01 00:00:00 +0000 @@ -1,49 +0,0 @@ -#!/bin/sh -# -# An example hook script to verify what is about to be committed. -# Called by "git commit" with no arguments. The hook should -# exit with non-zero status after issuing an appropriate message if -# it wants to stop the commit. -# -# To enable this hook, rename this file to "pre-commit". - -if git rev-parse --verify HEAD >/dev/null 2>&1 -then - against=HEAD -else - # Initial commit: diff against an empty tree object - against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 -fi - -# If you want to allow non-ASCII filenames set this variable to true. -allownonascii=$(git config --bool hooks.allownonascii) - -# Redirect output to stderr. -exec 1>&2 - -# Cross platform projects tend to avoid non-ASCII filenames; prevent -# them from being added to the repository. We exploit the fact that the -# printable range starts at the space character and ends with tilde. -if [ "$allownonascii" != "true" ] && - # Note that the use of brackets around a tr range is ok here, (it's - # even required, for portability to Solaris 10's /usr/bin/tr), since - # the square bracket bytes happen to fall in the designated range. - test $(git diff --cached --name-only --diff-filter=A -z $against | - LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0 -then - cat <<\EOF -Error: Attempt to add a non-ASCII file name. - -This can cause problems if you want to work with people on other platforms. - -To be portable it is advisable to rename the file. - -If you know what you are doing you can disable this check using: - - git config hooks.allownonascii true -EOF - exit 1 -fi - -# If there are whitespace errors, print the offending file names and fail. -exec git diff-index --check --cached $against -- === removed file 'vim/bundle/icalendar.vim/.git/hooks/pre-push.sample' --- vim/bundle/icalendar.vim/.git/hooks/pre-push.sample 2015-02-13 10:04:41 +0000 +++ vim/bundle/icalendar.vim/.git/hooks/pre-push.sample 1970-01-01 00:00:00 +0000 @@ -1,54 +0,0 @@ -#!/bin/sh - -# An example hook script to verify what is about to be pushed. Called by "git -# push" after it has checked the remote status, but before anything has been -# pushed. If this script exits with a non-zero status nothing will be pushed. -# -# This hook is called with the following parameters: -# -# $1 -- Name of the remote to which the push is being done -# $2 -- URL to which the push is being done -# -# If pushing without using a named remote those arguments will be equal. -# -# Information about the commits which are being pushed is supplied as lines to -# the standard input in the form: -# -# -# -# This sample shows how to prevent push of commits where the log message starts -# with "WIP" (work in progress). - -remote="$1" -url="$2" - -z40=0000000000000000000000000000000000000000 - -IFS=' ' -while read local_ref local_sha remote_ref remote_sha -do - if [ "$local_sha" = $z40 ] - then - # Handle delete - : - else - if [ "$remote_sha" = $z40 ] - then - # New branch, examine all commits - range="$local_sha" - else - # Update to existing branch, examine new commits - range="$remote_sha..$local_sha" - fi - - # Check for WIP commit - commit=`git rev-list -n 1 --grep '^WIP' "$range"` - if [ -n "$commit" ] - then - echo >&2 "Found WIP commit in $local_ref, not pushing" - exit 1 - fi - fi -done - -exit 0 === removed file 'vim/bundle/icalendar.vim/.git/hooks/pre-rebase.sample' --- vim/bundle/icalendar.vim/.git/hooks/pre-rebase.sample 2015-02-13 10:04:41 +0000 +++ vim/bundle/icalendar.vim/.git/hooks/pre-rebase.sample 1970-01-01 00:00:00 +0000 @@ -1,169 +0,0 @@ -#!/bin/sh -# -# Copyright (c) 2006, 2008 Junio C Hamano -# -# The "pre-rebase" hook is run just before "git rebase" starts doing -# its job, and can prevent the command from running by exiting with -# non-zero status. -# -# The hook is called with the following parameters: -# -# $1 -- the upstream the series was forked from. -# $2 -- the branch being rebased (or empty when rebasing the current branch). -# -# This sample shows how to prevent topic branches that are already -# merged to 'next' branch from getting rebased, because allowing it -# would result in rebasing already published history. - -publish=next -basebranch="$1" -if test "$#" = 2 -then - topic="refs/heads/$2" -else - topic=`git symbolic-ref HEAD` || - exit 0 ;# we do not interrupt rebasing detached HEAD -fi - -case "$topic" in -refs/heads/??/*) - ;; -*) - exit 0 ;# we do not interrupt others. - ;; -esac - -# Now we are dealing with a topic branch being rebased -# on top of master. Is it OK to rebase it? - -# Does the topic really exist? -git show-ref -q "$topic" || { - echo >&2 "No such branch $topic" - exit 1 -} - -# Is topic fully merged to master? -not_in_master=`git rev-list --pretty=oneline ^master "$topic"` -if test -z "$not_in_master" -then - echo >&2 "$topic is fully merged to master; better remove it." - exit 1 ;# we could allow it, but there is no point. -fi - -# Is topic ever merged to next? If so you should not be rebasing it. -only_next_1=`git rev-list ^master "^$topic" ${publish} | sort` -only_next_2=`git rev-list ^master ${publish} | sort` -if test "$only_next_1" = "$only_next_2" -then - not_in_topic=`git rev-list "^$topic" master` - if test -z "$not_in_topic" - then - echo >&2 "$topic is already up-to-date with master" - exit 1 ;# we could allow it, but there is no point. - else - exit 0 - fi -else - not_in_next=`git rev-list --pretty=oneline ^${publish} "$topic"` - /usr/bin/perl -e ' - my $topic = $ARGV[0]; - my $msg = "* $topic has commits already merged to public branch:\n"; - my (%not_in_next) = map { - /^([0-9a-f]+) /; - ($1 => 1); - } split(/\n/, $ARGV[1]); - for my $elem (map { - /^([0-9a-f]+) (.*)$/; - [$1 => $2]; - } split(/\n/, $ARGV[2])) { - if (!exists $not_in_next{$elem->[0]}) { - if ($msg) { - print STDERR $msg; - undef $msg; - } - print STDERR " $elem->[1]\n"; - } - } - ' "$topic" "$not_in_next" "$not_in_master" - exit 1 -fi - -exit 0 - -################################################################ - -This sample hook safeguards topic branches that have been -published from being rewound. - -The workflow assumed here is: - - * Once a topic branch forks from "master", "master" is never - merged into it again (either directly or indirectly). - - * Once a topic branch is fully cooked and merged into "master", - it is deleted. If you need to build on top of it to correct - earlier mistakes, a new topic branch is created by forking at - the tip of the "master". This is not strictly necessary, but - it makes it easier to keep your history simple. - - * Whenever you need to test or publish your changes to topic - branches, merge them into "next" branch. - -The script, being an example, hardcodes the publish branch name -to be "next", but it is trivial to make it configurable via -$GIT_DIR/config mechanism. - -With this workflow, you would want to know: - -(1) ... if a topic branch has ever been merged to "next". Young - topic branches can have stupid mistakes you would rather - clean up before publishing, and things that have not been - merged into other branches can be easily rebased without - affecting other people. But once it is published, you would - not want to rewind it. - -(2) ... if a topic branch has been fully merged to "master". - Then you can delete it. More importantly, you should not - build on top of it -- other people may already want to - change things related to the topic as patches against your - "master", so if you need further changes, it is better to - fork the topic (perhaps with the same name) afresh from the - tip of "master". - -Let's look at this example: - - o---o---o---o---o---o---o---o---o---o "next" - / / / / - / a---a---b A / / - / / / / - / / c---c---c---c B / - / / / \ / - / / / b---b C \ / - / / / / \ / - ---o---o---o---o---o---o---o---o---o---o---o "master" - - -A, B and C are topic branches. - - * A has one fix since it was merged up to "next". - - * B has finished. It has been fully merged up to "master" and "next", - and is ready to be deleted. - - * C has not merged to "next" at all. - -We would want to allow C to be rebased, refuse A, and encourage -B to be deleted. - -To compute (1): - - git rev-list ^master ^topic next - git rev-list ^master next - - if these match, topic has not merged in next at all. - -To compute (2): - - git rev-list master..topic - - if this is empty, it is fully merged to "master". === removed file 'vim/bundle/icalendar.vim/.git/hooks/prepare-commit-msg.sample' --- vim/bundle/icalendar.vim/.git/hooks/prepare-commit-msg.sample 2015-02-13 10:04:41 +0000 +++ vim/bundle/icalendar.vim/.git/hooks/prepare-commit-msg.sample 1970-01-01 00:00:00 +0000 @@ -1,36 +0,0 @@ -#!/bin/sh -# -# An example hook script to prepare the commit log message. -# Called by "git commit" with the name of the file that has the -# commit message, followed by the description of the commit -# message's source. The hook's purpose is to edit the commit -# message file. If the hook fails with a non-zero status, -# the commit is aborted. -# -# To enable this hook, rename this file to "prepare-commit-msg". - -# This hook includes three examples. The first comments out the -# "Conflicts:" part of a merge commit. -# -# The second includes the output of "git diff --name-status -r" -# into the message, just before the "git status" output. It is -# commented because it doesn't cope with --amend or with squashed -# commits. -# -# The third example adds a Signed-off-by line to the message, that can -# still be edited. This is rarely a good idea. - -case "$2,$3" in - merge,) - /usr/bin/perl -i.bak -ne 's/^/# /, s/^# #/#/ if /^Conflicts/ .. /#/; print' "$1" ;; - -# ,|template,) -# /usr/bin/perl -i.bak -pe ' -# print "\n" . `git diff --cached --name-status -r` -# if /^#/ && $first++ == 0' "$1" ;; - - *) ;; -esac - -# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') -# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" === removed file 'vim/bundle/icalendar.vim/.git/hooks/update.sample' --- vim/bundle/icalendar.vim/.git/hooks/update.sample 2015-02-13 10:04:41 +0000 +++ vim/bundle/icalendar.vim/.git/hooks/update.sample 1970-01-01 00:00:00 +0000 @@ -1,128 +0,0 @@ -#!/bin/sh -# -# An example hook script to blocks unannotated tags from entering. -# Called by "git receive-pack" with arguments: refname sha1-old sha1-new -# -# To enable this hook, rename this file to "update". -# -# Config -# ------ -# hooks.allowunannotated -# This boolean sets whether unannotated tags will be allowed into the -# repository. By default they won't be. -# hooks.allowdeletetag -# This boolean sets whether deleting tags will be allowed in the -# repository. By default they won't be. -# hooks.allowmodifytag -# This boolean sets whether a tag may be modified after creation. By default -# it won't be. -# hooks.allowdeletebranch -# This boolean sets whether deleting branches will be allowed in the -# repository. By default they won't be. -# hooks.denycreatebranch -# This boolean sets whether remotely creating branches will be denied -# in the repository. By default this is allowed. -# - -# --- Command line -refname="$1" -oldrev="$2" -newrev="$3" - -# --- Safety check -if [ -z "$GIT_DIR" ]; then - echo "Don't run this script from the command line." >&2 - echo " (if you want, you could supply GIT_DIR then run" >&2 - echo " $0 )" >&2 - exit 1 -fi - -if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then - echo "usage: $0 " >&2 - exit 1 -fi - -# --- Config -allowunannotated=$(git config --bool hooks.allowunannotated) -allowdeletebranch=$(git config --bool hooks.allowdeletebranch) -denycreatebranch=$(git config --bool hooks.denycreatebranch) -allowdeletetag=$(git config --bool hooks.allowdeletetag) -allowmodifytag=$(git config --bool hooks.allowmodifytag) - -# check for no description -projectdesc=$(sed -e '1q' "$GIT_DIR/description") -case "$projectdesc" in -"Unnamed repository"* | "") - echo "*** Project description file hasn't been set" >&2 - exit 1 - ;; -esac - -# --- Check types -# if $newrev is 0000...0000, it's a commit to delete a ref. -zero="0000000000000000000000000000000000000000" -if [ "$newrev" = "$zero" ]; then - newrev_type=delete -else - newrev_type=$(git cat-file -t $newrev) -fi - -case "$refname","$newrev_type" in - refs/tags/*,commit) - # un-annotated tag - short_refname=${refname##refs/tags/} - if [ "$allowunannotated" != "true" ]; then - echo "*** The un-annotated tag, $short_refname, is not allowed in this repository" >&2 - echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2 - exit 1 - fi - ;; - refs/tags/*,delete) - # delete tag - if [ "$allowdeletetag" != "true" ]; then - echo "*** Deleting a tag is not allowed in this repository" >&2 - exit 1 - fi - ;; - refs/tags/*,tag) - # annotated tag - if [ "$allowmodifytag" != "true" ] && git rev-parse $refname > /dev/null 2>&1 - then - echo "*** Tag '$refname' already exists." >&2 - echo "*** Modifying a tag is not allowed in this repository." >&2 - exit 1 - fi - ;; - refs/heads/*,commit) - # branch - if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then - echo "*** Creating a branch is not allowed in this repository" >&2 - exit 1 - fi - ;; - refs/heads/*,delete) - # delete branch - if [ "$allowdeletebranch" != "true" ]; then - echo "*** Deleting a branch is not allowed in this repository" >&2 - exit 1 - fi - ;; - refs/remotes/*,commit) - # tracking branch - ;; - refs/remotes/*,delete) - # delete tracking branch - if [ "$allowdeletebranch" != "true" ]; then - echo "*** Deleting a tracking branch is not allowed in this repository" >&2 - exit 1 - fi - ;; - *) - # Anything else (is there anything else?) - echo "*** Update hook: unknown type of update to ref $refname of type $newrev_type" >&2 - exit 1 - ;; -esac - -# --- Finished -exit 0 === removed file 'vim/bundle/icalendar.vim/.git/index' Binary files vim/bundle/icalendar.vim/.git/index 2015-02-13 10:04:41 +0000 and vim/bundle/icalendar.vim/.git/index 1970-01-01 00:00:00 +0000 differ === removed directory 'vim/bundle/icalendar.vim/.git/info' === removed file 'vim/bundle/icalendar.vim/.git/info/exclude' --- vim/bundle/icalendar.vim/.git/info/exclude 2015-02-13 10:04:41 +0000 +++ vim/bundle/icalendar.vim/.git/info/exclude 1970-01-01 00:00:00 +0000 @@ -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] -# *~ === removed directory 'vim/bundle/icalendar.vim/.git/logs' === removed file 'vim/bundle/icalendar.vim/.git/logs/HEAD' --- vim/bundle/icalendar.vim/.git/logs/HEAD 2015-02-13 10:04:41 +0000 +++ vim/bundle/icalendar.vim/.git/logs/HEAD 1970-01-01 00:00:00 +0000 @@ -1,1 +0,0 @@ -0000000000000000000000000000000000000000 542fff45385b1b5ad9781b0ad4878ba3b7ee9d5f Jan Pobrislo 1423821862 +0100 clone: from https://github.com/vim-scripts/icalendar.vim.git === removed directory 'vim/bundle/icalendar.vim/.git/logs/refs' === removed directory 'vim/bundle/icalendar.vim/.git/logs/refs/heads' === removed file 'vim/bundle/icalendar.vim/.git/logs/refs/heads/master' --- vim/bundle/icalendar.vim/.git/logs/refs/heads/master 2015-02-13 10:04:41 +0000 +++ vim/bundle/icalendar.vim/.git/logs/refs/heads/master 1970-01-01 00:00:00 +0000 @@ -1,1 +0,0 @@ -0000000000000000000000000000000000000000 542fff45385b1b5ad9781b0ad4878ba3b7ee9d5f Jan Pobrislo 1423821862 +0100 clone: from https://github.com/vim-scripts/icalendar.vim.git === removed directory 'vim/bundle/icalendar.vim/.git/logs/refs/remotes' === removed directory 'vim/bundle/icalendar.vim/.git/logs/refs/remotes/origin' === removed file 'vim/bundle/icalendar.vim/.git/logs/refs/remotes/origin/HEAD' --- vim/bundle/icalendar.vim/.git/logs/refs/remotes/origin/HEAD 2015-02-13 10:04:41 +0000 +++ vim/bundle/icalendar.vim/.git/logs/refs/remotes/origin/HEAD 1970-01-01 00:00:00 +0000 @@ -1,1 +0,0 @@ -0000000000000000000000000000000000000000 542fff45385b1b5ad9781b0ad4878ba3b7ee9d5f Jan Pobrislo 1423821862 +0100 clone: from https://github.com/vim-scripts/icalendar.vim.git === removed directory 'vim/bundle/icalendar.vim/.git/objects' === removed directory 'vim/bundle/icalendar.vim/.git/objects/52' === removed file 'vim/bundle/icalendar.vim/.git/objects/52/6aeddd056b58bc1546aceea90fc4622732dafb' --- vim/bundle/icalendar.vim/.git/objects/52/6aeddd056b58bc1546aceea90fc4622732dafb 2015-02-13 10:04:41 +0000 +++ vim/bundle/icalendar.vim/.git/objects/52/6aeddd056b58bc1546aceea90fc4622732dafb 1970-01-01 00:00:00 +0000 @@ -1,2 +0,0 @@ -x=[ -!@vw35/Dq$hA_真3l&#Rl1F!PZkÐZ/6h9v/#R c>ʿL 6|e8f4WJ( Ք,,j \ No newline at end of file === removed directory 'vim/bundle/icalendar.vim/.git/objects/54' === removed file 'vim/bundle/icalendar.vim/.git/objects/54/2fff45385b1b5ad9781b0ad4878ba3b7ee9d5f' --- vim/bundle/icalendar.vim/.git/objects/54/2fff45385b1b5ad9781b0ad4878ba3b7ee9d5f 2015-02-13 10:04:41 +0000 +++ vim/bundle/icalendar.vim/.git/objects/54/2fff45385b1b5ad9781b0ad4878ba3b7ee9d5f 1970-01-01 00:00:00 +0000 @@ -1,8 +0,0 @@ -xMPj0 sBŲ];etPػ/Jcv;{A:BG: -yYReK+DQ (4Rns~1"G/-)4 -ƒnNur}D}7 -xe]Qw?\BqL8O[ -mv*5^qJʼ_ -̰ -ŵ0Q<>y>`TjǿInM:AZF -v/| {y \ No newline at end of file === removed directory 'vim/bundle/icalendar.vim/.git/objects/6e' === removed file 'vim/bundle/icalendar.vim/.git/objects/6e/25703143906c2b03f35c18d4481eda112c5d16' Binary files vim/bundle/icalendar.vim/.git/objects/6e/25703143906c2b03f35c18d4481eda112c5d16 2015-02-13 10:04:41 +0000 and vim/bundle/icalendar.vim/.git/objects/6e/25703143906c2b03f35c18d4481eda112c5d16 1970-01-01 00:00:00 +0000 differ === removed directory 'vim/bundle/icalendar.vim/.git/objects/7d' === removed file 'vim/bundle/icalendar.vim/.git/objects/7d/60651cfbe065d54a07f6d1cc8fd5c8b9984856' Binary files vim/bundle/icalendar.vim/.git/objects/7d/60651cfbe065d54a07f6d1cc8fd5c8b9984856 2015-02-13 10:04:41 +0000 and vim/bundle/icalendar.vim/.git/objects/7d/60651cfbe065d54a07f6d1cc8fd5c8b9984856 1970-01-01 00:00:00 +0000 differ === removed directory 'vim/bundle/icalendar.vim/.git/objects/85' === removed file 'vim/bundle/icalendar.vim/.git/objects/85/648871ba772543fe389b3a3a6395bf418e5865' Binary files vim/bundle/icalendar.vim/.git/objects/85/648871ba772543fe389b3a3a6395bf418e5865 2015-02-13 10:04:41 +0000 and vim/bundle/icalendar.vim/.git/objects/85/648871ba772543fe389b3a3a6395bf418e5865 1970-01-01 00:00:00 +0000 differ === removed directory 'vim/bundle/icalendar.vim/.git/objects/cc' === removed file 'vim/bundle/icalendar.vim/.git/objects/cc/afb6301112926f0582907d1341174200e0d88f' Binary files vim/bundle/icalendar.vim/.git/objects/cc/afb6301112926f0582907d1341174200e0d88f 2015-02-13 10:04:41 +0000 and vim/bundle/icalendar.vim/.git/objects/cc/afb6301112926f0582907d1341174200e0d88f 1970-01-01 00:00:00 +0000 differ === removed directory 'vim/bundle/icalendar.vim/.git/objects/info' === removed directory 'vim/bundle/icalendar.vim/.git/objects/pack' === removed file 'vim/bundle/icalendar.vim/.git/packed-refs' --- vim/bundle/icalendar.vim/.git/packed-refs 2015-02-13 10:04:41 +0000 +++ vim/bundle/icalendar.vim/.git/packed-refs 1970-01-01 00:00:00 +0000 @@ -1,2 +0,0 @@ -# pack-refs with: peeled fully-peeled -542fff45385b1b5ad9781b0ad4878ba3b7ee9d5f refs/remotes/origin/master === removed directory 'vim/bundle/icalendar.vim/.git/refs' === removed directory 'vim/bundle/icalendar.vim/.git/refs/heads' === removed file 'vim/bundle/icalendar.vim/.git/refs/heads/master' --- vim/bundle/icalendar.vim/.git/refs/heads/master 2015-02-13 10:04:41 +0000 +++ vim/bundle/icalendar.vim/.git/refs/heads/master 1970-01-01 00:00:00 +0000 @@ -1,1 +0,0 @@ -542fff45385b1b5ad9781b0ad4878ba3b7ee9d5f === removed directory 'vim/bundle/icalendar.vim/.git/refs/remotes' === removed directory 'vim/bundle/icalendar.vim/.git/refs/remotes/origin' === removed file 'vim/bundle/icalendar.vim/.git/refs/remotes/origin/HEAD' --- vim/bundle/icalendar.vim/.git/refs/remotes/origin/HEAD 2015-02-13 10:04:41 +0000 +++ vim/bundle/icalendar.vim/.git/refs/remotes/origin/HEAD 1970-01-01 00:00:00 +0000 @@ -1,1 +0,0 @@ -ref: refs/remotes/origin/master === removed file 'vim/bundle/icalendar.vim/.git/shallow' --- vim/bundle/icalendar.vim/.git/shallow 2015-02-13 10:04:41 +0000 +++ vim/bundle/icalendar.vim/.git/shallow 1970-01-01 00:00:00 +0000 @@ -1,1 +0,0 @@ -542fff45385b1b5ad9781b0ad4878ba3b7ee9d5f === removed file 'vim/bundle/icalendar.vim/README' --- vim/bundle/icalendar.vim/README 2015-02-13 10:04:41 +0000 +++ vim/bundle/icalendar.vim/README 1970-01-01 00:00:00 +0000 @@ -1,3 +0,0 @@ -This is a mirror of http://www.vim.org/scripts/script.php?script_id=1519 - -This is a very rudimentary syntax file for icalendar files (.ics), used by Apple's iCal, Mozilla's Sunbird, Google Calendar, and other software. A screenshot of the syntax highlighting using the "koehler" colorscheme is available here: http://severinghaus.org/projects/icalendar_syntax.png === removed directory 'vim/bundle/icalendar.vim/syntax' === removed file 'vim/bundle/icalendar.vim/syntax/icalendar.vim' --- vim/bundle/icalendar.vim/syntax/icalendar.vim 2015-02-13 10:04:41 +0000 +++ vim/bundle/icalendar.vim/syntax/icalendar.vim 1970-01-01 00:00:00 +0000 @@ -1,53 +0,0 @@ -" Vim syntax file -" Language: icalendar -" Maintainer: Steven N. Severinghaus -" Last Modified: 2006-04-17 -" Version: 0.3 - -" Quit if syntax file is already loaded -if version < 600 - syntax clear -elseif exists("b:current_syntax") - finish -endif - -command! -nargs=+ IcalHiLink hi def link - -syntax case ignore -setlocal iskeyword+=- - -syn match icalObject "^\(BEGIN\|END\)" -syn match icalObjectType ":\(VCALENDAR\|VEVENT\|VTODO\|VJOURNAL\|VFREEBUSY\|VTIMEZONE\|VALARM\)$" -syn match icalObjectType ":\(DAYLIGHT\|STANDARD\)$" -syn match icalProperty "^\(DTSTART\|PRODID\|VERSION\|CALSCALE\|METHOD\)" -syn match icalProperty "^\(DTEND\|DTSTAMP\|ORGANIZER\|UID\|CLASS\|CREATED\)" -syn match icalProperty "^\(LOCATION\|SEQUENCE\|STATUS\|SUMMARY\|COMMENT\)" -syn match icalProperty "^\(TRANSP\|ATTENDEE\|ATTACH\|FREEBUSY\|METHOD\|CONTACT\)" -syn match icalProperty "^\(DURATION\|RRULE\|EXDATE\|EXRULE\|URL\|DESCRIPTION\|ACTION\)" -syn match icalProperty "^\(LAST-MODIFIED\|RECURRENCE-ID\|TRIGGER\|RELATED-TO\|RDATE\)" -syn match icalProperty "^\(TZID\|TZOFFSETFROM\|TZOFFSETTO\|TZNAME\|TZURL\)" -syn match icalProperty "^\(PRIORITY\|DUE\|COMPLETED\|PERCENT-COMPLETE\|CATEGORIES\)" -syn match icalProperty "^\(RESOURCES\|REPEAT\|REQUEST-STATUS\)" -syn match icalCustom /^X-[A-Z-]\+/ -syn match icalDate "[0-9].......T[0-9].....Z\=" -syn match icalParameter "[A-Z0-9-]\+=[^;:]\+" -syn keyword icalSetValue CONFIRMED TENTATIVE CANCELLED DELEGATED OPAQUE -syn keyword icalSetValue NEEDS-ACTION ACCEPTED DECLINED IN-PROGRESS -syn keyword icalSetValue PRIVATE PUBLIC PUBLISH GREGORIAN DISPLAY -syn match icalSetValue /:COMPLETED$/ - -" Types: PreProc Keyword Type String Comment Special -IcalHiLink icalProperty PreProc -IcalHiLink icalObject Label -IcalHiLink icalObjectType Type -IcalHiLink icalDate String -IcalHiLink icalParameter Comment -IcalHiLink icalSetValue Special -IcalHiLink icalCustom Error - -delcommand IcalHiLink - -let b:current_syntax = "icalendar" - -"EOF vim: tw=78:ft=vim:ts=8 - === modified file 'vim/bundle/tabular/.git/index' Binary files vim/bundle/tabular/.git/index 2015-02-13 10:04:41 +0000 and vim/bundle/tabular/.git/index 2015-02-13 09:59:55 +0000 differ === modified file 'vim/bundle/tabular/.git/logs/HEAD' --- vim/bundle/tabular/.git/logs/HEAD 2015-02-13 10:04:41 +0000 +++ vim/bundle/tabular/.git/logs/HEAD 2015-02-13 09:59:55 +0000 @@ -1,1 +1,1 @@ -0000000000000000000000000000000000000000 60f25648814f0695eeb6c1040d97adca93c4e0bb Jan Pobrislo 1423821865 +0100 clone: from https://github.com/godlygeek/tabular.git +0000000000000000000000000000000000000000 60f25648814f0695eeb6c1040d97adca93c4e0bb Jan Pobrislo 1423821568 +0100 clone: from https://github.com/godlygeek/tabular.git === modified file 'vim/bundle/tabular/.git/logs/refs/heads/master' --- vim/bundle/tabular/.git/logs/refs/heads/master 2015-02-13 10:04:41 +0000 +++ vim/bundle/tabular/.git/logs/refs/heads/master 2015-02-13 09:59:55 +0000 @@ -1,1 +1,1 @@ -0000000000000000000000000000000000000000 60f25648814f0695eeb6c1040d97adca93c4e0bb Jan Pobrislo 1423821865 +0100 clone: from https://github.com/godlygeek/tabular.git +0000000000000000000000000000000000000000 60f25648814f0695eeb6c1040d97adca93c4e0bb Jan Pobrislo 1423821568 +0100 clone: from https://github.com/godlygeek/tabular.git === modified file 'vim/bundle/tabular/.git/logs/refs/remotes/origin/HEAD' --- vim/bundle/tabular/.git/logs/refs/remotes/origin/HEAD 2015-02-13 10:04:41 +0000 +++ vim/bundle/tabular/.git/logs/refs/remotes/origin/HEAD 2015-02-13 09:59:55 +0000 @@ -1,1 +1,1 @@ -0000000000000000000000000000000000000000 60f25648814f0695eeb6c1040d97adca93c4e0bb Jan Pobrislo 1423821865 +0100 clone: from https://github.com/godlygeek/tabular.git +0000000000000000000000000000000000000000 60f25648814f0695eeb6c1040d97adca93c4e0bb Jan Pobrislo 1423821568 +0100 clone: from https://github.com/godlygeek/tabular.git === modified file 'vim/bundle/vim-KWEasy/.git/index' Binary files vim/bundle/vim-KWEasy/.git/index 2015-02-13 10:04:41 +0000 and vim/bundle/vim-KWEasy/.git/index 2015-02-13 09:59:55 +0000 differ === modified file 'vim/bundle/vim-KWEasy/.git/logs/HEAD' --- vim/bundle/vim-KWEasy/.git/logs/HEAD 2015-02-13 10:04:41 +0000 +++ vim/bundle/vim-KWEasy/.git/logs/HEAD 2015-02-13 09:59:55 +0000 @@ -1,1 +1,1 @@ -0000000000000000000000000000000000000000 3db7e1b38438cdbaeb8080b8f59175228a96748c Jan Pobrislo 1423821867 +0100 clone: from https://github.com/dahu/vim-KWEasy +0000000000000000000000000000000000000000 3db7e1b38438cdbaeb8080b8f59175228a96748c Jan Pobrislo 1423821571 +0100 clone: from https://github.com/dahu/vim-KWEasy === modified file 'vim/bundle/vim-KWEasy/.git/logs/refs/heads/master' --- vim/bundle/vim-KWEasy/.git/logs/refs/heads/master 2015-02-13 10:04:41 +0000 +++ vim/bundle/vim-KWEasy/.git/logs/refs/heads/master 2015-02-13 09:59:55 +0000 @@ -1,1 +1,1 @@ -0000000000000000000000000000000000000000 3db7e1b38438cdbaeb8080b8f59175228a96748c Jan Pobrislo 1423821867 +0100 clone: from https://github.com/dahu/vim-KWEasy +0000000000000000000000000000000000000000 3db7e1b38438cdbaeb8080b8f59175228a96748c Jan Pobrislo 1423821571 +0100 clone: from https://github.com/dahu/vim-KWEasy === modified file 'vim/bundle/vim-KWEasy/.git/logs/refs/remotes/origin/HEAD' --- vim/bundle/vim-KWEasy/.git/logs/refs/remotes/origin/HEAD 2015-02-13 10:04:41 +0000 +++ vim/bundle/vim-KWEasy/.git/logs/refs/remotes/origin/HEAD 2015-02-13 09:59:55 +0000 @@ -1,1 +1,1 @@ -0000000000000000000000000000000000000000 3db7e1b38438cdbaeb8080b8f59175228a96748c Jan Pobrislo 1423821867 +0100 clone: from https://github.com/dahu/vim-KWEasy +0000000000000000000000000000000000000000 3db7e1b38438cdbaeb8080b8f59175228a96748c Jan Pobrislo 1423821571 +0100 clone: from https://github.com/dahu/vim-KWEasy === modified file 'vim/bundle/vim-eunuch/.git/index' Binary files vim/bundle/vim-eunuch/.git/index 2015-02-13 10:04:41 +0000 and vim/bundle/vim-eunuch/.git/index 2015-02-13 09:59:55 +0000 differ === modified file 'vim/bundle/vim-eunuch/.git/logs/HEAD' --- vim/bundle/vim-eunuch/.git/logs/HEAD 2015-02-13 10:04:41 +0000 +++ vim/bundle/vim-eunuch/.git/logs/HEAD 2015-02-13 09:59:55 +0000 @@ -1,1 +1,1 @@ -0000000000000000000000000000000000000000 8c996336ceecbfb7290c7c9b409195f190866548 Jan Pobrislo 1423821866 +0100 clone: from git://github.com/tpope/vim-eunuch.git +0000000000000000000000000000000000000000 8c996336ceecbfb7290c7c9b409195f190866548 Jan Pobrislo 1423821570 +0100 clone: from git://github.com/tpope/vim-eunuch.git === modified file 'vim/bundle/vim-eunuch/.git/logs/refs/heads/master' --- vim/bundle/vim-eunuch/.git/logs/refs/heads/master 2015-02-13 10:04:41 +0000 +++ vim/bundle/vim-eunuch/.git/logs/refs/heads/master 2015-02-13 09:59:55 +0000 @@ -1,1 +1,1 @@ -0000000000000000000000000000000000000000 8c996336ceecbfb7290c7c9b409195f190866548 Jan Pobrislo 1423821866 +0100 clone: from git://github.com/tpope/vim-eunuch.git +0000000000000000000000000000000000000000 8c996336ceecbfb7290c7c9b409195f190866548 Jan Pobrislo 1423821570 +0100 clone: from git://github.com/tpope/vim-eunuch.git === modified file 'vim/bundle/vim-eunuch/.git/logs/refs/remotes/origin/HEAD' --- vim/bundle/vim-eunuch/.git/logs/refs/remotes/origin/HEAD 2015-02-13 10:04:41 +0000 +++ vim/bundle/vim-eunuch/.git/logs/refs/remotes/origin/HEAD 2015-02-13 09:59:55 +0000 @@ -1,1 +1,1 @@ -0000000000000000000000000000000000000000 8c996336ceecbfb7290c7c9b409195f190866548 Jan Pobrislo 1423821866 +0100 clone: from git://github.com/tpope/vim-eunuch.git +0000000000000000000000000000000000000000 8c996336ceecbfb7290c7c9b409195f190866548 Jan Pobrislo 1423821570 +0100 clone: from git://github.com/tpope/vim-eunuch.git === added directory 'vim/bundle/vim-template' === added directory 'vim/bundle/vim-template/.git' === added file 'vim/bundle/vim-template/.git/HEAD' --- vim/bundle/vim-template/.git/HEAD 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/.git/HEAD 2015-02-13 09:59:55 +0000 @@ -0,0 +1,1 @@ +ref: refs/heads/master === added file 'vim/bundle/vim-template/.git/config' --- vim/bundle/vim-template/.git/config 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/.git/config 2015-02-13 09:59:55 +0000 @@ -0,0 +1,11 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = false + logallrefupdates = true +[remote "origin"] + url = https://github.com/aperezdc/vim-template + fetch = +refs/heads/master:refs/remotes/origin/master +[branch "master"] + remote = origin + merge = refs/heads/master === added file 'vim/bundle/vim-template/.git/description' --- vim/bundle/vim-template/.git/description 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/.git/description 2015-02-13 09:59:55 +0000 @@ -0,0 +1,1 @@ +Unnamed repository; edit this file 'description' to name the repository. === added directory 'vim/bundle/vim-template/.git/hooks' === added file 'vim/bundle/vim-template/.git/hooks/applypatch-msg.sample' --- vim/bundle/vim-template/.git/hooks/applypatch-msg.sample 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/.git/hooks/applypatch-msg.sample 2015-02-13 09:59:55 +0000 @@ -0,0 +1,15 @@ +#!/bin/sh +# +# An example hook script to check the commit log message taken by +# applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. The hook is +# allowed to edit the commit message file. +# +# To enable this hook, rename this file to "applypatch-msg". + +. git-sh-setup +test -x "$GIT_DIR/hooks/commit-msg" && + exec "$GIT_DIR/hooks/commit-msg" ${1+"$@"} +: === added file 'vim/bundle/vim-template/.git/hooks/commit-msg.sample' --- vim/bundle/vim-template/.git/hooks/commit-msg.sample 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/.git/hooks/commit-msg.sample 2015-02-13 09:59:55 +0000 @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to check the commit log message. +# Called by "git commit" with one argument, the name of the file +# that has the commit message. The hook should exit with non-zero +# status after issuing an appropriate message if it wants to stop the +# commit. The hook is allowed to edit the commit message file. +# +# To enable this hook, rename this file to "commit-msg". + +# Uncomment the below to add a Signed-off-by line to the message. +# Doing this in a hook is a bad idea in general, but the prepare-commit-msg +# hook is more suited to it. +# +# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" + +# This example catches duplicate Signed-off-by lines. + +test "" = "$(grep '^Signed-off-by: ' "$1" | + sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { + echo >&2 Duplicate Signed-off-by lines. + exit 1 +} === added file 'vim/bundle/vim-template/.git/hooks/post-update.sample' --- vim/bundle/vim-template/.git/hooks/post-update.sample 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/.git/hooks/post-update.sample 2015-02-13 09:59:55 +0000 @@ -0,0 +1,8 @@ +#!/bin/sh +# +# An example hook script to prepare a packed repository for use over +# dumb transports. +# +# To enable this hook, rename this file to "post-update". + +exec git update-server-info === added file 'vim/bundle/vim-template/.git/hooks/pre-applypatch.sample' --- vim/bundle/vim-template/.git/hooks/pre-applypatch.sample 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/.git/hooks/pre-applypatch.sample 2015-02-13 09:59:55 +0000 @@ -0,0 +1,14 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed +# by applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-applypatch". + +. git-sh-setup +test -x "$GIT_DIR/hooks/pre-commit" && + exec "$GIT_DIR/hooks/pre-commit" ${1+"$@"} +: === added file 'vim/bundle/vim-template/.git/hooks/pre-commit.sample' --- vim/bundle/vim-template/.git/hooks/pre-commit.sample 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/.git/hooks/pre-commit.sample 2015-02-13 09:59:55 +0000 @@ -0,0 +1,49 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git commit" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message if +# it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-commit". + +if git rev-parse --verify HEAD >/dev/null 2>&1 +then + against=HEAD +else + # Initial commit: diff against an empty tree object + against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 +fi + +# If you want to allow non-ASCII filenames set this variable to true. +allownonascii=$(git config --bool hooks.allownonascii) + +# Redirect output to stderr. +exec 1>&2 + +# Cross platform projects tend to avoid non-ASCII filenames; prevent +# them from being added to the repository. We exploit the fact that the +# printable range starts at the space character and ends with tilde. +if [ "$allownonascii" != "true" ] && + # Note that the use of brackets around a tr range is ok here, (it's + # even required, for portability to Solaris 10's /usr/bin/tr), since + # the square bracket bytes happen to fall in the designated range. + test $(git diff --cached --name-only --diff-filter=A -z $against | + LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0 +then + cat <<\EOF +Error: Attempt to add a non-ASCII file name. + +This can cause problems if you want to work with people on other platforms. + +To be portable it is advisable to rename the file. + +If you know what you are doing you can disable this check using: + + git config hooks.allownonascii true +EOF + exit 1 +fi + +# If there are whitespace errors, print the offending file names and fail. +exec git diff-index --check --cached $against -- === added file 'vim/bundle/vim-template/.git/hooks/pre-push.sample' --- vim/bundle/vim-template/.git/hooks/pre-push.sample 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/.git/hooks/pre-push.sample 2015-02-13 09:59:55 +0000 @@ -0,0 +1,54 @@ +#!/bin/sh + +# An example hook script to verify what is about to be pushed. Called by "git +# push" after it has checked the remote status, but before anything has been +# pushed. If this script exits with a non-zero status nothing will be pushed. +# +# This hook is called with the following parameters: +# +# $1 -- Name of the remote to which the push is being done +# $2 -- URL to which the push is being done +# +# If pushing without using a named remote those arguments will be equal. +# +# Information about the commits which are being pushed is supplied as lines to +# the standard input in the form: +# +# +# +# This sample shows how to prevent push of commits where the log message starts +# with "WIP" (work in progress). + +remote="$1" +url="$2" + +z40=0000000000000000000000000000000000000000 + +IFS=' ' +while read local_ref local_sha remote_ref remote_sha +do + if [ "$local_sha" = $z40 ] + then + # Handle delete + : + else + if [ "$remote_sha" = $z40 ] + then + # New branch, examine all commits + range="$local_sha" + else + # Update to existing branch, examine new commits + range="$remote_sha..$local_sha" + fi + + # Check for WIP commit + commit=`git rev-list -n 1 --grep '^WIP' "$range"` + if [ -n "$commit" ] + then + echo >&2 "Found WIP commit in $local_ref, not pushing" + exit 1 + fi + fi +done + +exit 0 === added file 'vim/bundle/vim-template/.git/hooks/pre-rebase.sample' --- vim/bundle/vim-template/.git/hooks/pre-rebase.sample 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/.git/hooks/pre-rebase.sample 2015-02-13 09:59:55 +0000 @@ -0,0 +1,169 @@ +#!/bin/sh +# +# Copyright (c) 2006, 2008 Junio C Hamano +# +# The "pre-rebase" hook is run just before "git rebase" starts doing +# its job, and can prevent the command from running by exiting with +# non-zero status. +# +# The hook is called with the following parameters: +# +# $1 -- the upstream the series was forked from. +# $2 -- the branch being rebased (or empty when rebasing the current branch). +# +# This sample shows how to prevent topic branches that are already +# merged to 'next' branch from getting rebased, because allowing it +# would result in rebasing already published history. + +publish=next +basebranch="$1" +if test "$#" = 2 +then + topic="refs/heads/$2" +else + topic=`git symbolic-ref HEAD` || + exit 0 ;# we do not interrupt rebasing detached HEAD +fi + +case "$topic" in +refs/heads/??/*) + ;; +*) + exit 0 ;# we do not interrupt others. + ;; +esac + +# Now we are dealing with a topic branch being rebased +# on top of master. Is it OK to rebase it? + +# Does the topic really exist? +git show-ref -q "$topic" || { + echo >&2 "No such branch $topic" + exit 1 +} + +# Is topic fully merged to master? +not_in_master=`git rev-list --pretty=oneline ^master "$topic"` +if test -z "$not_in_master" +then + echo >&2 "$topic is fully merged to master; better remove it." + exit 1 ;# we could allow it, but there is no point. +fi + +# Is topic ever merged to next? If so you should not be rebasing it. +only_next_1=`git rev-list ^master "^$topic" ${publish} | sort` +only_next_2=`git rev-list ^master ${publish} | sort` +if test "$only_next_1" = "$only_next_2" +then + not_in_topic=`git rev-list "^$topic" master` + if test -z "$not_in_topic" + then + echo >&2 "$topic is already up-to-date with master" + exit 1 ;# we could allow it, but there is no point. + else + exit 0 + fi +else + not_in_next=`git rev-list --pretty=oneline ^${publish} "$topic"` + /usr/bin/perl -e ' + my $topic = $ARGV[0]; + my $msg = "* $topic has commits already merged to public branch:\n"; + my (%not_in_next) = map { + /^([0-9a-f]+) /; + ($1 => 1); + } split(/\n/, $ARGV[1]); + for my $elem (map { + /^([0-9a-f]+) (.*)$/; + [$1 => $2]; + } split(/\n/, $ARGV[2])) { + if (!exists $not_in_next{$elem->[0]}) { + if ($msg) { + print STDERR $msg; + undef $msg; + } + print STDERR " $elem->[1]\n"; + } + } + ' "$topic" "$not_in_next" "$not_in_master" + exit 1 +fi + +exit 0 + +################################################################ + +This sample hook safeguards topic branches that have been +published from being rewound. + +The workflow assumed here is: + + * Once a topic branch forks from "master", "master" is never + merged into it again (either directly or indirectly). + + * Once a topic branch is fully cooked and merged into "master", + it is deleted. If you need to build on top of it to correct + earlier mistakes, a new topic branch is created by forking at + the tip of the "master". This is not strictly necessary, but + it makes it easier to keep your history simple. + + * Whenever you need to test or publish your changes to topic + branches, merge them into "next" branch. + +The script, being an example, hardcodes the publish branch name +to be "next", but it is trivial to make it configurable via +$GIT_DIR/config mechanism. + +With this workflow, you would want to know: + +(1) ... if a topic branch has ever been merged to "next". Young + topic branches can have stupid mistakes you would rather + clean up before publishing, and things that have not been + merged into other branches can be easily rebased without + affecting other people. But once it is published, you would + not want to rewind it. + +(2) ... if a topic branch has been fully merged to "master". + Then you can delete it. More importantly, you should not + build on top of it -- other people may already want to + change things related to the topic as patches against your + "master", so if you need further changes, it is better to + fork the topic (perhaps with the same name) afresh from the + tip of "master". + +Let's look at this example: + + o---o---o---o---o---o---o---o---o---o "next" + / / / / + / a---a---b A / / + / / / / + / / c---c---c---c B / + / / / \ / + / / / b---b C \ / + / / / / \ / + ---o---o---o---o---o---o---o---o---o---o---o "master" + + +A, B and C are topic branches. + + * A has one fix since it was merged up to "next". + + * B has finished. It has been fully merged up to "master" and "next", + and is ready to be deleted. + + * C has not merged to "next" at all. + +We would want to allow C to be rebased, refuse A, and encourage +B to be deleted. + +To compute (1): + + git rev-list ^master ^topic next + git rev-list ^master next + + if these match, topic has not merged in next at all. + +To compute (2): + + git rev-list master..topic + + if this is empty, it is fully merged to "master". === added file 'vim/bundle/vim-template/.git/hooks/prepare-commit-msg.sample' --- vim/bundle/vim-template/.git/hooks/prepare-commit-msg.sample 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/.git/hooks/prepare-commit-msg.sample 2015-02-13 09:59:55 +0000 @@ -0,0 +1,36 @@ +#!/bin/sh +# +# An example hook script to prepare the commit log message. +# Called by "git commit" with the name of the file that has the +# commit message, followed by the description of the commit +# message's source. The hook's purpose is to edit the commit +# message file. If the hook fails with a non-zero status, +# the commit is aborted. +# +# To enable this hook, rename this file to "prepare-commit-msg". + +# This hook includes three examples. The first comments out the +# "Conflicts:" part of a merge commit. +# +# The second includes the output of "git diff --name-status -r" +# into the message, just before the "git status" output. It is +# commented because it doesn't cope with --amend or with squashed +# commits. +# +# The third example adds a Signed-off-by line to the message, that can +# still be edited. This is rarely a good idea. + +case "$2,$3" in + merge,) + /usr/bin/perl -i.bak -ne 's/^/# /, s/^# #/#/ if /^Conflicts/ .. /#/; print' "$1" ;; + +# ,|template,) +# /usr/bin/perl -i.bak -pe ' +# print "\n" . `git diff --cached --name-status -r` +# if /^#/ && $first++ == 0' "$1" ;; + + *) ;; +esac + +# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" === added file 'vim/bundle/vim-template/.git/hooks/update.sample' --- vim/bundle/vim-template/.git/hooks/update.sample 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/.git/hooks/update.sample 2015-02-13 09:59:55 +0000 @@ -0,0 +1,128 @@ +#!/bin/sh +# +# An example hook script to blocks unannotated tags from entering. +# Called by "git receive-pack" with arguments: refname sha1-old sha1-new +# +# To enable this hook, rename this file to "update". +# +# Config +# ------ +# hooks.allowunannotated +# This boolean sets whether unannotated tags will be allowed into the +# repository. By default they won't be. +# hooks.allowdeletetag +# This boolean sets whether deleting tags will be allowed in the +# repository. By default they won't be. +# hooks.allowmodifytag +# This boolean sets whether a tag may be modified after creation. By default +# it won't be. +# hooks.allowdeletebranch +# This boolean sets whether deleting branches will be allowed in the +# repository. By default they won't be. +# hooks.denycreatebranch +# This boolean sets whether remotely creating branches will be denied +# in the repository. By default this is allowed. +# + +# --- Command line +refname="$1" +oldrev="$2" +newrev="$3" + +# --- Safety check +if [ -z "$GIT_DIR" ]; then + echo "Don't run this script from the command line." >&2 + echo " (if you want, you could supply GIT_DIR then run" >&2 + echo " $0 )" >&2 + exit 1 +fi + +if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then + echo "usage: $0 " >&2 + exit 1 +fi + +# --- Config +allowunannotated=$(git config --bool hooks.allowunannotated) +allowdeletebranch=$(git config --bool hooks.allowdeletebranch) +denycreatebranch=$(git config --bool hooks.denycreatebranch) +allowdeletetag=$(git config --bool hooks.allowdeletetag) +allowmodifytag=$(git config --bool hooks.allowmodifytag) + +# check for no description +projectdesc=$(sed -e '1q' "$GIT_DIR/description") +case "$projectdesc" in +"Unnamed repository"* | "") + echo "*** Project description file hasn't been set" >&2 + exit 1 + ;; +esac + +# --- Check types +# if $newrev is 0000...0000, it's a commit to delete a ref. +zero="0000000000000000000000000000000000000000" +if [ "$newrev" = "$zero" ]; then + newrev_type=delete +else + newrev_type=$(git cat-file -t $newrev) +fi + +case "$refname","$newrev_type" in + refs/tags/*,commit) + # un-annotated tag + short_refname=${refname##refs/tags/} + if [ "$allowunannotated" != "true" ]; then + echo "*** The un-annotated tag, $short_refname, is not allowed in this repository" >&2 + echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2 + exit 1 + fi + ;; + refs/tags/*,delete) + # delete tag + if [ "$allowdeletetag" != "true" ]; then + echo "*** Deleting a tag is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/tags/*,tag) + # annotated tag + if [ "$allowmodifytag" != "true" ] && git rev-parse $refname > /dev/null 2>&1 + then + echo "*** Tag '$refname' already exists." >&2 + echo "*** Modifying a tag is not allowed in this repository." >&2 + exit 1 + fi + ;; + refs/heads/*,commit) + # branch + if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then + echo "*** Creating a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/heads/*,delete) + # delete branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/remotes/*,commit) + # tracking branch + ;; + refs/remotes/*,delete) + # delete tracking branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a tracking branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + *) + # Anything else (is there anything else?) + echo "*** Update hook: unknown type of update to ref $refname of type $newrev_type" >&2 + exit 1 + ;; +esac + +# --- Finished +exit 0 === added file 'vim/bundle/vim-template/.git/index' Binary files vim/bundle/vim-template/.git/index 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/index 2015-02-13 09:59:55 +0000 differ === added directory 'vim/bundle/vim-template/.git/info' === added file 'vim/bundle/vim-template/.git/info/exclude' --- vim/bundle/vim-template/.git/info/exclude 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/.git/info/exclude 2015-02-13 09:59:55 +0000 @@ -0,0 +1,6 @@ +# 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] +# *~ === added directory 'vim/bundle/vim-template/.git/logs' === added file 'vim/bundle/vim-template/.git/logs/HEAD' --- vim/bundle/vim-template/.git/logs/HEAD 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/.git/logs/HEAD 2015-02-13 09:59:55 +0000 @@ -0,0 +1,1 @@ +0000000000000000000000000000000000000000 1a366e908f9a622165cd0fbb80a4821068736661 Jan Pobrislo 1423821572 +0100 clone: from https://github.com/aperezdc/vim-template === added directory 'vim/bundle/vim-template/.git/logs/refs' === added directory 'vim/bundle/vim-template/.git/logs/refs/heads' === added file 'vim/bundle/vim-template/.git/logs/refs/heads/master' --- vim/bundle/vim-template/.git/logs/refs/heads/master 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/.git/logs/refs/heads/master 2015-02-13 09:59:55 +0000 @@ -0,0 +1,1 @@ +0000000000000000000000000000000000000000 1a366e908f9a622165cd0fbb80a4821068736661 Jan Pobrislo 1423821572 +0100 clone: from https://github.com/aperezdc/vim-template === added directory 'vim/bundle/vim-template/.git/logs/refs/remotes' === added directory 'vim/bundle/vim-template/.git/logs/refs/remotes/origin' === added file 'vim/bundle/vim-template/.git/logs/refs/remotes/origin/HEAD' --- vim/bundle/vim-template/.git/logs/refs/remotes/origin/HEAD 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/.git/logs/refs/remotes/origin/HEAD 2015-02-13 09:59:55 +0000 @@ -0,0 +1,1 @@ +0000000000000000000000000000000000000000 1a366e908f9a622165cd0fbb80a4821068736661 Jan Pobrislo 1423821572 +0100 clone: from https://github.com/aperezdc/vim-template === added directory 'vim/bundle/vim-template/.git/objects' === added directory 'vim/bundle/vim-template/.git/objects/0e' === added file 'vim/bundle/vim-template/.git/objects/0e/2bc211b46ac0fcf03dbc22a1aa4118585ae9ca' Binary files vim/bundle/vim-template/.git/objects/0e/2bc211b46ac0fcf03dbc22a1aa4118585ae9ca 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/0e/2bc211b46ac0fcf03dbc22a1aa4118585ae9ca 2015-02-13 09:59:55 +0000 differ === added directory 'vim/bundle/vim-template/.git/objects/10' === added file 'vim/bundle/vim-template/.git/objects/10/664644fe8f8f6662d7313949f1172f4644abcf' --- vim/bundle/vim-template/.git/objects/10/664644fe8f8f6662d7313949f1172f4644abcf 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/.git/objects/10/664644fe8f8f6662d7313949f1172f4644abcf 2015-02-13 09:59:55 +0000 @@ -0,0 +1,1 @@ +x-M @E[+năZ-#iZ(-Z6ʁi)2B%]~`=IiYu9 &@VLӹ5Qഊ{D۳C`jYK+Fwl=o.h)1 \ No newline at end of file === added directory 'vim/bundle/vim-template/.git/objects/1a' === added file 'vim/bundle/vim-template/.git/objects/1a/366e908f9a622165cd0fbb80a4821068736661' --- vim/bundle/vim-template/.git/objects/1a/366e908f9a622165cd0fbb80a4821068736661 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/.git/objects/1a/366e908f9a622165cd0fbb80a4821068736661 2015-02-13 09:59:55 +0000 @@ -0,0 +1,1 @@ +xe=k0E;W%Sї-;(tϒԖׁХpR&A)kttcjcHh)Q!*%$m/l، jnd]rIawDN*4TVXj10@DlC1$v»+OcA#Tei(Ioڍ guru `R*_ {F 0J4ә`u 4cIJN}4AvV3GKe#E VN6@Ud4EYpT ;zK>? \ No newline at end of file === added directory 'vim/bundle/vim-template/.git/objects/2c' === added file 'vim/bundle/vim-template/.git/objects/2c/70df68b5531c93c7dab4c0bc6ad53a4aa6e4c3' Binary files vim/bundle/vim-template/.git/objects/2c/70df68b5531c93c7dab4c0bc6ad53a4aa6e4c3 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/2c/70df68b5531c93c7dab4c0bc6ad53a4aa6e4c3 2015-02-13 09:59:55 +0000 differ === added directory 'vim/bundle/vim-template/.git/objects/31' === added file 'vim/bundle/vim-template/.git/objects/31/017bc04e2fee6d18aaa3dedbbc36335924107d' Binary files vim/bundle/vim-template/.git/objects/31/017bc04e2fee6d18aaa3dedbbc36335924107d 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/31/017bc04e2fee6d18aaa3dedbbc36335924107d 2015-02-13 09:59:55 +0000 differ === added file 'vim/bundle/vim-template/.git/objects/31/0979cfcfe551a8526e7cb46731408c7cd8ead6' Binary files vim/bundle/vim-template/.git/objects/31/0979cfcfe551a8526e7cb46731408c7cd8ead6 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/31/0979cfcfe551a8526e7cb46731408c7cd8ead6 2015-02-13 09:59:55 +0000 differ === added file 'vim/bundle/vim-template/.git/objects/31/e767c74b8895f5fa56cf2caaa69a1ae9e037f5' Binary files vim/bundle/vim-template/.git/objects/31/e767c74b8895f5fa56cf2caaa69a1ae9e037f5 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/31/e767c74b8895f5fa56cf2caaa69a1ae9e037f5 2015-02-13 09:59:55 +0000 differ === added directory 'vim/bundle/vim-template/.git/objects/34' === added file 'vim/bundle/vim-template/.git/objects/34/6e123dbc1b3d0660c8cdc0f7ffcbccc8550c14' Binary files vim/bundle/vim-template/.git/objects/34/6e123dbc1b3d0660c8cdc0f7ffcbccc8550c14 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/34/6e123dbc1b3d0660c8cdc0f7ffcbccc8550c14 2015-02-13 09:59:55 +0000 differ === added directory 'vim/bundle/vim-template/.git/objects/51' === added file 'vim/bundle/vim-template/.git/objects/51/05f22cb10904b785ced5a7ce405df89f650d34' --- vim/bundle/vim-template/.git/objects/51/05f22cb10904b785ced5a7ce405df89f650d34 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/.git/objects/51/05f22cb10904b785ced5a7ce405df89f650d34 2015-02-13 09:59:55 +0000 @@ -0,0 +1,2 @@ +x51k0;W%6tfC@#wȨX +QkJ{ˈ><Z¦g xd9eB9N]0=4`y(Dw̖*XSad ١`xa3YۜL7`TA:MR;0wSJYBFY*h{ٽ7Jm;fs$H~(`)<*(]SI-o#SLtd \ No newline at end of file === added directory 'vim/bundle/vim-template/.git/objects/57' === added file 'vim/bundle/vim-template/.git/objects/57/eabdc2573093b39d3b88e0bb9e7b858dea28ba' Binary files vim/bundle/vim-template/.git/objects/57/eabdc2573093b39d3b88e0bb9e7b858dea28ba 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/57/eabdc2573093b39d3b88e0bb9e7b858dea28ba 2015-02-13 09:59:55 +0000 differ === added directory 'vim/bundle/vim-template/.git/objects/66' === added file 'vim/bundle/vim-template/.git/objects/66/e52ec9336a24bc86733ea9406b8599a6cccbf7' Binary files vim/bundle/vim-template/.git/objects/66/e52ec9336a24bc86733ea9406b8599a6cccbf7 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/66/e52ec9336a24bc86733ea9406b8599a6cccbf7 2015-02-13 09:59:55 +0000 differ === added directory 'vim/bundle/vim-template/.git/objects/67' === added file 'vim/bundle/vim-template/.git/objects/67/784770526945bb1d475bce9e9a7b3508e34605' Binary files vim/bundle/vim-template/.git/objects/67/784770526945bb1d475bce9e9a7b3508e34605 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/67/784770526945bb1d475bce9e9a7b3508e34605 2015-02-13 09:59:55 +0000 differ === added directory 'vim/bundle/vim-template/.git/objects/6c' === added file 'vim/bundle/vim-template/.git/objects/6c/557102a8260d501045bd22190efb9221ba656b' Binary files vim/bundle/vim-template/.git/objects/6c/557102a8260d501045bd22190efb9221ba656b 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/6c/557102a8260d501045bd22190efb9221ba656b 2015-02-13 09:59:55 +0000 differ === added directory 'vim/bundle/vim-template/.git/objects/6d' === added file 'vim/bundle/vim-template/.git/objects/6d/90107c84a4898d6464febb904d3e9c6307ac4b' Binary files vim/bundle/vim-template/.git/objects/6d/90107c84a4898d6464febb904d3e9c6307ac4b 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/6d/90107c84a4898d6464febb904d3e9c6307ac4b 2015-02-13 09:59:55 +0000 differ === added file 'vim/bundle/vim-template/.git/objects/6d/bad7866d341cbb44ddb56b9299b46d0085e22c' --- vim/bundle/vim-template/.git/objects/6d/bad7866d341cbb44ddb56b9299b46d0085e22c 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/.git/objects/6d/bad7866d341cbb44ddb56b9299b46d0085e22c 2015-02-13 09:59:55 +0000 @@ -0,0 +1,2 @@ +xmMJ@])j+QP!$-ӘIB W2IIC+#y OfKƬͫ{ԣYTe!8KYa»kȲG@f~uWo.dri#؟3/"m8VDTaqU]8@0Zh'~DD +Zh^䂱~קM=4J#߉&>2g?`\W \ No newline at end of file === added directory 'vim/bundle/vim-template/.git/objects/72' === added file 'vim/bundle/vim-template/.git/objects/72/a8f3dea9014a5344fada5ac63510315b4d1615' Binary files vim/bundle/vim-template/.git/objects/72/a8f3dea9014a5344fada5ac63510315b4d1615 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/72/a8f3dea9014a5344fada5ac63510315b4d1615 2015-02-13 09:59:55 +0000 differ === added directory 'vim/bundle/vim-template/.git/objects/7b' === added file 'vim/bundle/vim-template/.git/objects/7b/223d177d7cba9d6b78e50023a2600e784a3802' Binary files vim/bundle/vim-template/.git/objects/7b/223d177d7cba9d6b78e50023a2600e784a3802 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/7b/223d177d7cba9d6b78e50023a2600e784a3802 2015-02-13 09:59:55 +0000 differ === added file 'vim/bundle/vim-template/.git/objects/7b/2c9878d4d70d0bebb8898bf22c9291ccce7037' Binary files vim/bundle/vim-template/.git/objects/7b/2c9878d4d70d0bebb8898bf22c9291ccce7037 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/7b/2c9878d4d70d0bebb8898bf22c9291ccce7037 2015-02-13 09:59:55 +0000 differ === added file 'vim/bundle/vim-template/.git/objects/7b/87b497877c1422a35d7cc53f15cdc2ed2329cc' Binary files vim/bundle/vim-template/.git/objects/7b/87b497877c1422a35d7cc53f15cdc2ed2329cc 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/7b/87b497877c1422a35d7cc53f15cdc2ed2329cc 2015-02-13 09:59:55 +0000 differ === added directory 'vim/bundle/vim-template/.git/objects/80' === added file 'vim/bundle/vim-template/.git/objects/80/eec18b193d2583201fb2dec2e300c556fb2fc3' Binary files vim/bundle/vim-template/.git/objects/80/eec18b193d2583201fb2dec2e300c556fb2fc3 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/80/eec18b193d2583201fb2dec2e300c556fb2fc3 2015-02-13 09:59:55 +0000 differ === added directory 'vim/bundle/vim-template/.git/objects/85' === added file 'vim/bundle/vim-template/.git/objects/85/fe6a24db32ff955a4a0cc563766679a4694687' Binary files vim/bundle/vim-template/.git/objects/85/fe6a24db32ff955a4a0cc563766679a4694687 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/85/fe6a24db32ff955a4a0cc563766679a4694687 2015-02-13 09:59:55 +0000 differ === added directory 'vim/bundle/vim-template/.git/objects/96' === added file 'vim/bundle/vim-template/.git/objects/96/15b215842df30b76e7b2c14f839e3236cf4ccc' Binary files vim/bundle/vim-template/.git/objects/96/15b215842df30b76e7b2c14f839e3236cf4ccc 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/96/15b215842df30b76e7b2c14f839e3236cf4ccc 2015-02-13 09:59:55 +0000 differ === added directory 'vim/bundle/vim-template/.git/objects/98' === added file 'vim/bundle/vim-template/.git/objects/98/81886db991a6ab47ed7cab1f1db33d8b8b4a3e' Binary files vim/bundle/vim-template/.git/objects/98/81886db991a6ab47ed7cab1f1db33d8b8b4a3e 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/98/81886db991a6ab47ed7cab1f1db33d8b8b4a3e 2015-02-13 09:59:55 +0000 differ === added file 'vim/bundle/vim-template/.git/objects/98/d2dbfe779fb68b943c5953fa4cb9854f297645' --- vim/bundle/vim-template/.git/objects/98/d2dbfe779fb68b943c5953fa4cb9854f297645 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/.git/objects/98/d2dbfe779fb68b943c5953fa4cb9854f297645 2015-02-13 09:59:55 +0000 @@ -0,0 +1,2 @@ +x +0Ewyvtqѡ5i${\b?lFu6){ʨd z'}PGЩxzv)Gg#y^6(wOo˩BxΠKo$< \ No newline at end of file === added directory 'vim/bundle/vim-template/.git/objects/9b' === added file 'vim/bundle/vim-template/.git/objects/9b/055c9f8662bce2216fc6a85e3fa4eb83c90de3' Binary files vim/bundle/vim-template/.git/objects/9b/055c9f8662bce2216fc6a85e3fa4eb83c90de3 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/9b/055c9f8662bce2216fc6a85e3fa4eb83c90de3 2015-02-13 09:59:55 +0000 differ === added directory 'vim/bundle/vim-template/.git/objects/a5' === added file 'vim/bundle/vim-template/.git/objects/a5/a67536601719822d2cbbef118e4fda47ab3942' --- vim/bundle/vim-template/.git/objects/a5/a67536601719822d2cbbef118e4fda47ab3942 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/.git/objects/a5/a67536601719822d2cbbef118e4fda47ab3942 2015-02-13 09:59:55 +0000 @@ -0,0 +1,2 @@ +x- +@;SL!TD⡫?z[04x:oP eY^HZl2~߽.ك^2. TW˅q^s ,7Sf) g¨z*D>+IUfR?X{Xnu\$x~͂gDLQ-?(D1 \ No newline at end of file === added directory 'vim/bundle/vim-template/.git/objects/a6' === added file 'vim/bundle/vim-template/.git/objects/a6/c63058b41e5da6de1c710b1a53b867add5d67f' --- vim/bundle/vim-template/.git/objects/a6/c63058b41e5da6de1c710b1a53b867add5d67f 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/.git/objects/a6/c63058b41e5da6de1c710b1a53b867add5d67f 2015-02-13 09:59:55 +0000 @@ -0,0 +1,2 @@ +xA @;_1ʃx@tXCi!6iLEQVתWS{C5qk^V| +܊m/h{Ϙ𽀫R[d% RJc7,F5#"⋮ÃU(b \ No newline at end of file === added directory 'vim/bundle/vim-template/.git/objects/c7' === added file 'vim/bundle/vim-template/.git/objects/c7/ccefa3af3ddcd271faa1b94dc83cef0c564149' Binary files vim/bundle/vim-template/.git/objects/c7/ccefa3af3ddcd271faa1b94dc83cef0c564149 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/c7/ccefa3af3ddcd271faa1b94dc83cef0c564149 2015-02-13 09:59:55 +0000 differ === added directory 'vim/bundle/vim-template/.git/objects/cf' === added file 'vim/bundle/vim-template/.git/objects/cf/06732f76220fbb8fe73bb55a77e945aa844515' Binary files vim/bundle/vim-template/.git/objects/cf/06732f76220fbb8fe73bb55a77e945aa844515 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/cf/06732f76220fbb8fe73bb55a77e945aa844515 2015-02-13 09:59:55 +0000 differ === added file 'vim/bundle/vim-template/.git/objects/cf/7b3c16dfb7e6c2eda0fdc0d240d6363d1e6dd0' Binary files vim/bundle/vim-template/.git/objects/cf/7b3c16dfb7e6c2eda0fdc0d240d6363d1e6dd0 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/cf/7b3c16dfb7e6c2eda0fdc0d240d6363d1e6dd0 2015-02-13 09:59:55 +0000 differ === added directory 'vim/bundle/vim-template/.git/objects/db' === added file 'vim/bundle/vim-template/.git/objects/db/ad64ce46637163da817e8efd4e5b7ae3e03427' Binary files vim/bundle/vim-template/.git/objects/db/ad64ce46637163da817e8efd4e5b7ae3e03427 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/db/ad64ce46637163da817e8efd4e5b7ae3e03427 2015-02-13 09:59:55 +0000 differ === added directory 'vim/bundle/vim-template/.git/objects/f0' === added file 'vim/bundle/vim-template/.git/objects/f0/4f82dd78b9ed0fac61c5bf47f45342a0c4b806' --- vim/bundle/vim-template/.git/objects/f0/4f82dd78b9ed0fac61c5bf47f45342a0c4b806 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/.git/objects/f0/4f82dd78b9ed0fac61c5bf47f45342a0c4b806 2015-02-13 09:59:55 +0000 @@ -0,0 +1,1 @@ +xM @E[ϯ%"FҢ?bW.4 =$R@y^֩w/i@%fL;c~Az6yNRnt5UH*Ȣ(m \ No newline at end of file === added file 'vim/bundle/vim-template/.git/objects/f0/718b73f36e4e3ceb24695565bb7bfabb5525bc' Binary files vim/bundle/vim-template/.git/objects/f0/718b73f36e4e3ceb24695565bb7bfabb5525bc 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/f0/718b73f36e4e3ceb24695565bb7bfabb5525bc 2015-02-13 09:59:55 +0000 differ === added directory 'vim/bundle/vim-template/.git/objects/f1' === added file 'vim/bundle/vim-template/.git/objects/f1/09e8500708934ba04a4710529375b2c3c4e83d' Binary files vim/bundle/vim-template/.git/objects/f1/09e8500708934ba04a4710529375b2c3c4e83d 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/f1/09e8500708934ba04a4710529375b2c3c4e83d 2015-02-13 09:59:55 +0000 differ === added directory 'vim/bundle/vim-template/.git/objects/f6' === added file 'vim/bundle/vim-template/.git/objects/f6/8f80959f5d2234d42cb19d79ec23c05738f20c' Binary files vim/bundle/vim-template/.git/objects/f6/8f80959f5d2234d42cb19d79ec23c05738f20c 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/f6/8f80959f5d2234d42cb19d79ec23c05738f20c 2015-02-13 09:59:55 +0000 differ === added directory 'vim/bundle/vim-template/.git/objects/f9' === added file 'vim/bundle/vim-template/.git/objects/f9/3f249618340477c5bcff7c64b5724ae95ea322' Binary files vim/bundle/vim-template/.git/objects/f9/3f249618340477c5bcff7c64b5724ae95ea322 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/f9/3f249618340477c5bcff7c64b5724ae95ea322 2015-02-13 09:59:55 +0000 differ === added directory 'vim/bundle/vim-template/.git/objects/fb' === added file 'vim/bundle/vim-template/.git/objects/fb/3b6160d7233c24e93c056341ccad996bbbadc8' Binary files vim/bundle/vim-template/.git/objects/fb/3b6160d7233c24e93c056341ccad996bbbadc8 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/fb/3b6160d7233c24e93c056341ccad996bbbadc8 2015-02-13 09:59:55 +0000 differ === added directory 'vim/bundle/vim-template/.git/objects/fd' === added file 'vim/bundle/vim-template/.git/objects/fd/167eb611e7e42b6679ef8cd03b6ab955a3d2b4' Binary files vim/bundle/vim-template/.git/objects/fd/167eb611e7e42b6679ef8cd03b6ab955a3d2b4 1970-01-01 00:00:00 +0000 and vim/bundle/vim-template/.git/objects/fd/167eb611e7e42b6679ef8cd03b6ab955a3d2b4 2015-02-13 09:59:55 +0000 differ === added directory 'vim/bundle/vim-template/.git/objects/info' === added directory 'vim/bundle/vim-template/.git/objects/pack' === added file 'vim/bundle/vim-template/.git/packed-refs' --- vim/bundle/vim-template/.git/packed-refs 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/.git/packed-refs 2015-02-13 09:59:55 +0000 @@ -0,0 +1,2 @@ +# pack-refs with: peeled fully-peeled +1a366e908f9a622165cd0fbb80a4821068736661 refs/remotes/origin/master === added directory 'vim/bundle/vim-template/.git/refs' === added directory 'vim/bundle/vim-template/.git/refs/heads' === added file 'vim/bundle/vim-template/.git/refs/heads/master' --- vim/bundle/vim-template/.git/refs/heads/master 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/.git/refs/heads/master 2015-02-13 09:59:55 +0000 @@ -0,0 +1,1 @@ +1a366e908f9a622165cd0fbb80a4821068736661 === added directory 'vim/bundle/vim-template/.git/refs/remotes' === added directory 'vim/bundle/vim-template/.git/refs/remotes/origin' === added file 'vim/bundle/vim-template/.git/refs/remotes/origin/HEAD' --- vim/bundle/vim-template/.git/refs/remotes/origin/HEAD 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/.git/refs/remotes/origin/HEAD 2015-02-13 09:59:55 +0000 @@ -0,0 +1,1 @@ +ref: refs/remotes/origin/master === added file 'vim/bundle/vim-template/.git/shallow' --- vim/bundle/vim-template/.git/shallow 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/.git/shallow 2015-02-13 09:59:55 +0000 @@ -0,0 +1,1 @@ +1a366e908f9a622165cd0fbb80a4821068736661 === added file 'vim/bundle/vim-template/README.rst' --- vim/bundle/vim-template/README.rst 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/README.rst 2015-02-13 09:59:55 +0000 @@ -0,0 +1,166 @@ +============================= + Simple Vim templates plugin +============================= +:Author: Adrian Perez + +This is a simple plugin for Vim that will allow you to have a set of +templates for certain file types. It is useful to add boilerplate code +like guards in C/C++ headers, or license disclaimers. + + +Installation +============ + +The easiest way to install the plugin is to install it as a bundle. +For example, using Pathogen__: + +1. Get and install `pathogen.vim <_Pathogen>`__. You can skip this step + if you already have it installed. + +2. ``cd ~/.vim/bundle`` + +3. ``git clone git://github.com/aperezdc/vim-template.git`` + +__ https://github.com/tpope/vim-pathogen + +Bundle installs are known to work fine also when using Vundle__. Other +bundle managers are expected to work as well. + +__ https://github.com/gmarik/vundle + + +Updating +======== + +Manually +-------- + +In order to update the plugin, go to its bundle directory and use +Git to update it: + +1. ``cd ~/.vim/bundle/vim-template`` + +2. ``git pull`` + + +With Vundle +----------- + +Use the ``:BundleUpdate`` command provided by Vundle, for example invoking +Vim like this:: + + % vim +BundleUpdate + + +Configuration +============= + +In your vimrc you can put: + +* ``let g:templates_plugin_loaded = 1`` to skip loading of this plugin. + +* ``let g:templates_no_autocmd = 1`` to disable automatic insertion of + template in new files. + +* ``let g:templates_directory = '/path/to/directory'`` to specify a directory + from where to search for additional global templates. See `template search + order`_ below for more details. This can also be a list of paths. + +* ``let g:templates_name_prefix = '.vimtemplate.'`` to change the name of the + template files that are searched. + +* ``let g:templates_global_name_prefix = 'template:'`` to change the prefix of the + templates in the global template directory. + +* ``let g:templates_debug = 1`` to have vim-template output debug information + +* ``let g:templates_fuzzy_start = 1`` to be able to name templates with + implicit fuzzy matching at the start of a template name. For example a + template file named ``template:.c`` would match ``test.cpp``. + +* ``let g:templates_tr_in = [ '.', '_', '?' ]`` and + ``let g:templates_tr_out = [ '\.', '.*', '\?' ]`` would allow you to change + how template names are interpretted as regular expressions for matching file + names. This might be helpful if hacking on a windows box where ``*`` is not + allowed in file names. The above configuration, for example, treates + underscores ``_`` as the typical regex wildcard ``.*``. + +* ``let g:templates_no_builtin_templates = 1`` to disable usage of the + built-in templates. See `template search order`_ below for more details. + + +Usage +===== + +There are a number of options to use a template: + + +* Create a new file giving it a name. The suffix will be used to determine + which template to use. E.g:: + + $ vim foo.c + +* In a buffer, use ``:Template *.foo`` to load the template that would be + loaded for file matching the pattern ``*.foo``. E.g. from within Vim:: + + :Template *.c + +Template search order +--------------------- + +The algorithm to search for templates works like this: + +1. A file named ``.vim-template:`` in the current directory. If not + found, goto *(2)*. If there are multiple template files that match a given + suffix in the *same* directory, the one that is most specific is used. + +2. Go up a directory and goto *(1)*, if not possible, goto *(3)*. + +3. Try to use the ``=template=`` file from the directory specified + using the ``g:templates_directory`` option (only if the option is defined + and the directory exists). + +3. Try to use the ``=template=`` file supplied with the plugin (only + if ``g:templates_no_builtin_templates`` was not defined). + + +Variables in templates +---------------------- + +The following variables will be expanded in templates: + +``%DAY%``, ``%YEAR%``, ``%MONTH%`` + Numerical day of the month, year and month. +``%DATE%`` + Date in ``YYYY-mm-dd`` format +``%TIME%`` + Time in ``HH:MM`` format +``%FDATE%`` + Full date (date + time), in ``YYYY-mm-dd HH:MM`` format. +``%FILE%`` + File name, without extension. +``%FFILE%`` + File name, with extension. +``%EXT%`` + File extension. +``%MAIL%`` + Current user's e-mail address. May be overriden by defining ``g:email``. +``%USER%`` + Current logged-in user name. May be overriden by defining ``g:username``. +``%HOST%`` + Host name. +``%GUARD%`` + A string with alphanumeric characters and underscores, suitable for use + in proprocessor guards for C/C++/Objective-C header files. +``%CLASS%`` + File name, without extension, and the first character of every word is + capital +``%MACROCLASS%`` + File name, without extension, and all characters are capitals. +``%CAMELCLASS%`` + File name, without extension, the first character of every word is capital, + and all underscores are removed. +``%HERE%`` + Expands to nothing, but ensures that the cursor will be placed in its + position after expanding the template. + === added directory 'vim/bundle/vim-template/plugin' === added file 'vim/bundle/vim-template/plugin/templates.vim' --- vim/bundle/vim-template/plugin/templates.vim 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/plugin/templates.vim 2015-02-13 09:59:55 +0000 @@ -0,0 +1,475 @@ +" +" Template system for Vim +" +" Copyright (C) 2012 Adrian Perez de Castro +" Copyright (C) 2005 Adrian Perez de Castro +" +" Distributed under terms of the MIT license. +" + +if exists("g:templates_plugin_loaded") + finish +endif +let g:templates_plugin_loaded = 1 + +if !exists('g:templates_name_prefix') + let g:templates_name_prefix = ".vim-template:" +endif + +if !exists('g:templates_global_name_prefix') + let g:templates_global_name_prefix = "=template=" +endif + +if !exists('g:templates_debug') + let g:templates_debug = 0 +endif + +if !exists('g:templates_tr_in') + let g:templates_tr_in = [ '.', '*', '?' ] +endif + +if !exists('g:templates_tr_out') + let g:templates_tr_out = [ '\.', '.*', '\?' ] +endif + +if !exists('g:templates_fuzzy_start') + let g:templates_fuzzy_start = 1 +endif + +if !exists('g:templates_directory') + let g:templates_directory = [] +elseif type(g:templates_directory) == type('') + " Convert string value to a list with one element. + let s:tmp = g:templates_directory + unlet g:templates_directory + let g:templates_directory = [ s:tmp ] + unlet s:tmp +endif + +if !exists('g:templates_no_builtin_templates') + let g:templates_no_builtin_templates = 0 +endif + +" Put template system autocommands in their own group. {{{1 +if !exists('g:templates_no_autocmd') + let g:templates_no_autocmd = 0 +endif + +if !g:templates_no_autocmd + augroup Templating + autocmd! + autocmd BufNewFile * call TLoad() + augroup END +endif + +function Debug(mesg) + if g:templates_debug + echom(a:mesg) + endif +endfunction + +" normalize the path +" replace the windows path sep \ with / +function NormalizePath(path) + return substitute(a:path, "\\", "/", "g") +endfunction + +" Template searching. {{{1 +" Returns a string containing the path of the parent directory of the given +" path. Works like dirname(3). It also simplifies the given path. +function DirName(path) + let l:tmp = NormalizePath(a:path) + return substitute(l:tmp, "[^/][^/]*/*$", "", "") +endfunction + +" Default templates directory +let s:default_template_dir = DirName(DirName(expand(""))) . "templates" + +" Find the target template in windows +" +" In windows while we clone the symbol link from github +" it will turn to normal file, so we use this function +" to figure out the destination file +function TFindLink(path, template) + if !filereadable(a:path . a:template) + return a:template + endif + + let l:content = readfile(a:path . a:template, "b") + if len(l:content) != 1 + return a:template + endif + + if filereadable(a:path . l:content[0]) + return TFindLink(a:path, l:content[0]) + else + return a:template + endif +endfunction + +" Translate a template file name into a regular expression to test for matching +" against a given filename. As of writing this behavior is something like this: +" (with a g:templates_name_prefix set as 'template.') +" +" template.py -> ^.*py$ +" +" template.test.py -> ^.*test.py$ +" +function TemplateToRegex(template, prefix) + let l:template_base_name = fnamemodify(a:template,":t") + let l:template_glob = strpart(l:template_base_name, len(a:prefix)) + + " Translate the template's glob into a normal regular expression + let l:in_escape_mode = 0 + let l:template_regex = "" + for l:c in split(l:template_glob, '\zs') + if l:in_escape_mode == 1 + if l:c == '\' + let l:template_regex = l:template_regex . '\\' + else + let l:template_regex = l:template_regex . l:c + endif + + let l:in_escape_mode = 0 + else + if l:c == '\' + let l:in_escape_mode = 1 + else + let l:tr_index = index(g:templates_tr_in, l:c) + if l:tr_index != -1 + let l:template_regex = l:template_regex . g:templates_tr_out[l:tr_index] + else + let l:template_regex = l:template_regex . l:c + endif + endif + endif + endfor + + if g:templates_fuzzy_start + return l:template_regex . '$' + else + return '^' . l:template_regex . '$' + endif + +endfunction + +" Given a template and filename, return a score on how well the template matches +" the given filename. If the template does not match the file name at all, +" return 0 +function TemplateBaseNameTest(template, prefix, filename) + let l:tregex = TemplateToRegex(a:template, a:prefix) + + " Ensure that we got a valid regex + if l:tregex == "" + return 0 + endif + + " For now only use the base of the filename.. this may change later + " *Note* we also have to be careful because a:filename may also be the passed + " in text from TLoadCmd... + let l:filename_chopped = fnamemodify(a:filename,":t") + + " Check for a match + let l:regex_result = match(l:filename_chopped,l:tregex) + if l:regex_result != -1 + " For a match return a score based on the regex length + return len(l:tregex) + else + " No match + return 0 + endif + +endfunction + +" Returns the most specific / highest scored template file found in the given +" path. Template files are found by using a glob operation on the current path +" and the setting of g:templates_name_prefix. If no template is found in the +" given directory, return an empty string +function TDirectorySearch(path, template_prefix, file_name) + let l:picked_template = "" + let l:picked_template_score = 0 + + " All template files matching + let l:templates = split(glob(a:path . a:template_prefix . "*"), "\n") + for template in l:templates + " Make sure the template is readable + if filereadable(template) + let l:current_score = + \TemplateBaseNameTest(template, a:template_prefix, a:file_name) + call Debug("template: " . template . " got scored: " . l:current_score) + + " Pick that template only if it beats the currently picked template + " (here we make the assumption that template name length ~= template + " specifity / score) + if l:current_score > l:picked_template_score + let l:picked_template = template + let l:picked_template_score = l:current_score + endif + endif + endfor + + if l:picked_template != "" + call Debug("Picked template: " . l:picked_template) + else + call Debug("No template found") + endif + + return l:picked_template +endfunction + +" Searches for a [template] in a given [path]. +" +" If [upwards] is [1] the template is searched only in the given directory; +" if it's zero it is searched all along the directory structure, going to +" parent directory whenever a template is *not* found for a given [path]. If +" it's greater than zero [upwards] is the maximum depth of directories that +" will be traversed. +" +" If no template is found an empty string is returned. +" +function TSearch(path, template_prefix, file_name, upwards) + " pick a template from the current path + let l:picked_template = TDirectorySearch(a:path, a:template_prefix, a:file_name) + + if l:picked_template != "" + if !has("win32") || !has("win64") + return l:picked_template + else + echoerr( "Not yet implemented" ) + " TODO + " return a:path . TFindLink(a:path, a:template) + endif + else + " File not found/not readable. + if (a:upwards == 0) || (a:upwards > 1) + " Check wether going upwards results in a different path... + let l:pathUp = DirName(a:path) + if l:pathUp != a:path + " ...and traverse it. + return TSearch(l:pathUp, a:template_prefix, a:file_name, a:upwards ? a:upwards-1 : 0) + endif + endif + endif + " Ooops, either we cannot go up in the path or [upwards] reached 1 + return "" +endfunction + + +" Tries to find valid templates using the global g:templates_name_prefix as a glob +" matcher for template files. The search is done as follows: +" 1. The [path] passed to the function, [upwards] times up. +" 2. The g:templates_directory directory, if it exists. +" 3. Built-in templates from s:default_template_dir. +" Returns an empty string if no template is found. +" +function TFind(path, name, up) + let l:tmpl = TSearch(a:path, g:templates_name_prefix, a:name, a:up) + if l:tmpl != '' + return l:tmpl + endif + + for l:directory in g:templates_directory + let l:directory = NormalizePath(expand(l:directory) . '/') + if isdirectory(l:directory) + let l:tmpl = TSearch(l:directory, g:templates_global_name_prefix, a:name, 1) + if l:tmpl != '' + return l:tmpl + endif + endif + endfor + + if g:templates_no_builtin_templates + return '' + endif + + return TSearch(NormalizePath(expand(s:default_template_dir) . '/'), g:templates_global_name_prefix, a:name, 1) +endfunction + + +" Template variable expansion. {{{1 + +" Makes a single [variable] expansion, using [value] as replacement. +" +function TExpand(variable, value) + silent! execute "%s/%" . a:variable . "%/" . a:value . "/g" +endfunction + +" Performs variable expansion in a template once it was loaded {{{2 +" +function TExpandVars() + " Date/time values + let l:day = strftime("%d") + let l:year = strftime("%Y") + let l:month = strftime("%m") + let l:time = strftime("%H:%M") + let l:date = exists("g:dateformat") ? strftime(g:dateformat) : + \ (l:year . "-" . l:month . "-" . l:day) + let l:fdate = l:date . " " . l:time + let l:filen = expand("%:t:r:r:r") + let l:filex = expand("%:e") + let l:filec = expand("%:t") + let l:fdir = expand("%:p:h:t") + let l:hostn = hostname() + let l:user = exists("g:username") ? g:username : + \ (exists("g:user") ? g:user : $USER) + let l:email = exists("g:email") ? g:email : (l:user . "@" . l:hostn) + let l:guard = toupper(substitute(l:filec, "[^a-zA-Z0-9]", "_", "g")) + let l:class = substitute(l:filen, "\\([a-zA-Z]\\+\\)", "\\u\\1\\e", "g") + let l:macroclass = toupper(l:class) + let l:camelclass = substitute(l:class, "_", "", "g") + + " Finally, perform expansions + call TExpand("DAY", l:day) + call TExpand("YEAR", l:year) + call TExpand("DATE", l:date) + call TExpand("TIME", l:time) + call TExpand("USER", l:user) + call TExpand("FDATE", l:fdate) + call TExpand("MONTH", l:month) + call TExpand("FILE", l:filen) + call TExpand("FFILE", l:filec) + call TExpand("FDIR", l:fdir) + call TExpand("EXT", l:filex) + call TExpand("MAIL", l:email) + call TExpand("HOST", l:hostn) + call TExpand("GUARD", l:guard) + call TExpand("CLASS", l:class) + call TExpand("MACROCLASS", l:macroclass) + call TExpand("CAMELCLASS", l:camelclass) + call TExpand("LICENSE", exists("g:license") ? g:license : "MIT") +endfunction + +" }}}2 + +" Puts the cursor either at the first line of the file or in the place of +" the template where the %HERE% string is found, removing %HERE% from the +" template. +" +function TPutCursor() + 0 " Go to first line before searching + if search("%HERE%", "W") + let l:column = col(".") + let l:lineno = line(".") + s/%HERE%// + call cursor(l:lineno, l:column) + endif +endfunction + +" File name utils +" +" Ensures that the given file name is safe to be opened and will not be shell +" expanded +function NeuterFileName(filename) + let l:neutered = fnameescape(a:filename) + call Debug("Neutered " . a:filename . " to " . l:neutered) + return l:neutered +endfunction + + +" Template application. {{{1 + +" Loads a template for the current buffer, substitutes variables and puts +" cursor at %HERE%. Used to implement the BufNewFile autocommand. +" +function TLoad() + if !line2byte( line( '$' ) + 1 ) == -1 + return + endif + + let l:file_name = expand("%:p") + let l:file_dir = DirName(l:file_name) + let l:depth = exists("g:template_max_depth") ? g:template_max_depth : 0 + + let l:tFile = TFind(l:file_dir, l:file_name, l:depth) + call TLoadTemplate(l:tFile) +endfunction + + +" Like the previous one, TLoad(), but intended to be called with an argument +" that either is a filename (so the file is loaded as a template) or +" a template suffix (and the template is searched as usual). Of course this +" makes variable expansion and cursor positioning. +" +function TLoadCmd(template) + if filereadable(a:template) + let l:tFile = a:template + else + let l:depth = exists("g:template_max_depth") ? g:template_max_depth : 0 + let l:tName = g:templates_global_name_prefix . a:template + let l:file_name = expand("%:p") + let l:file_dir = DirName(l:file_name) + + let l:tFile = TFind(l:file_dir, a:template, l:depth) + endif + call TLoadTemplate(l:tFile) +endfunction + +" Load the given file as a template +function TLoadTemplate(template) + if a:template != "" + let l:deleteLastLine = 0 + if line('$') == 1 && getline(1) == '' + let l:deleteLastLine = 1 + endif + + " Read template file and expand variables in it. + let l:safeFileName = NeuterFileName(a:template) + execute "keepalt 0r " . l:safeFileName + call TExpandVars() + + if l:deleteLastLine == 1 + " Loading a template into an empty buffer leaves an extra blank line at the bottom, delete it + execute line('$') . "d" + endif + + call TPutCursor() + setlocal nomodified + endif +endfunction + +" Commands {{{1 + +" Just calls the above function, pass either a filename or a template +" suffix, as explained before =) +" +fun ListTemplateSuffixes(A,P,L) + let l:templates = split(globpath(s:default_template_dir, g:templates_global_name_prefix . a:A . "*"), "\n") + let l:res = [] + for t in templates + let l:suffix = substitute(t, ".*\\.", "", "") + call add(l:res, l:suffix) + endfor + + return l:res +endfun +command -nargs=1 -complete=customlist,ListTemplateSuffixes Template call TLoadCmd("") + +" Syntax autocommands {{{1 +" +" Enable the vim-template syntax for template files +" Usually we'd put this in the ftdetect folder, but because +" g:templates_name_prefix doesn't get defined early enough we have to add the +" template detection from the plugin itself +execute "au BufNewFile,BufRead " . g:templates_name_prefix . "* " + \. "let b:vim_template_subtype = &filetype | " + \. "set ft=vim-template" + +if !g:templates_no_builtin_templates + execute "au BufNewFile,BufRead " + \. s:default_template_dir . "/" . g:templates_global_name_prefix . "* " + \. "let b:vim_template_subtype = &filetype | " + \. "set ft=vim-template" +endif + +for s:directory in g:templates_directory + let s:directory = NormalizePath(expand(s:directory) . '/') + if isdirectory(s:directory) + execute "au BufNewFile,BufRead " + \. s:directory . "/" . g:templates_global_name_prefix . "* " + \. "let b:vim_template_subtype = &filetype | " + \. "set ft=vim-template" + endif + unlet s:directory +endfor + +" vim: fdm=marker === added directory 'vim/bundle/vim-template/syntax' === added file 'vim/bundle/vim-template/syntax/vim-template.vim' --- vim/bundle/vim-template/syntax/vim-template.vim 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/syntax/vim-template.vim 2015-02-13 09:59:55 +0000 @@ -0,0 +1,19 @@ +" vim-template syntax file +" Language: vim-template +" Maintainer: Stephen Chandler Paul +" Last Change: 2014 April 21 + +if exists("b:current_syntax") + finish +endif + +if b:vim_template_subtype != "" + execute "runtime! syntax/" . b:vim_template_subtype . ".vim" + unlet b:current_syntax +endif + +syn match vimtemplateVariable "%\%(DAY\|YEAR\|MONTH\|DATE\|TIME\|FILE\|FFILE\|EXT\|MAIL\|USER\|HOST\|GUARD\|CLASS\|MACROCLASS\|CAMELCLASS\|HERE\)%" containedin=ALL + +let b:current_syntax = "vim-template" + +hi def link vimtemplateVariable Constant === added directory 'vim/bundle/vim-template/templates' === added file 'vim/bundle/vim-template/templates/=template=*.c' --- vim/bundle/vim-template/templates/=template=*.c 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*.c 2015-02-13 09:59:55 +0000 @@ -0,0 +1,11 @@ +/* + * %FFILE% + * Copyright (C) %YEAR% %USER% <%MAIL%> + * + * Distributed under terms of the %LICENSE% license. + */ + +#include "%FILE%.h" + + +%HERE% === added symlink 'vim/bundle/vim-template/templates/=template=*.c++' === target is u'=template=*.c' === added symlink 'vim/bundle/vim-template/templates/=template=*.cc' === target is u'=template=*.c' === added file 'vim/bundle/vim-template/templates/=template=*.cmake' --- vim/bundle/vim-template/templates/=template=*.cmake 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*.cmake 2015-02-13 09:59:55 +0000 @@ -0,0 +1,13 @@ +cmake_minimum_required (VERSION 2.8) + +# projectname is the same as the main-executable +project(%HERE%%FDIR%) + +add_definitions('-g') +add_definitions('-Wall') +#add_definitions('-std=c++11') + +add_executable(${PROJECT_NAME} ${PROJECT_NAME}.cpp) + +add_custom_target(${PROJECT_NAME}-symlink ALL ln --force -s ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME} ${CMAKE_SOURCE_DIR}/${PROJECT_NAME} DEPENDS ${PROJECT_NAME}) +set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES ${CMAKE_SOURCE_DIR}/${PROJECT_NAME}) === added symlink 'vim/bundle/vim-template/templates/=template=*.cpp' === target is u'=template=*.c' === added file 'vim/bundle/vim-template/templates/=template=*.css' --- vim/bundle/vim-template/templates/=template=*.css 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*.css 2015-02-13 09:59:55 +0000 @@ -0,0 +1,12 @@ +/* + * %FFILE% + * Copyright (C) %YEAR% %USER% + * + * Distributed under terms of the %LICENSE% license. + */ + +body { + %HERE%background: white; + color: black; +} + === added symlink 'vim/bundle/vim-template/templates/=template=*.cxx' === target is u'=template=*.c' === added file 'vim/bundle/vim-template/templates/=template=*.f' --- vim/bundle/vim-template/templates/=template=*.f 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*.f 2015-02-13 09:59:55 +0000 @@ -0,0 +1,8 @@ +! +! %FFILE% +! Copyright (C) %YEAR% %USER% <%MAIL%> +! +! Distributed under terms of the %LICENSE% license. +! + +%HERE% === added file 'vim/bundle/vim-template/templates/=template=*.f90' --- vim/bundle/vim-template/templates/=template=*.f90 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*.f90 2015-02-13 09:59:55 +0000 @@ -0,0 +1,8 @@ +! +! %FFILE% +! Copyright (C) %YEAR% %USER% <%MAIL%> +! +! Distributed under terms of the %LICENSE% license. +! + +%HERE% === added file 'vim/bundle/vim-template/templates/=template=*.h' --- vim/bundle/vim-template/templates/=template=*.h 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*.h 2015-02-13 09:59:55 +0000 @@ -0,0 +1,13 @@ +/* + * %FFILE% + * Copyright (C) %YEAR% %USER% <%MAIL%> + * + * Distributed under terms of the %LICENSE% license. + */ + +#ifndef %GUARD% +#define %GUARD% + +%HERE% + +#endif /* !%GUARD% */ === added file 'vim/bundle/vim-template/templates/=template=*.hs' --- vim/bundle/vim-template/templates/=template=*.hs 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*.hs 2015-02-13 09:59:55 +0000 @@ -0,0 +1,12 @@ +#! /usr/bin/env runhugs +l +-- +-- %FFILE% +-- Copyright (C) %YEAR% %USER% <%MAIL%> +-- +-- Distributed under terms of the %LICENSE% license. +-- + +module %FILE% where + + +%HERE% === added file 'vim/bundle/vim-template/templates/=template=*.html' --- vim/bundle/vim-template/templates/=template=*.html 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*.html 2015-02-13 09:59:55 +0000 @@ -0,0 +1,10 @@ + + + + + %FILE% + + + %HERE% + + === added file 'vim/bundle/vim-template/templates/=template=*.humans.txt' --- vim/bundle/vim-template/templates/=template=*.humans.txt 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*.humans.txt 2015-02-13 09:59:55 +0000 @@ -0,0 +1,16 @@ +/* TEAM */ +Your title: %USER% +Site: %MAIL%, link to a contact form, etc. +Twitter: your Twitter username. +Location: City, Country. + +%HERE% + +/* THANKS */ +Name: name or url + +/* SITE */ +Last update: YYYY/MM/DD +Standards: HTML5, CSS3,.. +Components: Modernizr, jQuery, etc. +Software: Software used for the development === added file 'vim/bundle/vim-template/templates/=template=*.java' --- vim/bundle/vim-template/templates/=template=*.java 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*.java 2015-02-13 09:59:55 +0000 @@ -0,0 +1,14 @@ +/* + * %FFILE% + * Copyright (C) %YEAR% %USER% <%MAIL%> + * + * Distributed under terms of the %LICENSE% license. + */ + +public class %FILE% +{ + public %FILE%() { + %HERE% + } +} + === added file 'vim/bundle/vim-template/templates/=template=*.jl' --- vim/bundle/vim-template/templates/=template=*.jl 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*.jl 2015-02-13 09:59:55 +0000 @@ -0,0 +1,8 @@ +#= + %FILE% + Copyright © %YEAR% %USER% <%MAIL%> + + Distributed under terms of the %LICENSE% license. +=# + +%HERE% === added file 'vim/bundle/vim-template/templates/=template=*.js' --- vim/bundle/vim-template/templates/=template=*.js 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*.js 2015-02-13 09:59:55 +0000 @@ -0,0 +1,7 @@ +/* + * %FFILE% + * Copyright (C) %YEAR% %USER% <%MAIL%> + * + * Distributed under terms of the %LICENSE% license. + */ +%HERE% === added file 'vim/bundle/vim-template/templates/=template=*.lhs' --- vim/bundle/vim-template/templates/=template=*.lhs 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*.lhs 2015-02-13 09:59:55 +0000 @@ -0,0 +1,4 @@ +%FILE% by %USER% +%FDATE% + +%HERE% === added file 'vim/bundle/vim-template/templates/=template=*.lua' --- vim/bundle/vim-template/templates/=template=*.lua 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*.lua 2015-02-13 09:59:55 +0000 @@ -0,0 +1,9 @@ +#! /usr/bin/env lua +-- +-- %FFILE% +-- Copyright (C) %YEAR% %USER% <%MAIL%> +-- +-- Distributed under terms of the %LICENSE% license. +-- + +%HERE% === added symlink 'vim/bundle/vim-template/templates/=template=*.m' === target is u'=template=*.c' === added symlink 'vim/bundle/vim-template/templates/=template=*.mk' === target is u'=template=*Makefile' === added file 'vim/bundle/vim-template/templates/=template=*.ml' --- vim/bundle/vim-template/templates/=template=*.ml 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*.ml 2015-02-13 09:59:55 +0000 @@ -0,0 +1,9 @@ +(* + * %FFILE% + * Copyright (C) %YEAR% %USER% <%MAIL%> + * + * Distributed under terms of the %LICENSE% license. + *) + + +let %HERE% === added symlink 'vim/bundle/vim-template/templates/=template=*.mm' === target is u'=template=*.m' === added file 'vim/bundle/vim-template/templates/=template=*.php' --- vim/bundle/vim-template/templates/=template=*.php 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*.php 2015-02-13 09:59:55 +0000 @@ -0,0 +1,13 @@ + + * @version 0.1 + * @copyright (C) %YEAR% %USER% <%MAIL%> + * @license %LICENSE% + */ + +%HERE% +?> === added file 'vim/bundle/vim-template/templates/=template=*.pl' --- vim/bundle/vim-template/templates/=template=*.pl 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*.pl 2015-02-13 09:59:55 +0000 @@ -0,0 +1,16 @@ +#! /usr/bin/env perl +# +# Short description for %FFILE% +# +# Author %USER% <%MAIL%> +# Version 0.1 +# Copyright (C) %YEAR% %USER% <%MAIL%> +# Modified On %FDATE% +# Created %FDATE% +# +use strict; +use warnings; + + + +%HERE% === added file 'vim/bundle/vim-template/templates/=template=*.pm' --- vim/bundle/vim-template/templates/=template=*.pm 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*.pm 2015-02-13 09:59:55 +0000 @@ -0,0 +1,38 @@ +package %FILE%; +# +# Short description for %FFILE% +# +# Author %USER% <%MAIL%> +# Version 0.1 +# Copyright (C) %YEAR% %USER% <%MAIL%> +# Modified On %FDATE% +# Created %FDATE% +# +use strict; +use warnings; + +our @ISA = qw(Exporter); +our %EXPORT_TAGS = ( 'all' => [ qw() ] ); +our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); +our @EXPORT = qw(); +our $VERSION = '1.00'; +require Exporter; +use AutoLoader qw(AUTOLOAD); + + +sub new +{ + my $class = shift; + my $arg = shift; + my $self = {}; + + %HERE% + + bless($self, $class); + return $self; +} + + +1; +# __END__ +# # Below is stub documentation for your module. You'd better edit it! === added file 'vim/bundle/vim-template/templates/=template=*.pro' --- vim/bundle/vim-template/templates/=template=*.pro 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*.pro 2015-02-13 09:59:55 +0000 @@ -0,0 +1,26 @@ +PRO %FILE% +;+ +; Name: +; %FILE% +; Purpose: +; +; Calling sequence: +; %FILE% +; Input: +; +; Output: +; +; Keywords: +; +; History: +; +; Author: +; Copyright © %YEAR% %USER% <%MAIL%> +; Distributed under terms of the %LICENSE% license. +;- + +COMPILE_OPT IDL2 ;Set compile options + +%HERE% + +END === added file 'vim/bundle/vim-template/templates/=template=*.py' --- vim/bundle/vim-template/templates/=template=*.py 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*.py 2015-02-13 09:59:55 +0000 @@ -0,0 +1,11 @@ +#! /usr/bin/env python +# -*- coding: utf-8 -*- +# vim:fenc=utf-8 +# +# Copyright © %YEAR% %USER% <%MAIL%> +# +# Distributed under terms of the %LICENSE% license. + +""" +%HERE% +""" === added file 'vim/bundle/vim-template/templates/=template=*.rb' --- vim/bundle/vim-template/templates/=template=*.rb 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*.rb 2015-02-13 09:59:55 +0000 @@ -0,0 +1,10 @@ +#!/usr/bin/env ruby +# +# %FFILE% +# Copyright (C) %YEAR% %USER% <%MAIL%> +# +# Distributed under terms of the %LICENSE% license. +# + + +%HERE% === added file 'vim/bundle/vim-template/templates/=template=*.robots.txt' --- vim/bundle/vim-template/templates/=template=*.robots.txt 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*.robots.txt 2015-02-13 09:59:55 +0000 @@ -0,0 +1,6 @@ +# +# The Web Robots Pages (http://www.robotstxt.org/) +# + +User-agent: * +Disallow: === added file 'vim/bundle/vim-template/templates/=template=*.sh' --- vim/bundle/vim-template/templates/=template=*.sh 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*.sh 2015-02-13 09:59:55 +0000 @@ -0,0 +1,10 @@ +#! /bin/sh +# +# %FFILE% +# Copyright (C) %YEAR% %USER% <%MAIL%> +# +# Distributed under terms of the %LICENSE% license. +# + + +%HERE% === added file 'vim/bundle/vim-template/templates/=template=*.sql' --- vim/bundle/vim-template/templates/=template=*.sql 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*.sql 2015-02-13 09:59:55 +0000 @@ -0,0 +1,11 @@ +/* + * %FFILE% + * Copyright (C) %YEAR% %USER% <%MAIL%> + * + * Distributed under terms of the %LICENSE% license. + */ + +select %HERE% + + +-- vim:et === added file 'vim/bundle/vim-template/templates/=template=*.tex' --- vim/bundle/vim-template/templates/=template=*.tex 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*.tex 2015-02-13 09:59:55 +0000 @@ -0,0 +1,17 @@ +% vim:ft=tex: +% +\documentclass[12pt]{article} + +\title{ + %FILE% +} +\author{ + %USER% --- \texttt{%MAIL%} +} + +\begin{document} +\maketitle + +%HERE% + +\end{document} === added file 'vim/bundle/vim-template/templates/=template=*.txt' --- vim/bundle/vim-template/templates/=template=*.txt 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*.txt 2015-02-13 09:59:55 +0000 @@ -0,0 +1,7 @@ +%FFILE% + +:Author: %USER% +:Email: %MAIL% +:Date: %FDATE% + +%HERE% === added file 'vim/bundle/vim-template/templates/=template=*.xml' --- vim/bundle/vim-template/templates/=template=*.xml 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*.xml 2015-02-13 09:59:55 +0000 @@ -0,0 +1,8 @@ + +<%FILE%> + + %HERE% + + + === added file 'vim/bundle/vim-template/templates/=template=*.xsl' --- vim/bundle/vim-template/templates/=template=*.xsl 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*.xsl 2015-02-13 09:59:55 +0000 @@ -0,0 +1,12 @@ + + + + + %HERE% + + === added file 'vim/bundle/vim-template/templates/=template=*.zcml' --- vim/bundle/vim-template/templates/=template=*.zcml 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*.zcml 2015-02-13 09:59:55 +0000 @@ -0,0 +1,8 @@ + + + %HERE% + + === added symlink 'vim/bundle/vim-template/templates/=template=*GNUmakefile' === target is u'=template=*Makefile' === added file 'vim/bundle/vim-template/templates/=template=*Makefile' --- vim/bundle/vim-template/templates/=template=*Makefile 1970-01-01 00:00:00 +0000 +++ vim/bundle/vim-template/templates/=template=*Makefile 2015-02-13 09:59:55 +0000 @@ -0,0 +1,11 @@ +# +# %FFILE% +# %USER%, %FDATE% +# + +all: + %HERE%@echo "%FFILE% needs your attention" + + +# vim:ft=make +# \ No newline at end of file