{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony-standard/issues/927","labels_url":"https://api.github.com/repos/symfony/symfony-standard/issues/927/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony-standard/issues/927/comments","events_url":"https://api.github.com/repos/symfony/symfony-standard/issues/927/events","html_url":"https://github.com/symfony/symfony-standard/issues/927","id":125612890,"number":927,"title":"Simplify .gitignore (requires Git 2.7.0 or higher)","user":{"login":"nicwortel","id":1055691,"avatar_url":"https://avatars.githubusercontent.com/u/1055691?v=3","gravatar_id":"","url":"https://api.github.com/users/nicwortel","html_url":"https://github.com/nicwortel","followers_url":"https://api.github.com/users/nicwortel/followers","following_url":"https://api.github.com/users/nicwortel/following{/other_user}","gists_url":"https://api.github.com/users/nicwortel/gists{/gist_id}","starred_url":"https://api.github.com/users/nicwortel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicwortel/subscriptions","organizations_url":"https://api.github.com/users/nicwortel/orgs","repos_url":"https://api.github.com/users/nicwortel/repos","events_url":"https://api.github.com/users/nicwortel/events{/privacy}","received_events_url":"https://api.github.com/users/nicwortel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-08T13:25:43Z","updated_at":"2016-01-08T13:36:19Z","closed_at":null,"body":"The latest Git release (2.7.0, released 2016-01-04) makes it easier to un-ignore certain files or directories.\r\n\r\nInstead of the current list of patterns for the `var` directory:\r\n\r\n```\r\n/var/*\r\n!/var/cache\r\n/var/cache/*\r\n!var/cache/.gitkeep\r\n!/var/logs\r\n/var/logs/*\r\n!var/logs/.gitkeep\r\n!/var/sessions\r\n/var/sessions/*\r\n!var/sessions/.gitkeep\r\n!var/SymfonyRequirements.php\r\n```\r\n\r\nthis will suffice:\r\n\r\n```\r\n/var\r\n!/var/cache/.gitkeep\r\n!/var/logs/.gitkeep\r\n!/var/sessions/.gitkeep\r\n!/var/SymfonyRequirements.php\r\n```\r\n\r\n(note that a [bug](http://thread.gmane.org/gmane.comp.version-control.git/283378/focus=283430) prevents this from working if you use `/var/` (with a trailing slash), so for the time being use `/var` instead)\r\n\r\nHow long should we wait before updating the `.gitignore` file (which will only work for Git 2.7.0 or higher)?"},"comment":{"url":"https://api.github.com/repos/symfony/symfony-standard/issues/comments/170005566","html_url":"https://github.com/symfony/symfony-standard/issues/927#issuecomment-170005566","issue_url":"https://api.github.com/repos/symfony/symfony-standard/issues/927","id":170005566,"user":{"login":"Pierstoval","id":3369266,"avatar_url":"https://avatars.githubusercontent.com/u/3369266?v=3","gravatar_id":"","url":"https://api.github.com/users/Pierstoval","html_url":"https://github.com/Pierstoval","followers_url":"https://api.github.com/users/Pierstoval/followers","following_url":"https://api.github.com/users/Pierstoval/following{/other_user}","gists_url":"https://api.github.com/users/Pierstoval/gists{/gist_id}","starred_url":"https://api.github.com/users/Pierstoval/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pierstoval/subscriptions","organizations_url":"https://api.github.com/users/Pierstoval/orgs","repos_url":"https://api.github.com/users/Pierstoval/repos","events_url":"https://api.github.com/users/Pierstoval/events{/privacy}","received_events_url":"https://api.github.com/users/Pierstoval/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T13:36:19Z","updated_at":"2016-01-08T13:36:19Z","body":"Actually, as Git update on Windows is certainly made less often than on Linux, according to the fact that Git 2 was unavailable for Windows for some months after its release (IIRC, I remember I had the problem) , also Debian 7 has only git 1.7 and the backports have only 1.9, I think it's not safe for now, even if I'd love to implement this"}}