{"thread":{"id":"53344","subject":"Git Log ignores --oneline and --pretty=oneline in combination with -L.","startedAt":"2020-04-28T14:53:58Z","lastAt":"2020-04-28T21:04:41Z","messageCount":3,"participants":["Nixon, Francis A","Emma Brooks","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"396464","messageId":"DB8PR06MB6218D1398300AFD016D0B804D5AC0@DB8PR06MB6218.eurprd06.prod.outlook.com","threadId":"53344","inReplyTo":null,"subject":"Git Log ignores --oneline and --pretty=oneline in combination with -L.","fromName":"Nixon, Francis A","fromEmail":"francis.nixon17@imperial.ac.uk","sentAt":"2020-04-28T14:28:15Z","receivedAt":"2020-04-28T14:53:58Z","isPatch":false,"sender":{"key":"francis.nixon17@imperial.ac.uk","avatar":null},"body":" Running `git log --pretty=oneline -L:get_stack_map_frames:stackmapframes.rs`(filename/function names as an example only, consistent across many files.) results on in correct output but doesn't ouput in a oneline format(still includes the full diffs). \n\nOccurs on `git version 2.26.GIT` (e870325ee8575d5c3d7afe0ba2c9be072c692b65), as well as whatever `git version 2.20.1`.\n\nFrancis Nixon"},{"id":"396503","messageId":"20200428210404.GA24743@pluvano.com","threadId":"53344","inReplyTo":"DB8PR06MB6218D1398300AFD016D0B804D5AC0@DB8PR06MB6218.eurprd06.prod.outlook.com","subject":"Re: Git Log ignores --oneline and --pretty=oneline in combination with -L.","fromName":"Emma Brooks","fromEmail":"me@pluvano.com","sentAt":"2020-04-28T21:04:04Z","receivedAt":"2020-04-28T21:04:29Z","isPatch":false,"sender":{"key":"me@pluvano.com","avatar":"https://avatars.githubusercontent.com/u/50312486?v=4"},"body":"On 2020-04-28 14:28:15+0000, Nixon, Francis A wrote:\n>  Running `git log --pretty=oneline -L:get_stack_map_frames:stackmapframes.rs`(filename/function names as an example only, consistent across many files.) results on in correct output but doesn't ouput in a oneline format(still includes the full diffs). \n\n-L implies --patch, which outputs a full diff. If you don't want that,\nadd --no-patch to the command.\n"},{"id":"396504","messageId":"20200428210438.GD4000@coredump.intra.peff.net","threadId":"53344","inReplyTo":"DB8PR06MB6218D1398300AFD016D0B804D5AC0@DB8PR06MB6218.eurprd06.prod.outlook.com","subject":"Re: Git Log ignores --oneline and --pretty=oneline in combination with -L.","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2020-04-28T21:04:38Z","receivedAt":"2020-04-28T21:04:41Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Tue, Apr 28, 2020 at 02:28:15PM +0000, Nixon, Francis A wrote:\n\n>  Running `git log --pretty=oneline\n>  -L:get_stack_map_frames:stackmapframes.rs`(filename/function names as\n>  an example only, consistent across many files.) results on in correct\n>  output but doesn't ouput in a oneline format(still includes the full\n>  diffs).\n\nThe \"--oneline\" option has nothing to do with the diff display; it\ncontrols the formatting of the commit message.\n\nThe default for git-log is not to show a diff at all, which is why \"git\nlog --oneline\" truly has only one line per commit. Using the \"-L\" option\nimplies showing a diff. Try adding \"-s\" or \"--no-patch\" to suppress it.\n\n> Occurs on `git version 2.26.GIT`\n> (e870325ee8575d5c3d7afe0ba2c9be072c692b65), as well as whatever `git\n> version 2.20.1`.\n\nNote that the combination of \"-s\" and \"-L\" was added in v2.22, so it\nwill work on one but not the other.\n\n-Peff\n"}]}