{"action":"created","issue":{"url":"https://api.github.com/repos/tiesselune/git-jam/issues/11","labels_url":"https://api.github.com/repos/tiesselune/git-jam/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/tiesselune/git-jam/issues/11/comments","events_url":"https://api.github.com/repos/tiesselune/git-jam/issues/11/events","html_url":"https://github.com/tiesselune/git-jam/issues/11","id":107877364,"number":11,"title":"When resetting added file, Jam data stays in \"toSyncJam\"","user":{"login":"tiesselune","id":2751491,"avatar_url":"https://avatars.githubusercontent.com/u/2751491?v=3","gravatar_id":"","url":"https://api.github.com/users/tiesselune","html_url":"https://github.com/tiesselune","followers_url":"https://api.github.com/users/tiesselune/followers","following_url":"https://api.github.com/users/tiesselune/following{/other_user}","gists_url":"https://api.github.com/users/tiesselune/gists{/gist_id}","starred_url":"https://api.github.com/users/tiesselune/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiesselune/subscriptions","organizations_url":"https://api.github.com/users/tiesselune/orgs","repos_url":"https://api.github.com/users/tiesselune/repos","events_url":"https://api.github.com/users/tiesselune/events{/privacy}","received_events_url":"https://api.github.com/users/tiesselune/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tiesselune/git-jam/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"tiesselune","id":2751491,"avatar_url":"https://avatars.githubusercontent.com/u/2751491?v=3","gravatar_id":"","url":"https://api.github.com/users/tiesselune","html_url":"https://github.com/tiesselune","followers_url":"https://api.github.com/users/tiesselune/followers","following_url":"https://api.github.com/users/tiesselune/following{/other_user}","gists_url":"https://api.github.com/users/tiesselune/gists{/gist_id}","starred_url":"https://api.github.com/users/tiesselune/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiesselune/subscriptions","organizations_url":"https://api.github.com/users/tiesselune/orgs","repos_url":"https://api.github.com/users/tiesselune/repos","events_url":"https://api.github.com/users/tiesselune/events{/privacy}","received_events_url":"https://api.github.com/users/tiesselune/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/tiesselune/git-jam/milestones/1","html_url":"https://github.com/tiesselune/git-jam/milestones/Version%200.2.0","labels_url":"https://api.github.com/repos/tiesselune/git-jam/milestones/1/labels","id":1320044,"number":1,"title":"Version 0.2.0","description":"Bug fixes on existing code\r\nEnhancements of backend programming\r\nAdd configurable compression for storing jam files\r\nPush/Pull advancement status","creator":{"login":"tiesselune","id":2751491,"avatar_url":"https://avatars.githubusercontent.com/u/2751491?v=3","gravatar_id":"","url":"https://api.github.com/users/tiesselune","html_url":"https://github.com/tiesselune","followers_url":"https://api.github.com/users/tiesselune/followers","following_url":"https://api.github.com/users/tiesselune/following{/other_user}","gists_url":"https://api.github.com/users/tiesselune/gists{/gist_id}","starred_url":"https://api.github.com/users/tiesselune/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiesselune/subscriptions","organizations_url":"https://api.github.com/users/tiesselune/orgs","repos_url":"https://api.github.com/users/tiesselune/repos","events_url":"https://api.github.com/users/tiesselune/events{/privacy}","received_events_url":"https://api.github.com/users/tiesselune/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":1,"state":"open","created_at":"2015-09-23T09:21:11Z","updated_at":"2015-09-25T15:38:21Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-09-23T09:09:43Z","updated_at":"2015-09-26T17:09:49Z","closed_at":null,"body":"When adding a file to git index, then resetting it out of the index, the file sha-1 stays in the \"toSyncJam\" file, and thus is pushed on next `git jam push`, when it's not even commited. \r\n\r\nResseting files should remove sha-1s from that file."},"comment":{"url":"https://api.github.com/repos/tiesselune/git-jam/issues/comments/143470345","html_url":"https://github.com/tiesselune/git-jam/issues/11#issuecomment-143470345","issue_url":"https://api.github.com/repos/tiesselune/git-jam/issues/11","id":143470345,"user":{"login":"tiesselune","id":2751491,"avatar_url":"https://avatars.githubusercontent.com/u/2751491?v=3","gravatar_id":"","url":"https://api.github.com/users/tiesselune","html_url":"https://github.com/tiesselune","followers_url":"https://api.github.com/users/tiesselune/followers","following_url":"https://api.github.com/users/tiesselune/following{/other_user}","gists_url":"https://api.github.com/users/tiesselune/gists{/gist_id}","starred_url":"https://api.github.com/users/tiesselune/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiesselune/subscriptions","organizations_url":"https://api.github.com/users/tiesselune/orgs","repos_url":"https://api.github.com/users/tiesselune/repos","events_url":"https://api.github.com/users/tiesselune/events{/privacy}","received_events_url":"https://api.github.com/users/tiesselune/received_events","type":"User","site_admin":false},"created_at":"2015-09-26T17:09:49Z","updated_at":"2015-09-26T17:09:49Z","body":"**There seems to be no way of knowing when a file is reset from the index**. Which means that files WILL be copied on `git add`in the `jam` repository.\r\n\r\n**In order to avoid pushing unecessary jam files to the remote,** we could use the `pre-push` hook to only push jam files that are being pushed in a commit. \r\n\r\nBy default (without the pre-push hook) everything will be pushed.\r\n\r\nWhich means there should be a way to GC the jam folder at any moment, by implementing a manual `git jam gc` command, to clean the local jam repository, and avoid pushing unnecessary files when the hook is not set up."}}