{"thread":{"id":"34634","subject":"\"git log --follow filename\" (with diff.renameLimit=0) not working after subtree add","startedAt":"2013-08-07T15:51:41Z","lastAt":"2013-08-07T15:51:41Z","messageCount":1,"participants":["Diogo de Campos"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"224758","messageId":"CAMebvcSGzGatdaT-iowCUMqnw0ZYM20qxDBbE7SRn7-jFXs3VA@mail.gmail.com","threadId":"34634","inReplyTo":null,"subject":"\"git log --follow filename\" (with diff.renameLimit=0) not working after subtree add","fromName":"Diogo de Campos","fromEmail":"campos@esss.com.br","sentAt":"2013-08-07T15:51:41Z","receivedAt":"2013-08-07T15:51:41Z","isPatch":false,"sender":{"key":"campos@esss.com.br","avatar":"https://gravatar.com/avatar/e1f2d70d3ee09f9716ea5059ce7a7ea1998588acdee08ccdb5494482d7c509d0?d=mp&s=160"},"body":"Problem:\n\n\"git log --follow filename\" is not working for files after a big move.\n\n\nScenario:\n\nJust performed a \"git subtree add\" where big projects were moved into\nanother repository, and I'm not able to view history for a single\nfile.\n\nSample output:\nOutput after subtree add (no output)\n> git log --follow --oneline file.py\n\nOutput from same command in old repository (the one that was merged\nwith subtree, this is the output i expect to continue having atfer a\nmerge)\n> git log --follow --oneline file.py\ncefa32b Convert doc strings to Sphinx\n748b2dd Added target for C++ tests\n1f2b52e Using default git_source_server for everything after moving to Stash\n... [more commits]\n\n\nA couple of notes:\n- Made sure I used --follow\n- Using options diff.renameLimit=0 and diff.renames=true\n- Tried options -C and -M (even though there were no changes, should\nbe a 100% rename match)\n- \"git subtree add\" was made without --squash to keep history\n- \"git blame file.py\" works fine, detects all changes and rename history\n- Commits added after the merge are tracked, but log stops at merge\n- Tested with git 1.8.3.4\n- This guy in StackOverflow seems to have the same problem:\nhttp://stackoverflow.com/questions/4393527/why-might-git-log-not-show-history-for-a-moved-file-and-what-can-i-do-about-it\n\nRelevant output for \"git config -l\" in repository:\ncore.symlinks=false\ncore.autocrlf=false\ncolor.diff=auto\ncolor.status=auto\ncolor.branch=auto\ncolor.interactive=true\npack.packsizelimit=2g\nhelp.format=html\nhttp.sslcainfo=/bin/curl-ca-bundle.crt\nsendemail.smtpserver=/bin/msmtp.exe\ndiff.astextplain.textconv=astextplain\nrebase.autosquash=true\ncore.packedgitlimit=128m\ndiff.renamelimit=0\ndiff.renames=true\ncore.repositoryformatversion=0\ncore.filemode=false\ncore.bare=false\ncore.logallrefupdates=true\ncore.symlinks=false\ncore.ignorecase=true\ncore.hidedotfiles=dotGitOnly\n\n--\n\nDiogo Campos\n"}]}