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

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -