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

Focus current commit when starting tig (tig --all) #755

Closed
unode opened this issue Oct 24, 2017 · 2 comments
Closed

Focus current commit when starting tig (tig --all) #755

unode opened this issue Oct 24, 2017 · 2 comments

Comments

@unode
Copy link

unode commented Oct 24, 2017

When using tig --all all commits and branches are displayed.
The longest branch (more commits) is usually the one selected since the first commit on the commit history usually belongs to this branch.

tig's default behavior is to focus on the first commit. This can be confusing if the checked out branch is not the longest.

With that I'd like to request a feature, the ability to focus on the current commit when tig is launched.
This way, even if the commit history includes longer branches, tig would "scroll" the history to focus on the checked out commit (and branch).

@vitalybe
Copy link

That would be very useful. In fact, once tig does it, I think --all should be on by default.

@zarac
Copy link

zarac commented Jun 19, 2019

Thumbs up for this! It'd be so useful.

koutcher added a commit to koutcher/tig that referenced this issue Jun 24, 2019
Add "set start-on-head = yes" to your .tigrc to enable the option.

Closes jonas#755
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants