{"action":"closed","issue":{"url":"https://api.github.com/repos/martindrlik/showdup/issues/4","labels_url":"https://api.github.com/repos/martindrlik/showdup/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/martindrlik/showdup/issues/4/comments","events_url":"https://api.github.com/repos/martindrlik/showdup/issues/4/events","html_url":"https://github.com/martindrlik/showdup/issues/4","id":53313986,"number":4,"title":"use only first N bytes","user":{"login":"martindrlik","id":533091,"avatar_url":"https://avatars.githubusercontent.com/u/533091?v=3","gravatar_id":"","url":"https://api.github.com/users/martindrlik","html_url":"https://github.com/martindrlik","followers_url":"https://api.github.com/users/martindrlik/followers","following_url":"https://api.github.com/users/martindrlik/following{/other_user}","gists_url":"https://api.github.com/users/martindrlik/gists{/gist_id}","starred_url":"https://api.github.com/users/martindrlik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martindrlik/subscriptions","organizations_url":"https://api.github.com/users/martindrlik/orgs","repos_url":"https://api.github.com/users/martindrlik/repos","events_url":"https://api.github.com/users/martindrlik/events{/privacy}","received_events_url":"https://api.github.com/users/martindrlik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/martindrlik/showdup/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/martindrlik/showdup/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-03T20:09:43Z","updated_at":"2015-01-04T11:52:25Z","closed_at":"2015-01-04T11:52:25Z","body":"Allow to specify first N bytes as a sufficient evidence of file duplication. If same file size and same first N bytes then report file duplication even if the rest of bytes is different. This dirty check can work just fine in practice.\r\n\r\nI suggest to provide flag `first` to specify N.\r\n```\r\n$ showdup -first=512 .\r\n```\r\nPrefix output:\r\n```\r\n$ showdup -first=512\r\n(first 512) /home/martin/test/1\r\n(first 512) /home/martin/test/2\r\n\r\n$\r\n```"}}