{"action":"opened","number":1227,"pull_request":{"url":"https://api.github.com/repos/emacs-helm/helm/pulls/1227","id":47994240,"html_url":"https://github.com/emacs-helm/helm/pull/1227","diff_url":"https://github.com/emacs-helm/helm/pull/1227.diff","patch_url":"https://github.com/emacs-helm/helm/pull/1227.patch","issue_url":"https://api.github.com/repos/emacs-helm/helm/issues/1227","number":1227,"state":"open","locked":false,"title":"Customize updatedb function","user":{"login":"igorepst","id":1630792,"avatar_url":"https://avatars.githubusercontent.com/u/1630792?v=3","gravatar_id":"","url":"https://api.github.com/users/igorepst","html_url":"https://github.com/igorepst","followers_url":"https://api.github.com/users/igorepst/followers","following_url":"https://api.github.com/users/igorepst/following{/other_user}","gists_url":"https://api.github.com/users/igorepst/gists{/gist_id}","starred_url":"https://api.github.com/users/igorepst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igorepst/subscriptions","organizations_url":"https://api.github.com/users/igorepst/orgs","repos_url":"https://api.github.com/users/igorepst/repos","events_url":"https://api.github.com/users/igorepst/events{/privacy}","received_events_url":"https://api.github.com/users/igorepst/received_events","type":"User","site_admin":false},"body":"As GNU `updatedb` doesn't have an option of `prunenames`, users should use `prunepaths` only to exclude some paths from being scanned into the DB. The proposed PR brings `helm-locate-create-db-function` and adds an option to redefine it, by default using `format` like it was until now. Hence the user has an option to write something like the following:\r\n\r\n```\r\n(defun ig-helm-locate-create-db-function (db-name directory)\r\n  (format helm-locate-create-db-command db-name directory\r\n\t  (expand-file-name \".git\" directory)))\r\n\r\n(setq helm-locate-create-db-command\r\n\t\t\"updatedb --output=%s --localpaths='%s' −−prunepaths='%s'\")\r\n(setq helm-locate-create-db-function\r\n\t      #'ig-helm-locate-create-db-function)\r\n```","created_at":"2015-10-17T20:09:16Z","updated_at":"2015-10-17T20:09:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/emacs-helm/helm/pulls/1227/commits","review_comments_url":"https://api.github.com/repos/emacs-helm/helm/pulls/1227/comments","review_comment_url":"https://api.github.com/repos/emacs-helm/helm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/emacs-helm/helm/issues/1227/comments","statuses_url":"https://api.github.com/repos/emacs-helm/helm/statuses/cb62cf09038a4e1f9f8a5bef0230b9341d9285fe","head":{"label":"igorepst:updatedb_add_args","ref":"updatedb_add_args","sha":"cb62cf09038a4e1f9f8a5bef0230b9341d9285fe","user":{"login":"igorepst","id":1630792,"avatar_url":"https://avatars.githubusercontent.com/u/1630792?v=3","gravatar_id":"","url":"https://api.github.com/users/igorepst","html_url":"https://github.com/igorepst","followers_url":"https://api.github.com/users/igorepst/followers","following_url":"https://api.github.com/users/igorepst/following{/other_user}","gists_url":"https://api.github.com/users/igorepst/gists{/gist_id}","starred_url":"https://api.github.com/users/igorepst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igorepst/subscriptions","organizations_url":"https://api.github.com/users/igorepst/orgs","repos_url":"https://api.github.com/users/igorepst/repos","events_url":"https://api.github.com/users/igorepst/events{/privacy}","received_events_url":"https://api.github.com/users/igorepst/received_events","type":"User","site_admin":false},"repo":{"id":44447866,"name":"helm","full_name":"igorepst/helm","owner":{"login":"igorepst","id":1630792,"avatar_url":"https://avatars.githubusercontent.com/u/1630792?v=3","gravatar_id":"","url":"https://api.github.com/users/igorepst","html_url":"https://github.com/igorepst","followers_url":"https://api.github.com/users/igorepst/followers","following_url":"https://api.github.com/users/igorepst/following{/other_user}","gists_url":"https://api.github.com/users/igorepst/gists{/gist_id}","starred_url":"https://api.github.com/users/igorepst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igorepst/subscriptions","organizations_url":"https://api.github.com/users/igorepst/orgs","repos_url":"https://api.github.com/users/igorepst/repos","events_url":"https://api.github.com/users/igorepst/events{/privacy}","received_events_url":"https://api.github.com/users/igorepst/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/igorepst/helm","description":"Emacs incremental completion and selection narrowing framework","fork":true,"url":"https://api.github.com/repos/igorepst/helm","forks_url":"https://api.github.com/repos/igorepst/helm/forks","keys_url":"https://api.github.com/repos/igorepst/helm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/igorepst/helm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/igorepst/helm/teams","hooks_url":"https://api.github.com/repos/igorepst/helm/hooks","issue_events_url":"https://api.github.com/repos/igorepst/helm/issues/events{/number}","events_url":"https://api.github.com/repos/igorepst/helm/events","assignees_url":"https://api.github.com/repos/igorepst/helm/assignees{/user}","branches_url":"https://api.github.com/repos/igorepst/helm/branches{/branch}","tags_url":"https://api.github.com/repos/igorepst/helm/tags","blobs_url":"https://api.github.com/repos/igorepst/helm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/igorepst/helm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/igorepst/helm/git/refs{/sha}","trees_url":"https://api.github.com/repos/igorepst/helm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/igorepst/helm/statuses/{sha}","languages_url":"https://api.github.com/repos/igorepst/helm/languages","stargazers_url":"https://api.github.com/repos/igorepst/helm/stargazers","contributors_url":"https://api.github.com/repos/igorepst/helm/contributors","subscribers_url":"https://api.github.com/repos/igorepst/helm/subscribers","subscription_url":"https://api.github.com/repos/igorepst/helm/subscription","commits_url":"https://api.github.com/repos/igorepst/helm/commits{/sha}","git_commits_url":"https://api.github.com/repos/igorepst/helm/git/commits{/sha}","comments_url":"https://api.github.com/repos/igorepst/helm/comments{/number}","issue_comment_url":"https://api.github.com/repos/igorepst/helm/issues/comments{/number}","contents_url":"https://api.github.com/repos/igorepst/helm/contents/{+path}","compare_url":"https://api.github.com/repos/igorepst/helm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/igorepst/helm/merges","archive_url":"https://api.github.com/repos/igorepst/helm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/igorepst/helm/downloads","issues_url":"https://api.github.com/repos/igorepst/helm/issues{/number}","pulls_url":"https://api.github.com/repos/igorepst/helm/pulls{/number}","milestones_url":"https://api.github.com/repos/igorepst/helm/milestones{/number}","notifications_url":"https://api.github.com/repos/igorepst/helm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/igorepst/helm/labels{/name}","releases_url":"https://api.github.com/repos/igorepst/helm/releases{/id}","created_at":"2015-10-17T17:46:30Z","updated_at":"2015-10-17T17:46:35Z","pushed_at":"2015-10-17T19:57:33Z","git_url":"git://github.com/igorepst/helm.git","ssh_url":"git@github.com:igorepst/helm.git","clone_url":"https://github.com/igorepst/helm.git","svn_url":"https://github.com/igorepst/helm","homepage":"https://emacs-helm.github.io/helm/","size":21127,"stargazers_count":0,"watchers_count":0,"language":"Emacs Lisp","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"emacs-helm:master","ref":"master","sha":"f95edebe4a5e74136001a83b26612ea9e1689b70","user":{"login":"emacs-helm","id":1541688,"avatar_url":"https://avatars.githubusercontent.com/u/1541688?v=3","gravatar_id":"","url":"https://api.github.com/users/emacs-helm","html_url":"https://github.com/emacs-helm","followers_url":"https://api.github.com/users/emacs-helm/followers","following_url":"https://api.github.com/users/emacs-helm/following{/other_user}","gists_url":"https://api.github.com/users/emacs-helm/gists{/gist_id}","starred_url":"https://api.github.com/users/emacs-helm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emacs-helm/subscriptions","organizations_url":"https://api.github.com/users/emacs-helm/orgs","repos_url":"https://api.github.com/users/emacs-helm/repos","events_url":"https://api.github.com/users/emacs-helm/events{/privacy}","received_events_url":"https://api.github.com/users/emacs-helm/received_events","type":"Organization","site_admin":false},"repo":{"id":3727706,"name":"helm","full_name":"emacs-helm/helm","owner":{"login":"emacs-helm","id":1541688,"avatar_url":"https://avatars.githubusercontent.com/u/1541688?v=3","gravatar_id":"","url":"https://api.github.com/users/emacs-helm","html_url":"https://github.com/emacs-helm","followers_url":"https://api.github.com/users/emacs-helm/followers","following_url":"https://api.github.com/users/emacs-helm/following{/other_user}","gists_url":"https://api.github.com/users/emacs-helm/gists{/gist_id}","starred_url":"https://api.github.com/users/emacs-helm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emacs-helm/subscriptions","organizations_url":"https://api.github.com/users/emacs-helm/orgs","repos_url":"https://api.github.com/users/emacs-helm/repos","events_url":"https://api.github.com/users/emacs-helm/events{/privacy}","received_events_url":"https://api.github.com/users/emacs-helm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/emacs-helm/helm","description":"Emacs incremental completion and selection narrowing framework","fork":false,"url":"https://api.github.com/repos/emacs-helm/helm","forks_url":"https://api.github.com/repos/emacs-helm/helm/forks","keys_url":"https://api.github.com/repos/emacs-helm/helm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/emacs-helm/helm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/emacs-helm/helm/teams","hooks_url":"https://api.github.com/repos/emacs-helm/helm/hooks","issue_events_url":"https://api.github.com/repos/emacs-helm/helm/issues/events{/number}","events_url":"https://api.github.com/repos/emacs-helm/helm/events","assignees_url":"https://api.github.com/repos/emacs-helm/helm/assignees{/user}","branches_url":"https://api.github.com/repos/emacs-helm/helm/branches{/branch}","tags_url":"https://api.github.com/repos/emacs-helm/helm/tags","blobs_url":"https://api.github.com/repos/emacs-helm/helm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/emacs-helm/helm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/emacs-helm/helm/git/refs{/sha}","trees_url":"https://api.github.com/repos/emacs-helm/helm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/emacs-helm/helm/statuses/{sha}","languages_url":"https://api.github.com/repos/emacs-helm/helm/languages","stargazers_url":"https://api.github.com/repos/emacs-helm/helm/stargazers","contributors_url":"https://api.github.com/repos/emacs-helm/helm/contributors","subscribers_url":"https://api.github.com/repos/emacs-helm/helm/subscribers","subscription_url":"https://api.github.com/repos/emacs-helm/helm/subscription","commits_url":"https://api.github.com/repos/emacs-helm/helm/commits{/sha}","git_commits_url":"https://api.github.com/repos/emacs-helm/helm/git/commits{/sha}","comments_url":"https://api.github.com/repos/emacs-helm/helm/comments{/number}","issue_comment_url":"https://api.github.com/repos/emacs-helm/helm/issues/comments{/number}","contents_url":"https://api.github.com/repos/emacs-helm/helm/contents/{+path}","compare_url":"https://api.github.com/repos/emacs-helm/helm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/emacs-helm/helm/merges","archive_url":"https://api.github.com/repos/emacs-helm/helm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/emacs-helm/helm/downloads","issues_url":"https://api.github.com/repos/emacs-helm/helm/issues{/number}","pulls_url":"https://api.github.com/repos/emacs-helm/helm/pulls{/number}","milestones_url":"https://api.github.com/repos/emacs-helm/helm/milestones{/number}","notifications_url":"https://api.github.com/repos/emacs-helm/helm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/emacs-helm/helm/labels{/name}","releases_url":"https://api.github.com/repos/emacs-helm/helm/releases{/id}","created_at":"2012-03-15T11:50:18Z","updated_at":"2015-10-16T18:18:12Z","pushed_at":"2015-10-17T19:53:44Z","git_url":"git://github.com/emacs-helm/helm.git","ssh_url":"git@github.com:emacs-helm/helm.git","clone_url":"https://github.com/emacs-helm/helm.git","svn_url":"https://github.com/emacs-helm/helm","homepage":"https://emacs-helm.github.io/helm/","size":31147,"stargazers_count":1214,"watchers_count":1214,"language":"Emacs Lisp","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":158,"mirror_url":null,"open_issues_count":8,"forks":158,"open_issues":8,"watchers":1214,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/emacs-helm/helm/pulls/1227"},"html":{"href":"https://github.com/emacs-helm/helm/pull/1227"},"issue":{"href":"https://api.github.com/repos/emacs-helm/helm/issues/1227"},"comments":{"href":"https://api.github.com/repos/emacs-helm/helm/issues/1227/comments"},"review_comments":{"href":"https://api.github.com/repos/emacs-helm/helm/pulls/1227/comments"},"review_comment":{"href":"https://api.github.com/repos/emacs-helm/helm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/emacs-helm/helm/pulls/1227/commits"},"statuses":{"href":"https://api.github.com/repos/emacs-helm/helm/statuses/cb62cf09038a4e1f9f8a5bef0230b9341d9285fe"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":19,"deletions":6,"changed_files":1}}