Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

See changed files in commit #98

Open
firedev opened this issue Dec 17, 2015 · 9 comments
Open

See changed files in commit #98

firedev opened this issue Dec 17, 2015 · 9 comments
Labels
feature request Functionality that is not yet possible need more info The bug cannot be recreated or the feature is unclear
Milestone

Comments

@firedev
Copy link

firedev commented Dec 17, 2015

Hi!

Is it possible to see only files that were changed in commit? I can't seem to find anything like this in the docs. Thanks.

@rbong
Copy link
Collaborator

rbong commented Dec 12, 2016

If you type in just S (capital S) you can see a list of files.

@rbong rbong closed this as completed Dec 12, 2016
@firedev
Copy link
Author

firedev commented Dec 12, 2016

I believe what I've meant is git show --name-only if this is something that is possible, please point me to this. S shows the whole tree.

@rbong rbong reopened this Dec 12, 2016
@rbong
Copy link
Collaborator

rbong commented Dec 17, 2016

Sorry, I don't use S much. I didn't realize that.

I've added the ability to pass in arbitrary options with g:Gitv_PreviewOptions. You can set it to --name-only temporarily with a custom mapping. Unfortunately, this can't use the Gedit family of commands, so you can't jump directly to the files.

@rbong rbong closed this as completed Dec 17, 2016
@firedev
Copy link
Author

firedev commented Dec 19, 2016

Sorry, I was pressing S when looking at the commit diff, that just opened the split to edit and I was seeing the files because that is how it works in the first line.

Pressing S in the commits list just calls substitute. Where exactly can I use it?

@rbong
Copy link
Collaborator

rbong commented Dec 19, 2016

S isn't what you want but it was recently broken by the bindings overhaul. Can you update and try again?

By the way, g:Gitv_PreviewOptions is for showing commits with o or <CR>, not S.

@firedev
Copy link
Author

firedev commented Dec 23, 2016

Sorry, S does nothing still, o and CR open normal git show

@rbong rbong reopened this Dec 23, 2016
@rbong
Copy link
Collaborator

rbong commented Dec 23, 2016

What commit are you on? What is g:Gitv_PreviewOptions set to?

@rbong
Copy link
Collaborator

rbong commented Apr 14, 2017

Bindings have recently been fixed for repositories with large numbers of commits in newer versions of git.

Are you still experiencing issues?

I am adding this to the 1.5.1 milestone and keeping it open for improved functionality with --name-only.

@rbong rbong added this to the 1.5.1 milestone Apr 14, 2017
@rbong rbong added need more info The bug cannot be recreated or the feature is unclear feature request Functionality that is not yet possible labels Jun 9, 2018
@zzxyz
Copy link

zzxyz commented Aug 1, 2018

Apologies if this is not quite the right issue, but I think it is. Is this something that's resolved/added? My vim-fu is fairly weak, so I may be missing something obvious in the documentation. My basic use case is opening vim on a directory, only seeing the relevant commits with this plugin (that works), and then only seeing the files that commit touched when I select that commit. I tried , S, and o.

This demonstrates the attempted use if my description isn't clear:
https://asciinema.org/a/rHo9v2ukc980wgd0QQRXmjBWe

Thank you for this plugin. It is extremely awesome. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Functionality that is not yet possible need more info The bug cannot be recreated or the feature is unclear
Projects
None yet
Development

No branches or pull requests

3 participants