{"id":10,"date":"2007-10-22T21:16:39","date_gmt":"2007-10-22T21:16:39","guid":{"rendered":""},"modified":"2017-03-07T16:33:27","modified_gmt":"2017-03-07T16:33:27","slug":"git_svn_copies_and_empty_dirs","status":"publish","type":"post","link":"https:\/\/blogs.gentoo.org\/jokey\/2007\/10\/22\/git_svn_copies_and_empty_dirs\/","title":{"rendered":"git-svn, copies and empty dirs"},"content":{"rendered":"<p>Up to now, when working on sunrise with git-svn, I faced two minor issues that it didn&#8217;t handle nicely.<\/p>\n<p>a) When copying stuff from sunrise\/ to reviewed\/ so that it goes out via layman, the file was added although it was merged.<\/p>\n<p>b) It left empty dirs behind when I kicked an app (as it went over to gentoo-x86)<\/p>\n<p>After reading a bunch of mailinglists and forums posts, I finally had a working solution. Just add these lines to .git\/config file:<\/p>\n<p>[diff]<br \/>\n        renames = copies<br \/>\n[svn]<br \/>\n        findcopiesharder = 1<br \/>\n        rmdir = 1<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Up to now, when working on sunrise with git-svn, I faced two minor issues that it didn&#8217;t handle nicely. a) When copying stuff from sunrise\/ to reviewed\/ so that it goes out via layman, the file was added although it was merged. b) It left empty dirs behind when I kicked an app (as it &hellip; <a href=\"https:\/\/blogs.gentoo.org\/jokey\/2007\/10\/22\/git_svn_copies_and_empty_dirs\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">git-svn, copies and empty dirs<\/span><\/a><\/p>\n","protected":false},"author":37,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/blogs.gentoo.org\/jokey\/wp-json\/wp\/v2\/posts\/10"}],"collection":[{"href":"https:\/\/blogs.gentoo.org\/jokey\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.gentoo.org\/jokey\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/jokey\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/jokey\/wp-json\/wp\/v2\/comments?post=10"}],"version-history":[{"count":1,"href":"https:\/\/blogs.gentoo.org\/jokey\/wp-json\/wp\/v2\/posts\/10\/revisions"}],"predecessor-version":[{"id":19,"href":"https:\/\/blogs.gentoo.org\/jokey\/wp-json\/wp\/v2\/posts\/10\/revisions\/19"}],"wp:attachment":[{"href":"https:\/\/blogs.gentoo.org\/jokey\/wp-json\/wp\/v2\/media?parent=10"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/jokey\/wp-json\/wp\/v2\/categories?post=10"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/jokey\/wp-json\/wp\/v2\/tags?post=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}