{"action":"created","issue":{"url":"https://api.github.com/repos/leoliu/ggtags/issues/91","labels_url":"https://api.github.com/repos/leoliu/ggtags/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/leoliu/ggtags/issues/91/comments","events_url":"https://api.github.com/repos/leoliu/ggtags/issues/91/events","html_url":"https://github.com/leoliu/ggtags/issues/91","id":60091255,"number":91,"title":"switching between GTAGS","user":{"login":"vvv","id":17462,"avatar_url":"https://avatars.githubusercontent.com/u/17462?v=3","gravatar_id":"","url":"https://api.github.com/users/vvv","html_url":"https://github.com/vvv","followers_url":"https://api.github.com/users/vvv/followers","following_url":"https://api.github.com/users/vvv/following{/other_user}","gists_url":"https://api.github.com/users/vvv/gists{/gist_id}","starred_url":"https://api.github.com/users/vvv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vvv/subscriptions","organizations_url":"https://api.github.com/users/vvv/orgs","repos_url":"https://api.github.com/users/vvv/repos","events_url":"https://api.github.com/users/vvv/events{/privacy}","received_events_url":"https://api.github.com/users/vvv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-06T11:35:37Z","updated_at":"2015-03-06T12:22:40Z","closed_at":null,"body":"I have two directories, which the same git repository is cloned into. One directory (`~/m/`) has a feature branch checked out, another directory (`~/a/`) — the master branch.\r\n\r\n```\r\n~/\r\n \\_ m/\r\n \\_ a/\r\n```\r\n\r\nMost of the time I navigate tags in the former directory. But sometimes I need to open a source file in the second directory and navigate the tags there. So I expect ggtags to use the second set of tags — `a/GTAGS`. Unfortunately, when I `M-.` an identifier in `a/` directory, ggtags jumps to the definition in `m/` directory.\r\n\r\nVanilla `gtags-mode` does the right thing in this situation: it jumps to the definition in `a/` directory."},"comment":{"url":"https://api.github.com/repos/leoliu/ggtags/issues/comments/77551151","html_url":"https://github.com/leoliu/ggtags/issues/91#issuecomment-77551151","issue_url":"https://api.github.com/repos/leoliu/ggtags/issues/91","id":77551151,"user":{"login":"vvv","id":17462,"avatar_url":"https://avatars.githubusercontent.com/u/17462?v=3","gravatar_id":"","url":"https://api.github.com/users/vvv","html_url":"https://github.com/vvv","followers_url":"https://api.github.com/users/vvv/followers","following_url":"https://api.github.com/users/vvv/following{/other_user}","gists_url":"https://api.github.com/users/vvv/gists{/gist_id}","starred_url":"https://api.github.com/users/vvv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vvv/subscriptions","organizations_url":"https://api.github.com/users/vvv/orgs","repos_url":"https://api.github.com/users/vvv/repos","events_url":"https://api.github.com/users/vvv/events{/privacy}","received_events_url":"https://api.github.com/users/vvv/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T12:22:40Z","updated_at":"2015-03-06T12:22:40Z","body":"I've come up with a workaround: `(setq ggtags-project-duration 30)`.\r\nIt works so far, but I suspect there should be a better solution.\r\n\r\nThis workaround forces `ggtags-find-project` to [execute](https://github.com/leoliu/ggtags/blob/master/ggtags.el#L533) 'global -pr' command."}}