Hey there, I'm starting with Tig and I love, it, but I'm having some trouble with switching views.... Mostly, what I want is to stage a chunk of a file
For example, I open tig status
to open status view.
Then I select the file I want to stage (move with arrows <up> <down> and then press <enter>). This splits the view in two.
Here, I'd guess I can switch to the new view pressing <tab>, and then move in that view with <up> <down> arrows, but it's not the case. I can only move with <j> and <k>, and the focus window changes if I press <tab>.
Is this the expected behaviour or I may have found a bug? (I'm in MacOS and tried already with bash and zsh shell)
is anybody using the Triangular Work Flow?
per default i pull from remote-1
and push to remote-2
.
$ git status
On branch master
Your branch is up to date with 'remote-1/master'.
nothing to commit, working tree clean
here i miss the information Your branch is ahead of 'remote-2/master' by 1 commit.
$ git push
To /tmp/demo/remote-2/.
727c2ed..588321f master -> master
is it a good idea to get this information from .git/config
and display it in refs-view
and status-view
?
bind generic xrc !sh -c "$EDITOR $HOME/.tigrc"
tig
and then pressing d
, can I do this in a single command? I've tried git diff | tig
but that's different from the diff view as it doesn't support jumping to the diff of a file.
tig show
@ouuan Well, you are looking for
tig show
Though it is a little counter-intuitive, but already written in manual:
https://jonas.github.io/tig/doc/tig.1.html
tig show
shows the latest commit like git show
. Can I use it to show the unstaged changes like git diff
?
I've tried
git diff | tig
but that's different from the diff view as it doesn't support jumping to the diff of a file.
I just realized that the diff view of the unstaged changes doesn't support jumping to the diff of a specific file. However, it supports using the @
key to jump to the diff of the next file, while git diff | tig
doesn't.
Hey all
Has anyone here seen tig's bash completion flat out stop working when upgrading to a later tig version, like 2.4 or 2.5?
I'm on Gentoo. All other bash completion works fine. Tig's used to work fine, also.
https://github.com/jonas/tig/issues?q=is%3Aissue+bash doesn't find anything obviously relevant
2.5.1 did ship jonas/tig#795 - but I can't tell why it wouldn't work