Skip to content

Commit 6b57805

Browse files
author
Kaartic Sivaraam
committed
Merge sentences and modify it as suggested by @ben
The long sentences were merged into one short concise to increas readability.
1 parent b7c94eb commit 6b57805

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

book/07-git-tools/sections/searching.asc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,7 @@ If you need to be more specific, you can provide a regular expression to search
111111
===== Line Log Search
112112

113113
Another fairly advanced log search that is insanely useful is the line history search.
114-
This can be really helpful.
115-
It is called with the `-L` option to `git log`.
116-
It will show you the history of a function or line of code in your codebase.
114+
Simply run `git log` with the `-L` option, and it will show you the history of a function or line of code in your codebase.
117115

118116
For example, if we wanted to see every change made to the function `git_deflate_bound` in the `zlib.c` file, we could run `git log -L :git_deflate_bound:zlib.c`.
119117
This will try to figure out what the bounds of that function are and then look through the history and show us every change that was made to the function as a series of patches back to when the function was first created.

0 commit comments

Comments
 (0)