Git View code history changes from n to m lines
滿天的星座
滿天的星座 2017-05-02 09:46:42
0
1
559

There are 5000 submissions in the Git warehouse, and each submission has a file name

  chuxiandi_file

Modified.

  PS:chuxiandi_file 可以翻译成“出现帝”。

Among them, there is a function named

in chuxiandi_file
  xianshijing_function

Among them, xianshijing_function occupies 50 lines--100 lines.
Of course, although xianshijing_function cannot be modified in every commit, it has indeed been modified in many commits.

  PS: xianshijing_function 可以翻译成“现世精”

Then the question is, can git only check the changes of xianshijing_function in 5000 commits?

滿天的星座
滿天的星座

reply all(1)
phpcn_u1582
man git-log

里边有写:

−L <start>,<end>:<file>, −L :<funcname>:<file>

Trace the evolution of the line range given by "<start>,<end>" (or the function name regex <funcname>) within the <file>. You may not give any pathspec limiters. This is currently limited to a walk starting from a single revision, i.e., you may only give zero or one positive revision arguments. You can specify this option more than once.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template