History of changes to a particular line of code in Subversion

前端 未结 11 2061
轮回少年
轮回少年 2020-12-02 22:05

Is it possible to see the history of changes to a particular line of code in a Subversion repository?

I\'d like, for instance, to be able to see when a particular st

11条回答
  •  一个人的身影
    2020-12-02 22:48

    This can be done in two stages:

    1. svn blame /path/to/your/file > blame.tmp
    2. grep "your_line_of_text" blame.tmp

    You can delete blame.tmp file afterwards if you don't need it.

    In principle, a simple script can be written in any scripting language that does roughly the same.

提交回复
热议问题