{"thread":{"id":"16212","subject":"[BUG] git-log --follow incompatibile with --max-count","startedAt":"2008-11-07T18:38:09Z","lastAt":"2008-11-07T18:38:09Z","messageCount":1,"participants":["Jakub Narebski"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"95135","messageId":"200811071938.11170.jnareb@gmail.com","threadId":"16212","inReplyTo":null,"subject":"[BUG] git-log --follow incompatibile with --max-count","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2008-11-07T18:38:09Z","receivedAt":"2008-11-07T18:38:09Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"First, it is a bit strange that while \"git log\" understand '--follow'\noption, \"git rev-parse\" (the plumbing equivalent to be used in scripts)\ndoes not.\n\n\nSecond, somehow \"git log --follow <filename>\" is incompatible with\n'-n' / '--max-count':\n\n $ git log --max-count=10 --follow --pretty=oneline --abbrev-commit gitweb/gitweb.perl \n f24dce1... gitweb: Separate features with no project specific override\n 61b4606... gitweb: Better processing format string in custom links in navbar\n\n $ git log --max-count=10 --pretty=oneline --abbrev-commit gitweb/gitweb.perl \n f24dce1... gitweb: Separate features with no project specific override\n 61b4606... gitweb: Better processing format string in custom links in navbar\n 8db49a7... gitweb: generate parent..current URLs\n b0be383... gitweb: parse parent..current syntax from PATH_INFO\n 3550ea7... gitweb: use_pathinfo filenames start with /\n b02bd7a... gitweb: generate project/action/hash URLs\n d8c2882... gitweb: parse project/action/hash_base:filename PATH_INFO\n 1b2d297... gitweb: refactor input parameters parse/validation\n 3e3d4ee... Merge branch 'pb/gitweb-tagcloud' into pb/gitweb\n 0d1d154... gitweb: Support for simple project search form\n\n $ git log --max-count=10 --pretty=oneline --abbrev-commit gitweb/gitweb.perl | wc -l\n 10\n\nWithout '--nax-count' it works correctly:\n\n $ git log --pretty=oneline --abbrev-commit gitweb/gitweb.perl | wc -l\n 446\n\n $ git log --follow --pretty=oneline --abbrev-commit gitweb/gitweb.perl | wc -l\n 485\n\n\nBoth bugs were noticed by Guy Blucher when writing 'historyfollow'\npatch for gitweb:\n  \"[RFC] gitweb: add 'historyfollow' view that follows renames\"\n  Msg-ID: <054F21930D24A0428E5B4588462C7AED0149B4B8@ednex512.dsto.defence.gov.au>\n  http://permalink.gmane.org/gmane.comp.version-control.git/99199\n-- \nJakub Narebski\nPoland\n"}]}