-
-
Notifications
You must be signed in to change notification settings - Fork 608
View log/history of a file #381
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
Comments
file history is a feature I definitely want to support down the line! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I'd like to add that it'd be nice if gitui had a file browser view/tab which would tell me which files/dirs are committed, staged, dirty (there's a diff), (... have merge conflicts), where I can press a key and see the diff, the history, blame, etc. Ah, it's not hard to be wanting things ... :-) Thanks for gitui! |
@tpo I am not sure how the current |
Hi @extrawurst
Yes it is. However what I am missing is a view that is first and foremost file based. Not based in the first place on whether something is dirty or staged. That said - this is my first impression: my first reaction when starting gitui was "uuuhm, where are my files?" and I instantly started searching whether there's a tab or keystroke that would bring the respective view up. |
@tpo I agree such a tab would have some use, but considering my most used git GUIs none of them focuses on such a view as a primary one. almost all (lazygit, tig, fork) focus on either uncommitte changes or revlog. dunno about tig/lazygit but in fork a file-tree is only accessible via a specific commit. long story short, such a file tree has no super high priority for me personally right now. |
While I agree that it's not the most important feature it would be nice to select a path and do a git log on it. |
Getting a file history as requested by @jarod is on the
|
@extrawurst Can you tell me how this relates to #429 and #449? Are both features supposed to be separate? If they are, I would start working on the file log. |
I do not see any relation between those two and this one 🤔. for this I envision something similar to let me know if I am missing something :) |
@cruessler note that the beefy task here is to build the this will likely involve doing an entire revwalk down to the commit that introduced/created the file. this has to support doing this as a thread job again. please check out the newly added If we wanna do nice small manageable iterations I'd suggest these three steps:
Bonus: If we revwalk a giant repo it would be nice to know a progress percentage while waiting for the file history to be gathered. Let me know what you think! |
@extrawurst That sounds like a good idea to me! I’ll open a PR as soon as the first part is done. |
@extrawurst I just saw that you re-factored |
@cruessler yeah lets extend |
@cruessler if you need more inspiration for this, there is a libgit2 based implementation here: libgit2/libgit2sharp#963 |
@cruessler any progress on this? |
Yes, I’ve started working on the remaining functionality and will hopefully be able to present an update this weekend. |
@extrawurst It took longer than expected, but today I got a first version working. There are still a few rough edges, but I might be able to open a draft PR this weekend! |
that sounds great, looking forward to see it in action |
Is your feature request related to a problem? Please describe.
As what
gitk <filename>
do. You can view commit logs of the file specified. Then select one of the logs to view changes made to the file in that commit.Describe the solution you'd like
not serious thoughts:
gitui <filename>
any file list view
above include but not limit to:Unstaged Changes
andStaged Changes
windowFiles
window when view a commit logAdditional context

gitk Cargo.toml
onripgrep
repo:The text was updated successfully, but these errors were encountered: