{"action":"created","issue":{"url":"https://api.github.com/repos/tools/godep/issues/472","repository_url":"https://api.github.com/repos/tools/godep","labels_url":"https://api.github.com/repos/tools/godep/issues/472/labels{/name}","comments_url":"https://api.github.com/repos/tools/godep/issues/472/comments","events_url":"https://api.github.com/repos/tools/godep/issues/472/events","html_url":"https://github.com/tools/godep/issues/472","id":155365230,"number":472,"title":"Godep doesn't remove staged and unstaged code in dependencies","user":{"login":"trungng92","id":3420875,"avatar_url":"https://avatars.githubusercontent.com/u/3420875?v=3","gravatar_id":"","url":"https://api.github.com/users/trungng92","html_url":"https://github.com/trungng92","followers_url":"https://api.github.com/users/trungng92/followers","following_url":"https://api.github.com/users/trungng92/following{/other_user}","gists_url":"https://api.github.com/users/trungng92/gists{/gist_id}","starred_url":"https://api.github.com/users/trungng92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trungng92/subscriptions","organizations_url":"https://api.github.com/users/trungng92/orgs","repos_url":"https://api.github.com/users/trungng92/repos","events_url":"https://api.github.com/users/trungng92/events{/privacy}","received_events_url":"https://api.github.com/users/trungng92/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-17T21:22:37Z","updated_at":"2016-05-18T21:08:21Z","closed_at":null,"body":"I'm not sure if this is a bug/feature, and it's not a big deal. `godep restore` only does a `git checkout {{commit}}`, but if you make code changes to the repo of the dependency, it doesn't clear out these changes (which can be good and bad).\r\n\r\nI know you shouldn't really make any changes to the code in the dependencies. I was only adding in print statements to help debug, and now that I no longer need the print statements, it would be nice if godep had a way to undo these print statements (and any other changes I made).\r\n\r\nThere could be an option like `godep restore --clean` or `godep restore clean` that does a\r\n```\r\ngit reset --hard\r\ngit clean -f -d\r\n```\r\nin addition to the `git checkout {{commit}}`."},"comment":{"url":"https://api.github.com/repos/tools/godep/issues/comments/220158670","html_url":"https://github.com/tools/godep/issues/472#issuecomment-220158670","issue_url":"https://api.github.com/repos/tools/godep/issues/472","id":220158670,"user":{"login":"freeformz","id":103,"avatar_url":"https://avatars.githubusercontent.com/u/103?v=3","gravatar_id":"","url":"https://api.github.com/users/freeformz","html_url":"https://github.com/freeformz","followers_url":"https://api.github.com/users/freeformz/followers","following_url":"https://api.github.com/users/freeformz/following{/other_user}","gists_url":"https://api.github.com/users/freeformz/gists{/gist_id}","starred_url":"https://api.github.com/users/freeformz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freeformz/subscriptions","organizations_url":"https://api.github.com/users/freeformz/orgs","repos_url":"https://api.github.com/users/freeformz/repos","events_url":"https://api.github.com/users/freeformz/events{/privacy}","received_events_url":"https://api.github.com/users/freeformz/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T21:08:21Z","updated_at":"2016-05-18T21:08:21Z","body":"You can (and arguably should) do those change in a branch and commit them. `git checkout {{commit}}` would then work. Why not modify your vendored copy?"}}