{"thread":{"id":"30060","subject":"How to get status-like short format for old commits?","startedAt":"2012-03-26T11:24:24Z","lastAt":"2012-03-26T20:14:56Z","messageCount":4,"participants":["Piotr Krukowiecki","Kevin","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"187714","messageId":"CAA01CsqM_cmf8A5OjdkX4i-ituCWK95ygEoK_Y0-2LkKo1D7kA@mail.gmail.com","threadId":"30060","inReplyTo":null,"subject":"How to get status-like short format for old commits?","fromName":"Piotr Krukowiecki","fromEmail":"piotr.krukowiecki@gmail.com","sentAt":"2012-03-26T11:24:24Z","receivedAt":"2012-03-26T11:24:24Z","isPatch":false,"sender":{"key":"piotr.krukowiecki@gmail.com","avatar":"https://avatars.githubusercontent.com/u/3259959?v=4"},"body":"Hi,\n\nI there a way to get a clear status of some past commits, like 'git\nstatus' shows for current index/HEAD? I.e. something like\n\ngit status HEAD^\n#\tmodified:   Makefile\n#\tdeleted:    t/t0080-vcs-svn.sh\n#\tnew file:   t/t9011-svn-da.sh\n#\trenamed:   xxx -> yyy\n\n\nThanks,\n-- \nPiotr Krukowiecki\n"},{"id":"187716","messageId":"20120326120703.GA5454@ikke-laptop.buyways.nl","threadId":"30060","inReplyTo":"CAA01CsqM_cmf8A5OjdkX4i-ituCWK95ygEoK_Y0-2LkKo1D7kA@mail.gmail.com","subject":"Re: How to get status-like short format for old commits?","fromName":"Kevin","fromEmail":"compufreak@gmail.com","sentAt":"2012-03-26T12:07:03Z","receivedAt":"2012-03-26T12:07:03Z","isPatch":false,"sender":{"key":"compufreak@gmail.com","avatar":"https://gravatar.com/avatar/10ca3ab6beccce3bbb196f655727a5ece331d2c95062270ef9d52e64f0d9356b?d=mp&s=160"},"body":"You might want git log --name-status. It will show something similar as\ngit status -s. (so with A,M,D etc. as status).\n\n\n\nOn Mon, Mar 26, 2012 at 01:24:24PM +0200, Piotr Krukowiecki wrote:\n> Hi,\n> \n> I there a way to get a clear status of some past commits, like 'git\n> status' shows for current index/HEAD? I.e. something like\n> \n> git status HEAD^\n> #\tmodified:   Makefile\n> #\tdeleted:    t/t0080-vcs-svn.sh\n> #\tnew file:   t/t9011-svn-da.sh\n> #\trenamed:   xxx -> yyy\n> \n> \n> Thanks,\n> -- \n> Piotr Krukowiecki\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n"},{"id":"187764","messageId":"CAA01CsppeF8r_hDhuE7snExxJ6zaWdt5Znu82ZzDmyNMzWRDfA@mail.gmail.com","threadId":"30060","inReplyTo":"20120326120703.GA5454@ikke-laptop.buyways.nl","subject":"Re: How to get status-like short format for old commits?","fromName":"Piotr Krukowiecki","fromEmail":"piotr.krukowiecki@gmail.com","sentAt":"2012-03-26T18:53:45Z","receivedAt":"2012-03-26T18:53:45Z","isPatch":false,"sender":{"key":"piotr.krukowiecki@gmail.com","avatar":"https://avatars.githubusercontent.com/u/3259959?v=4"},"body":"Thanks,\n\nnot so nice as status, but still ok.\n\nPiotrek\n\nOn Mon, Mar 26, 2012 at 2:07 PM, Kevin <compufreak@gmail.com> wrote:\n> You might want git log --name-status. It will show something similar as\n> git status -s. (so with A,M,D etc. as status).\n>\n>\n>\n> On Mon, Mar 26, 2012 at 01:24:24PM +0200, Piotr Krukowiecki wrote:\n>> Hi,\n>>\n>> I there a way to get a clear status of some past commits, like 'git\n>> status' shows for current index/HEAD? I.e. something like\n>>\n>> git status HEAD^\n>> #     modified:   Makefile\n>> #     deleted:    t/t0080-vcs-svn.sh\n>> #     new file:   t/t9011-svn-da.sh\n>> #     renamed:   xxx -> yyy\n>>\n>>\n>> Thanks,\n>> --\n>> Piotr Krukowiecki\n>> --\n>> To unsubscribe from this list: send the line \"unsubscribe git\" in\n>> the body of a message to majordomo@vger.kernel.org\n>> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n\n\n\n-- \nPiotr Krukowiecki\n"},{"id":"187782","messageId":"20120326201456.GC13098@sigill.intra.peff.net","threadId":"30060","inReplyTo":"CAA01CsppeF8r_hDhuE7snExxJ6zaWdt5Znu82ZzDmyNMzWRDfA@mail.gmail.com","subject":"Re: How to get status-like short format for old commits?","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2012-03-26T20:14:56Z","receivedAt":"2012-03-26T20:14:56Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Mon, Mar 26, 2012 at 08:53:45PM +0200, Piotr Krukowiecki wrote:\n\n> [log --name-status]\n> not so nice as status, but still ok.\n\nYeah, the code to print the verbose \"modified: foo.c\" style is specific\nto status. We could refactor it to be a new generic diff output type,\nwhich would not be that hard. In practice, though, I think people choose\neither \"--stat --summary\" if they want to show to a person (it's a\nsuperset of what status shows, because it also contains the number of\nlines changed for each file), or \"--raw\" if they need something\nmachine-readable.\n\nDoes one of those work for you? If not, it might be a fun and relatively\nsimple exercise to create a --verbose-name-status that looks like the\noutput of \"git status\" (you could also do it by post-processing\n--name-status output, but that is less fun and more hacky :) ).\n\n-Peff\n"}]}