{"thread":{"id":"33620","subject":"Possible bug report","startedAt":"2013-04-26T15:59:26Z","lastAt":"2013-04-26T17:24:51Z","messageCount":2,"participants":["Pierre-François CLEMENT","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"215594","messageId":"CANWD=rVdAVP0KSdai-tQf9VtVj7bOLMrENiG_fx-mD_R2f8SnQ@mail.gmail.com","threadId":"33620","inReplyTo":null,"subject":"Possible bug report","fromName":"Pierre-François CLEMENT","fromEmail":"likeyn@gmail.com","sentAt":"2013-04-26T15:59:26Z","receivedAt":"2013-04-26T15:59:26Z","isPatch":false,"sender":{"key":"likeyn@gmail.com","avatar":"https://gravatar.com/avatar/d2efe6b33bc5c161a48ec7f2515bc286da4b8ad94adf29ff546845d69d8aeb7d?d=mp&s=160"},"body":"Hi guys, I get strange result when running the following command:\n\n$ git diff develop..HEAD --shortstat --cumulative\n 27 files changed, 886 insertions(+), 101 deletions(-)\n   9.2% apps/frontend/modules/conversionspecs/actions/\n  35.2% apps/frontend/modules/conversionspecs/templates/\n  45.0% apps/frontend/modules/conversionspecs/\n  45.2% apps/frontend/\n   8.7% config/doctrine/\n   4.8% lib/filter/doctrine/\n   8.1% lib/form/doctrine/\n  21.9% lib/migration/doctrine/\n  10.0% lib/model/doctrine/\n  44.9% lib/\n  12.9% apps/frontend/modules/conversionspecs/actions/\n  37.1% apps/frontend/modules/conversionspecs/templates/\n  50.6% apps/frontend/modules/conversionspecs/\n  50.7% apps/frontend/\n   6.6% config/doctrine/\n   3.2% lib/filter/doctrine/\n   9.1% lib/form/doctrine/\n  20.6% lib/migration/doctrine/\n   8.5% lib/model/doctrine/\n  41.5% lib/\n\nAs you can see, the --cumulative lines seem to be duplicated, though\nthe computed stats aren't exactly the same... It appears when you\ncombine the --cumulative option with either --stat, --numstat or\n--shortstat (but not --dirstat) on any local or remote branches EXCEPT\non both master and origin/master.\n\nI use git-flow and git v1.7.9.5 on Ubuntu 12.04 LTS.\nLet me know if you need any further informations.\n--\nPierre-François CLEMENT\nSelf-employed web developer\nApplication developer @ Upcast Social\nPhone number (FR): +336.827.331.89\nPhone number (UK): +447.449.508.188\nhttp://www.linkedin.com/in/likeyn/en\nhttp://www.doyoubuzz.com/pierre-francois-clement/\n"},{"id":"215602","messageId":"7vli85xl0c.fsf@alter.siamese.dyndns.org","threadId":"33620","inReplyTo":"CANWD=rVdAVP0KSdai-tQf9VtVj7bOLMrENiG_fx-mD_R2f8SnQ@mail.gmail.com","subject":"Re: Possible bug report","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2013-04-26T17:24:51Z","receivedAt":"2013-04-26T17:24:51Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Pierre-François CLEMENT <likeyn@gmail.com> writes:\n\n> As you can see, the --cumulative lines seem to be duplicated, though\n> the computed stats aren't exactly the same... It appears when you\n> combine the --cumulative option with either --stat, --numstat or\n> --shortstat (but not --dirstat) ...\n\nThanks for a report.\n\nI do not think the deprecated --cumulative command line option was\never designed to be used with anything but --dirstat.\n\nIt was a UI mistake to make it look like an independent option,\nwhich was corrected with 333f3fb0c530 (Refactor --dirstat parsing;\ndeprecate --cumulative and --dirstat-by-file, 2011-04-29) and the\nfix shipped back in v1.7.6. Since that release we do not even\nmention the option in the manual.\n\nThese days, the right way to spell it is as an option parameter to\nthe --dirstat option itself (e.g. --dirstat=cumulative).\n\nThe parser to parse --cumulative as a command line argument was kept\nso that people who were used to \"--dirstat --cumulative\" do not have\nto see an error from the command line parser.  We could have made\n\"--cumulative\" with other kind of \"stat\" an error back then, but we\ndidn't. I suspect that we thought it would be sufficient to not\ndocument --cumulative as a standalone option, but I do not recall\nthe details.\n"}]}