{"action":"created","issue":{"url":"https://api.github.com/repos/libgit2/libgit2/issues/3040","labels_url":"https://api.github.com/repos/libgit2/libgit2/issues/3040/labels{/name}","comments_url":"https://api.github.com/repos/libgit2/libgit2/issues/3040/comments","events_url":"https://api.github.com/repos/libgit2/libgit2/issues/3040/events","html_url":"https://github.com/libgit2/libgit2/pull/3040","id":67709171,"number":3040,"title":"Detect Git for windows Git root directory","user":{"login":"csware","id":428133,"avatar_url":"https://avatars.githubusercontent.com/u/428133?v=3","gravatar_id":"","url":"https://api.github.com/users/csware","html_url":"https://github.com/csware","followers_url":"https://api.github.com/users/csware/followers","following_url":"https://api.github.com/users/csware/following{/other_user}","gists_url":"https://api.github.com/users/csware/gists{/gist_id}","starred_url":"https://api.github.com/users/csware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csware/subscriptions","organizations_url":"https://api.github.com/users/csware/orgs","repos_url":"https://api.github.com/users/csware/repos","events_url":"https://api.github.com/users/csware/events{/privacy}","received_events_url":"https://api.github.com/users/csware/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":34,"created_at":"2015-04-11T00:17:34Z","updated_at":"2015-04-20T09:54:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/libgit2/libgit2/pulls/3040","html_url":"https://github.com/libgit2/libgit2/pull/3040","diff_url":"https://github.com/libgit2/libgit2/pull/3040.diff","patch_url":"https://github.com/libgit2/libgit2/pull/3040.patch"},"body":"The https://git-for-windows.github.io package uses a different directory structure compared to msysgit and also providfes a 64-bit installer which is not handles correctly right now."},"comment":{"url":"https://api.github.com/repos/libgit2/libgit2/issues/comments/94411265","html_url":"https://github.com/libgit2/libgit2/pull/3040#issuecomment-94411265","issue_url":"https://api.github.com/repos/libgit2/libgit2/issues/3040","id":94411265,"user":{"login":"sschuberth","id":349154,"avatar_url":"https://avatars.githubusercontent.com/u/349154?v=3","gravatar_id":"","url":"https://api.github.com/users/sschuberth","html_url":"https://github.com/sschuberth","followers_url":"https://api.github.com/users/sschuberth/followers","following_url":"https://api.github.com/users/sschuberth/following{/other_user}","gists_url":"https://api.github.com/users/sschuberth/gists{/gist_id}","starred_url":"https://api.github.com/users/sschuberth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sschuberth/subscriptions","organizations_url":"https://api.github.com/users/sschuberth/orgs","repos_url":"https://api.github.com/users/sschuberth/repos","events_url":"https://api.github.com/users/sschuberth/events{/privacy}","received_events_url":"https://api.github.com/users/sschuberth/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T09:54:51Z","updated_at":"2015-04-20T09:54:51Z","body":"> Sorry, but that prefix variable is the very same, whether you refer to the Makefile or any help page. The prefix is where Git is installed.\r\n\r\nI know that. But users of Git for Windows that do not build Git from sources do not. Just free your mind from your Unix knowlegde and read through the `git-config` help page. You'd have no idea what `prefix` is in that case.\r\n\r\n> Instead, %PROGRAMDATA%\\<app-name> is the directory that has any files related to the application.\r\n\r\nAgreed. But the application is also free to decide on the directory layout *within that directory*.\r\n\r\n> We let an implementation detail seep through to the end user.\r\n\r\nIMO the comparison to the msysGit wording is a poor one. What's bad about the wording is not so much that it seeps an implementation detail to the user, but that it puts the words \"msys\" and \"Git\" in wrong context: Our Git was never built against MSYS, no matter how much details you know about the implementation.\r\n\r\n> \"Oh, Git is mainly developed on Unix, where etc/ has a special meaning that it does not have on Windows\"\r\n\r\nWhy do Windows users have to know what special meaning `etc` has on Unix in order to be happy with the `%ProgramData%\\Git\\etc` directory? They don't need to know. From their point of view `etc` is just as good as `etcetera` or `config`.\r\n\r\nI do not insist on using `%ProgramData%\\Git\\etc`, but I have a preference for it. Using that additional directory level also gives us a better chance at structuring our files in case we ever want to put more (non-config related) files there.\r\n"}}