# HG changeset patch # User Meredith Howard # Date 1441569649 14400 # Node ID a4b45bcb4ba9b9f6f9cd5699fee5032f469170ea # Parent 85a414f67356935a433a34ddbf5a43fcc783cbbb add ctags helper and alias diff --git a/.hg_helpers/ctags b/.hg_helpers/ctags new file mode 100755 --- /dev/null +++ b/.hg_helpers/ctags @@ -0,0 +1,39 @@ +#!/usr/bin/env ruby + +# Meant for use as a git hook: +# CTAGS_HOOK=1 .git/hooks/ctags &>/dev/null 60 + end + + system( <<-CMD ) or exit $?.exitstatus + hg stat -Aqn \ + | #{ctags} --tag-relative -L - -f"#{tmp}" #{opts} \ + && mv #{tmp} #{target} + CMD +end + + + diff --git a/.hgrc b/.hgrc --- a/.hgrc +++ b/.hgrc @@ -18,6 +18,7 @@ pager = LESS='FSRX' less [alias] fetch = pull --rebase +ctags = !~/.hg_helpers/ctags [merge-tools] vimdiff.executable = vim