[libvirt] [PATCH] maint: Make ctags work out of the box

The .ctags file specifies default options for ctags so that it does not ignore libvirt.h.in and ignores uninteresting files. As a result, you can just run "ctags" and navigating to a public API won't get you to a useless entry in api.html. --- .ctags | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .ctags diff --git a/.ctags b/.ctags new file mode 100644 index 0000000..75e9753 --- /dev/null +++ b/.ctags @@ -0,0 +1,5 @@ +--recurse +--exclude=*.orig +--exclude=*.html +--exclude=*.html.in +--langmap=c:+.h.in -- 1.8.3.2

On 07/17/2013 05:10 AM, Jiri Denemark wrote:
The .ctags file specifies default options for ctags so that it does not ignore libvirt.h.in and ignores uninteresting files. As a result, you can just run "ctags" and navigating to a public API won't get you to a useless entry in api.html. --- .ctags | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .ctags
ACK - having this file doesn't hurt anyone that doesn't use ctags, and helps those that do. Hmm, should this file also be part of EXTRA_DIST?
diff --git a/.ctags b/.ctags new file mode 100644 index 0000000..75e9753 --- /dev/null +++ b/.ctags @@ -0,0 +1,5 @@ +--recurse +--exclude=*.orig +--exclude=*.html +--exclude=*.html.in +--langmap=c:+.h.in
-- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

On Wed, Jul 17, 2013 at 05:33:00 -0600, Eric Blake wrote:
On 07/17/2013 05:10 AM, Jiri Denemark wrote:
The .ctags file specifies default options for ctags so that it does not ignore libvirt.h.in and ignores uninteresting files. As a result, you can just run "ctags" and navigating to a public API won't get you to a useless entry in api.html. --- .ctags | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .ctags
ACK - having this file doesn't hurt anyone that doesn't use ctags, and helps those that do. Hmm, should this file also be part of EXTRA_DIST?
I don't think it needs to be in EXTRA_DIST since this is mostly aimed at people that wants to hack something in libvirt and that's what git should be used for :-) I pushed the patch. Jirka
participants (2)
-
Eric Blake
-
Jiri Denemark