Questions tagged [tig]

Tig is a text mode git repository browser that additionally can act as a pager for output from various git commands.

Tig is a text mode git repository browser that additionally can act as a pager for output from various git commands.

When browsing repositories, it uses the underlying git commands to present the user with various views, such as summarized revision log and showing the commit with the log message, diffstat, and the diff.

Using it as a pager, it will display input from stdin and colorize it.

Source: Tig: text-mode interface for git

54 questions
22
votes
1 answer

Tig revert (checkout) single line / chunk

Is there an option to revert changes from a single chunk in Tig's Status View? I mean functionality opposite to u or 1. I am aware of ! operation, but this one reverts the whole file - not just a single change.
houen
  • 931
  • 9
  • 18
15
votes
1 answer

Shortcut for making tig showing all the branches

There is tig --all but I want to be able to switch between usual tig and tig --all interactively. Is there a way to do this?
Evmorov
  • 1,134
  • 22
  • 28
14
votes
3 answers

tig blame view: How to come back (child commit) after loading parent commit

In a blame view, I use ',' to load blame for the parent commit. How to come back to the child?
Dilip M
  • 141
  • 5
11
votes
1 answer

How to view the full commit diff in tig when viewing the diff for a single file?

In the Tig text-mode interface for git, one can view a blame for an individual file and then open a diff view to see that commit that modified that line. e.g. tig blame file.cpp (Select a line, press enter.) However, the diff displayed is limited…
Vincent Scheib
  • 17,142
  • 9
  • 61
  • 77
8
votes
3 answers

git completion in zsh: __git_func_wrap:3: : not found

git-completion.zsh and git-completion.bash are installed automatically when running brew install git: ❯ ls -l /usr/local/share/zsh/site-functions/_git lrwxr-xr-x 56 quanta 7 Jul 18:54 /usr/local/share/zsh/site-functions/_git ->…
quanta
  • 3,960
  • 4
  • 40
  • 75
8
votes
2 answers

How to change orientation in tig status view

I need to swicth between landscape and portrait orientations in tig status view cause sometimes diff line doesn't fit to right part of view.
Evgen Druzhynin
  • 188
  • 2
  • 7
8
votes
1 answer

Can I change the default view of tig?

The "main" view is the default in tig. Is it possible to change this in tigrc? Specifically, I would like the status view as default.
Haakon
  • 1,741
  • 10
  • 19
7
votes
2 answers

How to get proper diff of merge commit in tig

if i got into tig main view, i get a nice graph of commits and merges. i'd prefer to just look at the merge commits to trunk but unlike with normal commits tig where tig shows the full diff with file contents, on merge commits it just shows a list…
kapilt
  • 264
  • 1
  • 6
6
votes
3 answers

Take sha number of commit by tig

I love to use tig client to navigate through git commits. But I'm missing one thing for now. Is there a key binding to take a sha number of a git commit I'm currently staying at?
megas
  • 21,401
  • 12
  • 79
  • 130
5
votes
2 answers

Showing a file tree view of a commit in tig

I'm using tig and would like to see the list of changed files in a commit, possibly drilling down to a diff view of a specific file, yet I haven't found a way to do this. Is it possible, or is only the diff view available on a commit?
Stavros Korokithakis
  • 4,680
  • 10
  • 35
  • 42
4
votes
1 answer

How do I undo maximize in tig?

In tig, I start in the main view, and when I hit Enter on a commit, I get a split-screen with the diff view. I'm scrolling through the diff view, and then I accidentally type O. Now the diff view is maximized. I did not want this, and want to go…
Kate Bertelsen
  • 3,900
  • 5
  • 24
  • 18
4
votes
2 answers

tig configuration : set on tigrc --all as default

In my tig configuration I usually use the command: tig --all How can I set this as the default in ~/.tigrc ?
user3313834
  • 7,327
  • 12
  • 56
  • 99
4
votes
1 answer

Git tool `tig`: What do those letters in the graph mean?

When I run tig, I see a graph of the branches. It uses letters on those lines to show what happened there: “o” means commit “M“ is a merge “I” is a merge What is the difference between “M” and “I”?
Robert Siemer
  • 32,405
  • 11
  • 84
  • 94
4
votes
1 answer

Can Tig color commits of different branches differently?

In tig, I find it often hard to find out which commit belongs to which branch. In gitk, this is much more easier. I think this is because of two things. Firstly, gitk colors the branches differently (I mean the lines between commits) and secondly,…
Rolf
  • 1,129
  • 11
  • 27
3
votes
1 answer

Is it possible to apply single lines from stash?

I'm looking for a way to include specific parts of stashes in stage. I'm using TIG frontend, so the method can involve some low level offset, etc. calculation. However currently I don't have any idea of what to compute. Does someone have an idea of…
psprint
  • 349
  • 1
  • 10
1
2 3 4