[PATCH] Alternative filename for local configuration.

Jacek Migacz <[email protected]>
Newsgroups gmane.comp.gnu.global.bugs
Message-ID <CANjh=C_wfKVOnG_VFk8qanXQ5z70+rVBY6dTg0Y+KXZb=w25uQ@mail.gmail.com>
Hi Shiyao-san,

would you consider checking for alternative local configuration filename:
".gtags.conf"?

Regards,
-- 
Jacek Migacz

_______________________________________________
Bug-global mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-global
dotgtagsconf.patch (text/x-patch, 743 B)
Index: libutil/conf.c
===================================================================
RCS file: /sources/global/global/libutil/conf.c,v
retrieving revision 1.71
diff -u -r1.71 conf.c
--- libutil/conf.c	22 Mar 2016 03:09:15 -0000	1.71
+++ libutil/conf.c	6 Mar 2017 16:59:24 -0000
@@ -240,6 +240,8 @@
 	 */
 	else if (rootdir && *rootdir && test("r", makepath(rootdir, "gtags.conf", NULL)))
 		strbuf_puts(sb, makepath(rootdir, "gtags.conf", NULL));
+	else if (rootdir && *rootdir && test("r", makepath(rootdir, ".gtags.conf", NULL)))
+		strbuf_puts(sb, makepath(rootdir, ".gtags.conf", NULL));
 	else if ((p = get_home_directory()) && test("r", makepath(p, GTAGSRC, NULL)))
 		strbuf_puts(sb, makepath(p, GTAGSRC, NULL));
 #ifdef __DJGPP__
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.