{"thread":{"id":"23573","subject":"diff without num-stat","startedAt":"2010-04-22T19:02:18Z","lastAt":"2010-04-23T19:45:23Z","messageCount":6,"participants":["Eli Barzilay","Michael J Gruber","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"140179","messageId":"19408.40250.102191.314496@winooski.ccs.neu.edu","threadId":"23573","inReplyTo":null,"subject":"diff without num-stat","fromName":"Eli Barzilay","fromEmail":"eli@barzilay.org","sentAt":"2010-04-22T19:02:18Z","receivedAt":"2010-04-22T19:02:18Z","isPatch":false,"sender":{"key":"eli@barzilay.org","avatar":"https://avatars.githubusercontent.com/u/185905?v=4"},"body":"`git diff' has a `--numstat' flag, but is there any way to *avoid* the\nnumstat?  (I'm using `--stat' but want to void the summary line, and\nI'd like to avoid piping it to `head'.)\n-- \n          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:\n                    http://barzilay.org/                   Maze is Life!\n"},{"id":"140194","messageId":"4BD156F8.5090307@drmicha.warpmail.net","threadId":"23573","inReplyTo":"19408.40250.102191.314496@winooski.ccs.neu.edu","subject":"Re: diff without num-stat","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2010-04-23T08:14:48Z","receivedAt":"2010-04-23T08:14:48Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Eli Barzilay venit, vidit, dixit 22.04.2010 21:02:\n> `git diff' has a `--numstat' flag, but is there any way to *avoid* the\n> numstat?  (I'm using `--stat' but want to void the summary line, and\n> I'd like to avoid piping it to `head'.)\n\nSo, what DO you want? Except for the different formatting:\n\n--stat output minus --numstat output == summary line\n\nwhere \"summary line\" is something like\n\n5 files changed, 5974 insertions(+), 0 deletions(-)\n\nDo you want to (a)void the numstat or the summary?\n\nMichael\n"},{"id":"140199","messageId":"7vwrvyzfr3.fsf@alter.siamese.dyndns.org","threadId":"23573","inReplyTo":"4BD156F8.5090307@drmicha.warpmail.net","subject":"Re: diff without num-stat","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2010-04-23T09:21:04Z","receivedAt":"2010-04-23T09:21:04Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Michael J Gruber <git@drmicha.warpmail.net> writes:\n\n> Eli Barzilay venit, vidit, dixit 22.04.2010 21:02:\n>> `git diff' has a `--numstat' flag, but is there any way to *avoid* the\n>> numstat?  (I'm using `--stat' but want to void the summary line, and\n>> I'd like to avoid piping it to `head'.)\n>\n> So, what DO you want? Except for the different formatting:\n>\n> --stat output minus --numstat output == summary line\n>\n> where \"summary line\" is something like\n>\n> 5 files changed, 5974 insertions(+), 0 deletions(-)\n>\n> Do you want to (a)void the numstat or the summary?\n\nSummary is \"create mode ...\" etc. and you can already enable/disable it.\n\nThat \"N files +M/-N lines in total\" is _not_ a summary; it is an integral\npart of ascii-graphical --stat output, which is supposed to produce output\nlike \"git diff -p | diffstat\".  We won't split it out of --stat without a\nvery good reason, there doesn't seem to be an option to \"diffstat\" for\nsuch a thing, so...\n"},{"id":"140227","messageId":"19409.54647.62163.893635@winooski.ccs.neu.edu","threadId":"23573","inReplyTo":"4BD156F8.5090307@drmicha.warpmail.net","subject":"Re: diff without num-stat","fromName":"Eli Barzilay","fromEmail":"eli@barzilay.org","sentAt":"2010-04-23T17:14:31Z","receivedAt":"2010-04-23T17:14:31Z","isPatch":false,"sender":{"key":"eli@barzilay.org","avatar":"https://avatars.githubusercontent.com/u/185905?v=4"},"body":"On Apr 23, Michael J Gruber wrote:\n> Eli Barzilay venit, vidit, dixit 22.04.2010 21:02:\n> > `git diff' has a `--numstat' flag, but is there any way to *avoid* the\n> > numstat?  (I'm using `--stat' but want to void the summary line, and\n> > I'd like to avoid piping it to `head'.)\n> \n> So, what DO you want?\n> [...]\n> where \"summary line\" is something like\n> \n> 5 files changed, 5974 insertions(+), 0 deletions(-)\n\nAn option that avoids that summary line.\n\n\nOn Apr 23, Junio C Hamano wrote:\n> \n> Summary is \"create mode ...\" etc. and you can already enable/disable it.\n\nRight -- I'm asking about the above numstat summary line, which seems\nto always be included with `--stat'.\n\n\n> That \"N files +M/-N lines in total\" is _not_ a summary; it is an\n> integral part of ascii-graphical --stat output, which is supposed to\n> produce output like \"git diff -p | diffstat\".  We won't split it out\n> of --stat without a very good reason, there doesn't seem to be an\n> option to \"diffstat\" for such a thing, so...\n\nWell, the reason is to have an easy-to-glance-over summary of changes\nfor push notification emails.  I didn't realize that the intention of\n--stat was to be completely compatible with `diffstat'.\n\n-- \n          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:\n                    http://barzilay.org/                   Maze is Life!\n"},{"id":"140229","messageId":"7vaasuvz6r.fsf@alter.siamese.dyndns.org","threadId":"23573","inReplyTo":"19409.54647.62163.893635@winooski.ccs.neu.edu","subject":"Re: diff without num-stat","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2010-04-23T17:47:08Z","receivedAt":"2010-04-23T17:47:08Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Eli Barzilay <eli@barzilay.org> writes:\n\n> Well, the reason is to have an easy-to-glance-over summary of changes\n> for push notification emails.  I didn't realize that the intention of\n> --stat was to be completely compatible with `diffstat'.\n\nI think you have it somewhat backwards.\n\nBeing the same as normal diffstat output that people are familiar with,\nthe output makes it \"an easy-to-glance-over summary of changes\" whereever\nit is used, be it in a notification e-mail or from interactive command\noutput.\n"},{"id":"140234","messageId":"19409.63699.647720.327239@winooski.ccs.neu.edu","threadId":"23573","inReplyTo":"7vaasuvz6r.fsf@alter.siamese.dyndns.org","subject":"Re: diff without num-stat","fromName":"Eli Barzilay","fromEmail":"eli@barzilay.org","sentAt":"2010-04-23T19:45:23Z","receivedAt":"2010-04-23T19:45:23Z","isPatch":false,"sender":{"key":"eli@barzilay.org","avatar":"https://avatars.githubusercontent.com/u/185905?v=4"},"body":"On Apr 23, Junio C Hamano wrote:\n> Eli Barzilay <eli@barzilay.org> writes:\n> \n> > Well, the reason is to have an easy-to-glance-over summary of\n> > changes for push notification emails.  I didn't realize that the\n> > intention of --stat was to be completely compatible with\n> > `diffstat'.\n> \n> I think you have it somewhat backwards.\n> \n> Being the same as normal diffstat output that people are familiar with,\n> the output makes it \"an easy-to-glance-over summary of changes\" whereever\n> it is used, be it in a notification e-mail or from interactive command\n> output.\n\n(That's true only if the intended audience of these notifications are\npeople who are familiar with diffstat output.)\n\n-- \n          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:\n                    http://barzilay.org/                   Maze is Life!\n"}]}