Allow to toggle full commit diff from within the diff view
Currently if you open up a path such as tig ./src then you see all commits that modified files in that path. So far so good. But if you then view one of those commits by pressing enter you see the changes in that commit that modify the path but not the changes in the commit that modify files outside of the path.
Is there any way to switch to the full commit view once you are looking at the partial commit?
Also, thanks for Tig! It's great. I tried to search for this issue but wasn't able to find anything relevant.
You can toggle the file filter to see the whole commit diff. It's bound to
% by default.
bind generic % :toggle file-filter
I don't know if we could put a help message somewhere to make this more obvious. On Dec 23, 2014 4:14 PM, "Jason Axelson" [email protected] wrote:
Currently if you open up a path such as tig ./src then you see all commits that modified files in that path. So far so good. But if you then view one of those commits by pressing enter you see the changes in that commit that modify the path but not the changes in the commit that modify files outside of the path.
Is there any way to switch to the full commit view once you are looking at the partial commit?
Also, thanks for Tig! It's great. I tried to search for this issue but wasn't able to find anything relevant.
— Reply to this email directly or view it on GitHub https://github.com/jonas/tig/issues/356.
I was going to suggest that it be added to the help section but now I see it is already in there % :toggle file-filter.
My suggestion (which is counter to how much of tig documentation currently works) is to put an informative message at the very bottom of the diff view when you currently have a file-filter on. It could say something like: "You are currently only viewing the part of the diff that matching the path './src'. To view the full diff press '%'. This feature is called file-filter."
Possibly that could only be shown when the diff view is being restricted by the file filter.
Also, thanks! This will be really helpful for my usage of tig. This was one of my largest nits. The other one was trying to go back in the history when looking at the blame view, and today I figured out that you can do this using ','. Which is super awesome. I wish github had something similar as well. But as far as I can tell they do not.
Yes, having this information would be useful and if it is in the diff view it would even be toggled with Enter.
I just found this comment so I don't need to open my own issue for the very same topic. Thanks for pointing out % it will be extremely useful.