[Question] Can Git Diff with block context

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

In our code review process on our coding platform, when displaying the
diff of a file, we add a parameter called include_extra_info_lines,
which is used to expand the display of code lines related to code
comments (I'm not sure if this feature was ported from GitLab).
However, in terms of implementation, this feature is achieved on the
server side by a very cumbersome method, which stitches together the
normal diff and the diff of the code comment block before rendering
it. I would like to know if git diff natively supports a similar
capability, where I can specify the first and last lines of the blocks
of the file that I need, and then diff will load these blocks
together.

--
ZheNing Hu




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux