Closed seanmcn closed 6 years ago
@Seanmcn Well, from my point of view, I think it makes sense to show only the specified file with git show. So no objection for me. Let's merge it for now and we will see later if someone has a different pov. Thanks for your PR. :+1:
As I mentioned in #18 the option to limit to a certain file is something I'd love. Almost a year later here is a pull request for you. 😆
Changes allow you to specify a path or file name with -p (or --paths) to recall commits only made on that path or file name.
Implementation is pretty simple, just adding whatever is passed in to the end of the
git log
&git show
command.I'm unsure if having it on
git show
should be a flag or not, for my use case when viewing the diff I again only want to see the path or files specified, I'm unsure if anyone else would think differently, and if so what the default behavior should be. Any input on that would be great and I can make any changes needed.