{"action":"created","issue":{"url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/688","labels_url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/688/labels{/name}","comments_url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/688/comments","events_url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/688/events","html_url":"https://github.com/libgit2/libgit2sharp/pull/688","id":32062058,"number":688,"title":"repo.Index.Stage() won't notice a change if it occurs within the same second","user":{"login":"nulltoken","id":92363,"avatar_url":"https://avatars.githubusercontent.com/u/92363?v=3","gravatar_id":"","url":"https://api.github.com/users/nulltoken","html_url":"https://github.com/nulltoken","followers_url":"https://api.github.com/users/nulltoken/followers","following_url":"https://api.github.com/users/nulltoken/following{/other_user}","gists_url":"https://api.github.com/users/nulltoken/gists{/gist_id}","starred_url":"https://api.github.com/users/nulltoken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nulltoken/subscriptions","organizations_url":"https://api.github.com/users/nulltoken/orgs","repos_url":"https://api.github.com/users/nulltoken/repos","events_url":"https://api.github.com/users/nulltoken/events{/privacy}","received_events_url":"https://api.github.com/users/nulltoken/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/libgit2/libgit2sharp/labels/Bug","name":"Bug","color":"e10c02"},{"url":"https://api.github.com/repos/libgit2/libgit2sharp/labels/libgit2","name":"libgit2","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2014-04-23T13:49:50Z","updated_at":"2015-06-17T09:40:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/libgit2/libgit2sharp/pulls/688","html_url":"https://github.com/libgit2/libgit2sharp/pull/688","diff_url":"https://github.com/libgit2/libgit2sharp/pull/688.diff","patch_url":"https://github.com/libgit2/libgit2sharp/pull/688.patch"},"body":"The test below actually fails\r\n\r\n```csharp\r\n[Fact]\r\npublic void CanSuccessfullyStageAModifiedFileOfTheSameSizeWithinTheSameSecond()\r\n{\r\n    string repoPath = InitNewRepository();\r\n\r\n    using (var repo = new Repository(repoPath))\r\n    {\r\n        for (int i = 0; i < 10; i++)\r\n        {\r\n            Touch(repo.Info.WorkingDirectory, \"test.txt\",\r\n                       Guid.NewGuid().ToString());\r\n\r\n            repo.Index.Stage(\"test.txt\");\r\n\r\n            Assert.DoesNotThrow(() => repo.Commit(\r\n                        \"Commit\", Constants.Signature, Constants.Signature));\r\n        } \r\n    }\r\n}\r\n```\r\n\r\nSee this **[SO question](http://stackoverflow.com/questions/23242825/wait-until-commit-operation-is-finished/23246222#23246222)** for some background information."},"comment":{"url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/comments/112737774","html_url":"https://github.com/libgit2/libgit2sharp/pull/688#issuecomment-112737774","issue_url":"https://api.github.com/repos/libgit2/libgit2sharp/issues/688","id":112737774,"user":{"login":"ethomson","id":1130014,"avatar_url":"https://avatars.githubusercontent.com/u/1130014?v=3","gravatar_id":"","url":"https://api.github.com/users/ethomson","html_url":"https://github.com/ethomson","followers_url":"https://api.github.com/users/ethomson/followers","following_url":"https://api.github.com/users/ethomson/following{/other_user}","gists_url":"https://api.github.com/users/ethomson/gists{/gist_id}","starred_url":"https://api.github.com/users/ethomson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethomson/subscriptions","organizations_url":"https://api.github.com/users/ethomson/orgs","repos_url":"https://api.github.com/users/ethomson/repos","events_url":"https://api.github.com/users/ethomson/events{/privacy}","received_events_url":"https://api.github.com/users/ethomson/received_events","type":"User","site_admin":false},"created_at":"2015-06-17T09:40:57Z","updated_at":"2015-06-17T09:40:57Z","body":"Looks like an unrelated failure."}}