lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

add branch flag

Open Mic92 opened this issue 3 years ago • 1 comments

I don't know if I am the only one with the workflow, but I like to sometimes look at other branches like this:

lazygit log -b master

Right now this is the only reason I have still installed tig

tig master

Mic92 avatar Aug 15 '22 04:08 Mic92

This is a good idea for a feature. Rather than populate the commits panel it makes more sense to populate the 'sub-commits' panel which you reach when you press enter on a branch in the local branches panel. This way, we won't have keybindings available for things like rebasing, which are only applicable to the commits of the current branch.

So what would be good would be to, upon starting lazygit with that new argument, switching to the branches window and entering the subcommits context for the given branch (we use the word context in the code but context == panel).

It would also be good to set the screen mode to SCREEN_HALF as we do when running lazygit log

jesseduffield avatar Aug 15 '22 10:08 jesseduffield

Don't know, when I will get back to this. I will re-open this branch in that case. For now everyone else feel free to take it from there.

Mic92 avatar Sep 28 '22 12:09 Mic92