{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/10176","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/10176/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/10176/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/10176/events","html_url":"https://github.com/NixOS/nixpkgs/pull/10176","id":109430715,"number":10176,"title":"Rewrite `fetchgitLocal`","user":{"login":"Ericson2314","id":1055245,"avatar_url":"https://avatars.githubusercontent.com/u/1055245?v=3","gravatar_id":"","url":"https://api.github.com/users/Ericson2314","html_url":"https://github.com/Ericson2314","followers_url":"https://api.github.com/users/Ericson2314/followers","following_url":"https://api.github.com/users/Ericson2314/following{/other_user}","gists_url":"https://api.github.com/users/Ericson2314/gists{/gist_id}","starred_url":"https://api.github.com/users/Ericson2314/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ericson2314/subscriptions","organizations_url":"https://api.github.com/users/Ericson2314/orgs","repos_url":"https://api.github.com/users/Ericson2314/repos","events_url":"https://api.github.com/users/Ericson2314/events{/privacy}","received_events_url":"https://api.github.com/users/Ericson2314/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-02T05:09:25Z","updated_at":"2015-10-08T00:17:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/10176","html_url":"https://github.com/NixOS/nixpkgs/pull/10176","diff_url":"https://github.com/NixOS/nixpkgs/pull/10176.diff","patch_url":"https://github.com/NixOS/nixpkgs/pull/10176.patch"},"body":"For practical purposes, here are the changes in behavior:\r\n\r\n - When fetching from a subdirectory of a repo, do not rebuild because of\r\n   changes elsewhere in the repo\r\n - Fetch (not-ignored) untracked files too\r\n\r\nIt does this by letting git hash and export the directory in question, which I believes makes for a cleaner implementation than the ad-hoc copying and hashing that was there before.\r\n\r\nWe have multiple library in our repo (see https://github.com/unisonweb/platform/blob/master/env.nix) and it was very annoying to needless rebuild everything if anything changes.\r\n\r\n@pchiusano"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/146375151","html_url":"https://github.com/NixOS/nixpkgs/pull/10176#issuecomment-146375151","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/10176","id":146375151,"user":{"login":"puffnfresh","id":37715,"avatar_url":"https://avatars.githubusercontent.com/u/37715?v=3","gravatar_id":"","url":"https://api.github.com/users/puffnfresh","html_url":"https://github.com/puffnfresh","followers_url":"https://api.github.com/users/puffnfresh/followers","following_url":"https://api.github.com/users/puffnfresh/following{/other_user}","gists_url":"https://api.github.com/users/puffnfresh/gists{/gist_id}","starred_url":"https://api.github.com/users/puffnfresh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puffnfresh/subscriptions","organizations_url":"https://api.github.com/users/puffnfresh/orgs","repos_url":"https://api.github.com/users/puffnfresh/repos","events_url":"https://api.github.com/users/puffnfresh/events{/privacy}","received_events_url":"https://api.github.com/users/puffnfresh/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T00:17:54Z","updated_at":"2015-10-08T00:17:54Z","body":"I like it :+1: "}}