regex - What is the use of ,/^}/ when searching through Git using regular expression? -


i'm learning git following book "progit 2nd edition".

in section discussing "git log -l", author mentioned

enter image description here

i understand string between '/ /' treated regular expression, wondering ,/^}/ there for?

i had query git log -l '/mymethodname/':myjavafilename , worked expected. why did author included ,/^}/?

/pattern1/,/pattern2/ defines range of lines between 2 patterns.

/^}/ means line starts }


Comments