Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Jan 28 22:21
    verdie-g opened #893
  • Jan 28 10:19
    VonUniGE commented #340
  • Jan 28 02:20
    rcywongaa closed #869
  • Jan 26 20:30
    smkniazi edited #892
  • Jan 26 20:29
    smkniazi edited #892
  • Jan 26 20:28
    smkniazi opened #892
  • Jan 24 10:38
    timotheecour edited #890
  • Jan 24 09:20
    timotheecour opened #891
  • Jan 24 00:29
    timotheecour opened #890
  • Jan 23 22:09
    KeeReal commented #869
  • Jan 23 20:58
    avivey opened #889
  • Jan 21 23:26
    timotheecour commented #559
  • Jan 21 21:16
    koutcher commented #559
  • Jan 21 20:47
    koutcher commented #559
  • Jan 21 18:39
    smancill commented #559
  • Jan 21 07:11
    timotheecour commented #559
  • Jan 20 17:01
    smancill commented #559
  • Jan 20 10:25
    koutcher commented #559
  • Jan 20 02:54
    timotheecour commented #559
  • Jan 20 01:56
    timotheecour opened #888
Vivien Didelot
I have this when simply running tig
Screenshot from 2017-09-22 14-19-51.png
then this when doing Ctrl+L
Jonas Fonseca
Hi Vivien!
I'll take a look.
is it possible to use tig without pagination? I'd love to have a replacement for git log --oneline --graph that renders the graph the same as tig does
Jonas Fonseca
I played with supporting something like that at one point, but never managed to complete it.
Martin Darmüntzel
Hi, I have a small problem. The "unstaged changes" are not shown. I tried different versions of tig and in 2.0.3 they're shown and they're missing after 2.1. I have no .tigrc, so I'm working with default settings. Am I doing something wrong?
Igor Almeida
@hutchison even if you press s while in the main view ?
Martin Darmüntzel
Then I'm getting a different view and it's not the same as git diff.
What I mean is the "unstaged changes" at the top of the main view.
It's unfortunate because I liked that :smile:
Jonas Fonseca
@hutchison Are you seeing this with the latest Tig master? What Git version are you using?
Jonas Fonseca
There was a few changes to that part of the code between 2.0.3 and 2.1, but nothing springs out.
Martin Darmüntzel
Ok, I think it's not tig's fault – it has something to do with the name of the current branch.
It seems to me that if the name of the branch contains an umlaut (like ä, ü, ö) then the unstaged changes are not shown.
Martin Darmüntzel
Bildschirmfoto 2017-10-01 um 09.16.49.png
Bildschirmfoto 2017-10-01 um 09.16.58.png
Bildschirmfoto 2017-10-01 um 09.17.13.png
Bildschirmfoto 2017-10-01 um 09.17.36.png
So it seems that if I avoid umlauts then everything will be fine.
Jonas Fonseca
Interesting, I'll look into adding some tests for that
Hi, is there a way to clear a search?
Jonas Fonseca
No, unfortunately the "edit" and "search" modes are not that advanced.
Tim Vaughan
@jonas Just want to say a big "thank you" for putting together such an awesome tool. tig has been my go-to tool for visualizing the current state of the commit graph for many years now, to the point where I feel distinctly handicapped on any system where it's not installed. It's much better at this job than git log --graph and even magit on emacs. So thank you!
Jonas Fonseca
Thank you @tgvaughan for the kind words.
André Martingo
Screen Shot 2017-11-13 at 16.18.26.png
can anyone help me with the meaning of M and O
I didn't understood
Jonas Fonseca
M=merge commit, O=illustrates a "circle" (normal commit).
André Martingo
and the lines that come from one commit and another, how should I read the graph?
by columns or lines?
Jonas Fonseca
It works similar to git log --graph so should be read similarly.
Commits are sorted useing git-log's --topo-order parameter
Show no parents before all of its children are shown, and avoid showing commits on multiple lines of history intermixed.
Igor Almeida
@AFGM if you[r terminal] can, I recommend using set line-graphics = utf-8
André Martingo
@Jonas thanks jonas
Kevin Roulleau

Hello, I'm trying to setup ~/.tigrc file so that the date always displays as abbreviated, but it doesn't work, here is the error:
tig warning: ~/.tigrc:1: Unknown option name: date-display

Does anyone know what I'm doing wrong ? Thanks

in my ~/.tigrc file I've got:
set date-display = relative-compact
Kevin Roulleau

I got it working, the actual variable name is not the one displayed in tig when toogling the option. See "View settings" section in the documentation https://jonas.github.io/tig/doc/tigrc.5.html

In the end my file looks like this:
set main-view-date = relative-compact
set main-view-author = abbreviated
set main-view-commit-title-overflow = 50
set line-graphics = utf-8

Jonas Fonseca
:+1: ... indeed the name listed is not "fully qualified" unfortunately.
Joar Wandborg

@jonas Using tig 2.2: I have a .gitattributes file with

*.crypt.* filter=git-crypt diff=git-crypt
.gitattributes !filter !diff

.git/config contains

[filter "git-crypt"]
    smudge = \"git-crypt\" smudge
    clean = \"git-crypt\" clean
    required = true
[diff "git-crypt"]
    textconv = \"git-crypt\" diff

git diff uses the filter and/or diff from .gitattributes, but tig does not use it when viewing an unstaged diff, is this a bug or a missing feature?

I noticed that git show does not use the filters either
Jonas Fonseca
@joar Tig is quite old-school when it comes to the status and stage views. It uses git diff-index, which probably doesn't honor .gitattributes.
Maik Klein
Can tig switch branches with autocompletion?
Jonas Fonseca
Paul Dragoonis
brew install tig
Warning: You are using OS X 10.13.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
==> Downloading http://jonas.nitro.dk/tig/releases/tig-2.1.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/tig-2.1.1.tar.gz
==> Downloading https://github.com/jonas/tig/commit/91912eb97da4f6907015dab41ef9bba315730854.diff
Already downloaded: /Library/Caches/Homebrew/tig--patch-263e86b25f788eb158bdd667e112bc839debe9e3fe788cbc39cc9654b65b6c8a.diff
Error: SHA256 mismatch
Expected: 263e86b25f788eb158bdd667e112bc839debe9e3fe788cbc39cc9654b65b6c8a
Actual: 90980d22658286f33d08b61ed69c630742b2c2150638e8f02ee33d76a676c1ca
Archive: /Library/Caches/Homebrew/tig--patch-263e86b25f788eb158bdd667e112bc839debe9e3fe788cbc39cc9654b65b6c8a.diff
To retry an incomplete download, remove the file above.
Help? :)