{"thread":{"id":"60654","subject":"[Question] Can Git Diff with block context","startedAt":"2023-12-25T03:47:03Z","lastAt":"2023-12-25T03:47:03Z","messageCount":1,"participants":["ZheNing Hu"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"486019","messageId":"CAOLTT8R-wo+20Xt94mBsC8gaP3aaAg=aa96K8fTjYQMyaC0fJA@mail.gmail.com","threadId":"60654","inReplyTo":null,"subject":"[Question] Can Git Diff with block context","fromName":"ZheNing Hu","fromEmail":"adlternative@gmail.com","sentAt":"2023-12-25T03:46:49Z","receivedAt":"2023-12-25T03:47:03Z","isPatch":false,"sender":{"key":"adlternative@gmail.com","avatar":"https://avatars.githubusercontent.com/u/58138461?v=4"},"body":"Hi,\n\nIn our code review process on our coding platform, when displaying the\ndiff of a file, we add a parameter called include_extra_info_lines,\nwhich is used to expand the display of code lines related to code\ncomments (I'm not sure if this feature was ported from GitLab).\nHowever, in terms of implementation, this feature is achieved on the\nserver side by a very cumbersome method, which stitches together the\nnormal diff and the diff of the code comment block before rendering\nit. I would like to know if git diff natively supports a similar\ncapability, where I can specify the first and last lines of the blocks\nof the file that I need, and then diff will load these blocks\ntogether.\n\n--\nZheNing Hu\n"}]}