{"thread":{"id":"2508","subject":"Command line hint of the day","startedAt":"2005-11-14T18:58:34Z","lastAt":"2005-11-14T19:08:11Z","messageCount":2,"participants":["Linus Torvalds","Andreas Ericsson"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"11827","messageId":"Pine.LNX.4.64.0511141049410.3263@g5.osdl.org","threadId":"2508","inReplyTo":null,"subject":"Command line hint of the day","fromName":"Linus Torvalds","fromEmail":"torvalds@osdl.org","sentAt":"2005-11-14T18:58:34Z","receivedAt":"2005-11-14T18:58:34Z","isPatch":false,"sender":{"key":"torvalds@linux-foundation.org","avatar":"https://avatars.githubusercontent.com/u/1024025?v=4"},"body":"\nSo I got a question about ppp in the kernel, and quite frankly, the things \nI know about ppp can be engraved with a jack-hammer on a grain of rice.\n\nSo what did I do?\n\n\tgit whatchanged $(git-ls-files *ppp*)\n\nactually does something useful. It will only look at files that are \n_currently_ called *ppp*, so you'd not see files that have been deleted, \nbut it does the right thing for what I wanted.\n\nYou can also do \"git log\" or \"gitk\" instead of \"git whatchanged\", but the \nwhatchanged thing has the advantage that it can run incrementally. Doing a \n\"git log\" ends up figuring out _all_ the commits before it can display \nthem, since it also does the densification etc.\n\nMaybe we should have a git man-page section of \"strange but useful \nexamples\"? Things people do just because they are useful, but may not be \nimmediately obvious to somebody who comes from CVS-land and uses git as \njust another old SCM?\n\n\t\tLinus\n"},{"id":"11831","messageId":"4378E09B.9010504@op5.se","threadId":"2508","inReplyTo":"Pine.LNX.4.64.0511141049410.3263@g5.osdl.org","subject":"Re: Command line hint of the day","fromName":"Andreas Ericsson","fromEmail":"ae@op5.se","sentAt":"2005-11-14T19:08:11Z","receivedAt":"2005-11-14T19:08:11Z","isPatch":false,"sender":{"key":"ae@op5.se","avatar":"https://gravatar.com/avatar/426e89595c75a8f5252dd0c989e5fabe5bcac616e68557427ad9aef6b0ca342a?d=mp&s=160"},"body":"Linus Torvalds wrote:\n> Maybe we should have a git man-page section of \"strange but useful \n> examples\"? Things people do just because they are useful, but may not be \n> immediately obvious to somebody who comes from CVS-land and uses git as \n> just another old SCM?\n> \n\nSounds like a good idea. The sed1liners.txt (sic) has probably saved me \nseveral hundred hours of boring and tedious cut'n paste work (or more \ninteresting but still not exactly fun one-shot programming).\n\n-- \nAndreas Ericsson                   andreas.ericsson@op5.se\nOP5 AB                             www.op5.se\nTel: +46 8-230225                  Fax: +46 8-230231\n"}]}