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

start view at specific commit/rev #1287

Open
plgruener opened this issue Jun 28, 2023 · 1 comment
Open

start view at specific commit/rev #1287

plgruener opened this issue Jun 28, 2023 · 1 comment

Comments

@plgruener
Copy link
Contributor

I like to use tig --all as a history browser and see the relations of branches (which branches is featurex branched off of/merged into…?)

Right now tig always opens (the main view) at the most recent commit (as determined by the commit ordering I guess). Even when you invoke it like tig rev2 rev1 it always selects the top commit, and you have scroll down or /-search or :goto rev.

It would be nice if, analogous to starting at a certain line number (tig +<number>), we could do something like tig :rev or maybe tig :goto=rev to immediately open it at the specified commit.

Maybe that could also be extended to execute arbitrary :-prompt-commands at startup.

@krobelus
Copy link
Contributor

you can set TIG_SCRIPT to execute arbitrary commands at startup

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

2 participants