{"action":"created","issue":{"url":"https://api.github.com/repos/glandium/git-cinnabar/issues/74","repository_url":"https://api.github.com/repos/glandium/git-cinnabar","labels_url":"https://api.github.com/repos/glandium/git-cinnabar/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/glandium/git-cinnabar/issues/74/comments","events_url":"https://api.github.com/repos/glandium/git-cinnabar/issues/74/events","html_url":"https://github.com/glandium/git-cinnabar/pull/74","id":164233865,"node_id":"MDExOlB1bGxSZXF1ZXN0NzY1NDE3ODI=","number":74,"title":"Give 'git diff-tree' the '-C' option twice to detect exact copying.","user":{"login":"jhlin","id":4125103,"node_id":"MDQ6VXNlcjQxMjUxMDM=","avatar_url":"https://avatars1.githubusercontent.com/u/4125103?v=4","gravatar_id":"","url":"https://api.github.com/users/jhlin","html_url":"https://github.com/jhlin","followers_url":"https://api.github.com/users/jhlin/followers","following_url":"https://api.github.com/users/jhlin/following{/other_user}","gists_url":"https://api.github.com/users/jhlin/gists{/gist_id}","starred_url":"https://api.github.com/users/jhlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhlin/subscriptions","organizations_url":"https://api.github.com/users/jhlin/orgs","repos_url":"https://api.github.com/users/jhlin/repos","events_url":"https://api.github.com/users/jhlin/events{/privacy}","received_events_url":"https://api.github.com/users/jhlin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-07T05:43:23Z","updated_at":"2018-07-05T09:40:04Z","closed_at":"2018-07-05T09:40:04Z","author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/glandium/git-cinnabar/pulls/74","html_url":"https://github.com/glandium/git-cinnabar/pull/74","diff_url":"https://github.com/glandium/git-cinnabar/pull/74.diff","patch_url":"https://github.com/glandium/git-cinnabar/pull/74.patch"},"body":"Looks like #7 doesn't work because 'git-diff-tree' (git version 2.9.0) wouldn't find exact copy with only one '-C' option:\n\n``` shell\n$ git log --stat --pretty=oneline\n44c1953e64ee79c1a25d5096250816a3973dd149 copy\n target | 1 +\n 1 file changed, 1 insertion(+)\n7dc80b605277bf4c889a99a968a7e88e40a6beb7 create source\n source | 1 +\n 1 file changed, 1 insertion(+)\n```\n\n``` shell\n$ git diff-tree -r -C100% --name-status HEAD~ HEAD\nA   target\n```\n\nAdding one more '-C'  seems fix it:\n\n``` shell\n$ git diff-tree -r -C -C --name-status HEAD~ HEAD\nC100    source  target\n```\n"},"comment":{"url":"https://api.github.com/repos/glandium/git-cinnabar/issues/comments/402666052","html_url":"https://github.com/glandium/git-cinnabar/pull/74#issuecomment-402666052","issue_url":"https://api.github.com/repos/glandium/git-cinnabar/issues/74","id":402666052,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjY2NjA1Mg==","user":{"login":"glandium","id":1038527,"node_id":"MDQ6VXNlcjEwMzg1Mjc=","avatar_url":"https://avatars3.githubusercontent.com/u/1038527?v=4","gravatar_id":"","url":"https://api.github.com/users/glandium","html_url":"https://github.com/glandium","followers_url":"https://api.github.com/users/glandium/followers","following_url":"https://api.github.com/users/glandium/following{/other_user}","gists_url":"https://api.github.com/users/glandium/gists{/gist_id}","starred_url":"https://api.github.com/users/glandium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glandium/subscriptions","organizations_url":"https://api.github.com/users/glandium/orgs","repos_url":"https://api.github.com/users/glandium/repos","events_url":"https://api.github.com/users/glandium/events{/privacy}","received_events_url":"https://api.github.com/users/glandium/received_events","type":"User","site_admin":false},"created_at":"2018-07-05T09:40:04Z","updated_at":"2018-07-05T09:40:04Z","author_association":"OWNER","body":"Closing because this won't be merged as is cf. previous comment, hasn't been updated in 2 years, and there is an open issue to track the copy/move detection handling."}}
{"actor":{"display_login":"glandium"}}