Sha256: 7b79252184c9472fd2c11c956632a07a7a21a1ea0612e6f22ba6aa490da70e3f

Contents?: true

Size: 639 Bytes

Versions: 25

Compression:

Stored size: 639 Bytes

Contents

#!/bin/sh
# Indexes all tags for this repository for easy navigation with Vim, storing the
# file in <repo>/.git/tags. If you're using Fugitive.vim, you'll automatically
# have access to the tags file; otherwise you'll have to modify your `tags`
# option in your vimrc to search the generated file.

set -e

ctags --version &> /dev/null || exit 0

trap "rm -f .git/tags.$$" EXIT
err_file=.git/ctags.err
if ctags --tag-relative -Rf.git/tags.$$ --exclude=.git "$@" 2>${err_file}; then
  mv .git/tags.$$ .git/tags
  [ -e ${err_file} ] && rm ${err_file}
else
  # Ignore STDERR unless `ctags` returned a non-zero exit code
  cat ${err_file}
fi

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
overcommit-0.5.0 bin/scripts/index-tags
overcommit-0.4.1 bin/scripts/index-tags
overcommit-0.4.0 bin/scripts/index-tags
overcommit-0.3.2 bin/scripts/index-tags
overcommit-0.3.1 bin/scripts/index-tags
overcommit-0.3.0 bin/scripts/index-tags
overcommit-0.2.6 bin/scripts/index-tags
overcommit-0.2.5 bin/scripts/index-tags
overcommit-0.2.4 bin/scripts/index-tags
overcommit-0.2.3 bin/scripts/index-tags
overcommit-0.2.2 bin/scripts/index-tags
overcommit-0.2.1 bin/scripts/index-tags
overcommit-0.2.0 bin/scripts/index-tags
overcommit-0.1.11 bin/scripts/index-tags
overcommit-0.1.10 bin/scripts/index-tags
overcommit-0.1.9 bin/scripts/index-tags
overcommit-0.1.8 bin/scripts/index-tags
overcommit-0.1.7 bin/scripts/index-tags
overcommit-0.1.6 bin/scripts/index-tags
overcommit-0.1.5 bin/scripts/index-tags