{"thread":{"id":"9267","subject":"git diff with add/modified codes","startedAt":"2007-07-27T22:05:42Z","lastAt":"2007-07-29T21:36:13Z","messageCount":9,"participants":["Jon Smirl","Junio C Hamano","Johannes Schindelin","Jeff King","Jakub Narebski"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"48843","messageId":"9e4733910707271505x4eac928axe639308afed20cb3@mail.gmail.com","threadId":"9267","inReplyTo":null,"subject":"git diff with add/modified codes","fromName":"Jon Smirl","fromEmail":"jonsmirl@gmail.com","sentAt":"2007-07-27T22:05:42Z","receivedAt":"2007-07-27T22:05:42Z","isPatch":false,"sender":{"key":"jonsmirl@gmail.com","avatar":"https://gravatar.com/avatar/cff3bf5bfdfa6708b905712ff91f0f9b8aaca161659f38c02b787920d5d28b7e?d=mp&s=160"},"body":"Is there a magic git diff incantation that will add file status codes\n(Added (A), Copied (C), Deleted (D), Modified (M), Renamed (R)) to the\n--stat output? I can't see how to get this info on any diff output\nwithout doing multiple diffs with --diff-filter.\n\n-- \nJon Smirl\njonsmirl@gmail.com\n"},{"id":"48847","messageId":"7vir85whxy.fsf@assigned-by-dhcp.cox.net","threadId":"9267","inReplyTo":"9e4733910707271505x4eac928axe639308afed20cb3@mail.gmail.com","subject":"Re: git diff with add/modified codes","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2007-07-27T23:22:17Z","receivedAt":"2007-07-27T23:22:17Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Would --stat --summary be satisfactory?\n"},{"id":"48848","messageId":"9e4733910707271717q5ea33b55r227d8dbb1023de47@mail.gmail.com","threadId":"9267","inReplyTo":"7vir85whxy.fsf@assigned-by-dhcp.cox.net","subject":"Re: git diff with add/modified codes","fromName":"Jon Smirl","fromEmail":"jonsmirl@gmail.com","sentAt":"2007-07-28T00:17:54Z","receivedAt":"2007-07-28T00:17:54Z","isPatch":false,"sender":{"key":"jonsmirl@gmail.com","avatar":"https://gravatar.com/avatar/cff3bf5bfdfa6708b905712ff91f0f9b8aaca161659f38c02b787920d5d28b7e?d=mp&s=160"},"body":"On 7/27/07, Junio C Hamano <gitster@pobox.com> wrote:\n> Would --stat --summary be satisfactory?\n\nThat's not what I want. I'm looking a report that indicates new files\nvs modified ones in a single list. These old patches I am working with\noften create 100 files and modify another 200.\n\nAdding a code like (Added (A), Copied (C), Deleted (D), Modified (M),\nRenamed (R))  to --stat would be perfect.\n\n-- \nJon Smirl\njonsmirl@gmail.com\n"},{"id":"48854","messageId":"Pine.LNX.4.64.0707280148340.14781@racer.site","threadId":"9267","inReplyTo":"7vir85whxy.fsf@assigned-by-dhcp.cox.net","subject":"Re: git diff with add/modified codes","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-07-28T00:48:50Z","receivedAt":"2007-07-28T00:48:50Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Fri, 27 Jul 2007, Junio C Hamano wrote:\n\n> Would --stat --summary be satisfactory?\n\nOr does \"--raw\" do the job?\n\nCiao,\nDscho\n"},{"id":"48855","messageId":"9e4733910707271754u3f18f2fdrf508068879acb778@mail.gmail.com","threadId":"9267","inReplyTo":"Pine.LNX.4.64.0707280148340.14781@racer.site","subject":"Re: git diff with add/modified codes","fromName":"Jon Smirl","fromEmail":"jonsmirl@gmail.com","sentAt":"2007-07-28T00:54:57Z","receivedAt":"2007-07-28T00:54:57Z","isPatch":false,"sender":{"key":"jonsmirl@gmail.com","avatar":"https://gravatar.com/avatar/cff3bf5bfdfa6708b905712ff91f0f9b8aaca161659f38c02b787920d5d28b7e?d=mp&s=160"},"body":"On 7/27/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:\n> Hi,\n>\n> On Fri, 27 Jul 2007, Junio C Hamano wrote:\n>\n> > Would --stat --summary be satisfactory?\n>\n> Or does \"--raw\" do the job?\n\nRaw is much closer. Combine the file stats from --raw with --stat and\nit would be perfect.\n\n>\n> Ciao,\n> Dscho\n>\n>\n\n\n-- \nJon Smirl\njonsmirl@gmail.com\n"},{"id":"48863","messageId":"20070728043901.GB11916@coredump.intra.peff.net","threadId":"9267","inReplyTo":"9e4733910707271717q5ea33b55r227d8dbb1023de47@mail.gmail.com","subject":"Re: git diff with add/modified codes","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2007-07-28T04:39:01Z","receivedAt":"2007-07-28T04:39:01Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Fri, Jul 27, 2007 at 08:17:54PM -0400, Jon Smirl wrote:\n\n> That's not what I want. I'm looking a report that indicates new files\n> vs modified ones in a single list. These old patches I am working with\n> often create 100 files and modify another 200.\n> \n> Adding a code like (Added (A), Copied (C), Deleted (D), Modified (M),\n> Renamed (R))  to --stat would be perfect.\n\nHow about --name-status?\n\n-Peff\n"},{"id":"48910","messageId":"f8fn72$l30$1@sea.gmane.org","threadId":"9267","inReplyTo":"20070728043901.GB11916@coredump.intra.peff.net","subject":"Re: git diff with add/modified codes","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2007-07-28T15:26:27Z","receivedAt":"2007-07-28T15:26:27Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Jeff King wrote:\n\n> On Fri, Jul 27, 2007 at 08:17:54PM -0400, Jon Smirl wrote:\n> \n>> That's not what I want. I'm looking a report that indicates new files\n>> vs modified ones in a single list. These old patches I am working with\n>> often create 100 files and modify another 200.\n>> \n>> Adding a code like (Added (A), Copied (C), Deleted (D), Modified (M),\n>> Renamed (R))  to --stat would be perfect.\n> \n> How about --name-status?\n\nOr -r --name-status?\n\n-- \nJakub Narebski\nWarsaw, Poland\nShadeHawk on #git\n"},{"id":"48918","messageId":"9e4733910707281107w6aff86f5sf746ca3f2c74d098@mail.gmail.com","threadId":"9267","inReplyTo":"f8fn72$l30$1@sea.gmane.org","subject":"Re: git diff with add/modified codes","fromName":"Jon Smirl","fromEmail":"jonsmirl@gmail.com","sentAt":"2007-07-28T18:07:29Z","receivedAt":"2007-07-28T18:07:29Z","isPatch":false,"sender":{"key":"jonsmirl@gmail.com","avatar":"https://gravatar.com/avatar/cff3bf5bfdfa6708b905712ff91f0f9b8aaca161659f38c02b787920d5d28b7e?d=mp&s=160"},"body":"On 7/28/07, Jakub Narebski <jnareb@gmail.com> wrote:\n> Jeff King wrote:\n>\n> > On Fri, Jul 27, 2007 at 08:17:54PM -0400, Jon Smirl wrote:\n> >\n> >> That's not what I want. I'm looking a report that indicates new files\n> >> vs modified ones in a single list. These old patches I am working with\n> >> often create 100 files and modify another 200.\n> >>\n> >> Adding a code like (Added (A), Copied (C), Deleted (D), Modified (M),\n> >> Renamed (R))  to --stat would be perfect.\n> >\n> > How about --name-status?\n>\n> Or -r --name-status?\n\n-r is not in the git diff doc but it is used in the examples.\nhttp://www.kernel.org/pub/software/scm/git/docs/git-diff.html\n\n-- \nJon Smirl\njonsmirl@gmail.com\n"},{"id":"49017","messageId":"200707292336.14473.jnareb@gmail.com","threadId":"9267","inReplyTo":"9e4733910707281107w6aff86f5sf746ca3f2c74d098@mail.gmail.com","subject":"Re: git diff with add/modified codes","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2007-07-29T21:36:13Z","receivedAt":"2007-07-29T21:36:13Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"On Sat, 28 July 2007, Jon Smirl wrote:\n> On 7/28/07, Jakub Narebski <jnareb@gmail.com> wrote:\n>> Jeff King wrote:\n>>\n>>> On Fri, Jul 27, 2007 at 08:17:54PM -0400, Jon Smirl wrote:\n>>>\n>>>> That's not what I want. I'm looking a report that indicates new files\n>>>> vs modified ones in a single list. These old patches I am working with\n>>>> often create 100 files and modify another 200.\n>>>>\n>>>> Adding a code like (Added (A), Copied (C), Deleted (D), Modified (M),\n>>>> Renamed (R))  to --stat would be perfect.\n>>>\n>>> How about --name-status?\n>>\n>> Or -r --name-status?\n> \n> -r is not in the git diff doc but it is used in the examples.\n> http://www.kernel.org/pub/software/scm/git/docs/git-diff.html\n\n<quote>\n  <2> show only names and the nature of change, but not actual\n  diff output.  --name-status disables usual patch generation\n  which in turn also disables recursive behavior, so without -r\n  you would only see the directory name if there is a change in a\n  file in a subdirectory.\n</quote>\n\n\"Of course\" one knows that \"git diff <tree-ish> <tree-ish>\" is\ngit-diff-tree in disguise, and accepts git-diff-tree options.\n\nBy the way, I was thinking about extending --numstat output to include\nalso status. Current --numstat output is ill fitted to deal with renames\nand copies, at least ill fitted for machine consumption of renames\noutput; it uses \"old_name => new_name\" as a filename for renames. While\nit would be fairly easy to put pre- and after-rename names separated\nby TAB, and quoted if needed (including embedded TAB character in\nthe filename, which would be quoted as \\t instead) without breaking\nanu current --numstat output parsers (although I don't think any of\nthem uses -M/-C), it would be hard to do the same for --numstat -z output.\nA solution (not best, I admit) would be to use NUL NUL to separate pre-\nand post-image filename, but I think it would be best to add new\n--numstat-extended format to git-diff.\n\nP.S. Is binary diff output described somewhere?\n-- \nJakub Narebski\nPoland\n"}]}