After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 702686 - Reloading a repository moves the selected commit
Reloading a repository moves the selected commit
Status: RESOLVED FIXED
Product: gitg
Classification: Applications
Component: gitg
git master
Other Linux
: Normal normal
: ---
Assigned To: gitg-maint
gitg-maint
Depends on:
Blocks:
 
 
Reported: 2013-06-19 20:15 UTC by Germán Poo-Caamaño
Modified: 2014-07-10 20:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Germán Poo-Caamaño 2013-06-19 20:15:57 UTC
I do not know whether intentional or not, but:

1. Open a repository
2. Browse some commits (not the first one)
3. Press F5

Result:
The cursor moves to the first commit

Expected result:
Reloaded history but keep the previously selected commit.

In my case, it happens by mistake and it is cumbersome to find again the previous commit (there is not history of visited places).

I can press Home to go to the first commit, but I need to do more work to go back when I was, specially when looking 'All commits' and having checked a branch for a new commit (it went to master).
Comment 1 Techlive Zheng 2013-12-06 19:56:51 UTC
Why do you even "Refresh" the repostiory, if your commit hasn't been changed yet? Refreshing repository means commits in the repository might have being changed, that says, the commit you were previously on is probably changed(usually caused by rebasing or someting), so there is no way to refocus on it.
Comment 2 Germán Poo-Caamaño 2013-12-06 20:13:16 UTC
If I commit on a terminal, gitg rarely detect new commits.

If a file was selected, then why not keep selected that one? Likely I am working on the same file and I want to see the diff and whatnot.
Comment 3 Techlive Zheng 2013-12-06 20:25:45 UTC
I also commit on a terminal, and gitg only serves a diff purpose.


What do you mean by "If a file was selected"? I thought you were saying to stay on the commit you were previously on, which as I said there is a great chance that commit was gone, but we could try to find that commit, At least for my situation, because I rebase a lot. If you were saying to stay on the same file in the file view no matter whatever commits it is, it could be done I think.
Comment 4 Germán Poo-Caamaño 2013-12-06 20:36:26 UTC
Maybe it has changed in master.  In such case, close this as invalid.
Comment 5 jessevdk@gmail.com 2014-07-10 20:19:03 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.