您可以在svn diff本身内完成此操作,它也适用于Windows。假设您想要20行的上下文,您可以执行以下操作:svn diff -x -U20引自svn diff how to only show changed line。