See the History of a Method with git log -L

Git can “trace the evolution” of a specific method when passed -L using the : variant. Let’s take a look at the history of this blog’s posts’ published scope, which is used in most places that articles are listed out. You can see that git is able to identify the boundaries of the method even as the length changes and it prints out the full method with diff from each commit in the log, which is filtered to changes to that method.
See the History of a Method with git log -L #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/see-the-history-of-a-method-with-git-log-l

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles