File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
book/02-git-basics/sections Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,12 @@ $ git log -S function_name
262
262
263
263
The last really useful option to pass to `git log` as a filter is a path.
264
264
If you specify a directory or file name, you can limit the log output to commits that introduced a change to those files.
265
- This is always the last option and is generally preceded by double dashes (`--`) to separate the paths from the options.
265
+ This is always the last option and is generally preceded by double dashes (`--`) to separate the paths from the options:
266
+
267
+ [source,console]
268
+ ----
269
+ $ git log -- path/to/file
270
+ ----
266
271
267
272
In <<limit_options>> we'll list these and a few other common options for your reference.
268
273
You can’t perform that action at this time.
0 commit comments