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
Martin Darmüntzel
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? :)
Jonas Fonseca
@dragoonis I suggest to open an issue against brew.
Excuse me, I want to know how to install tig?
You can install from homebrew if on a Mac.
Anyone know how to bind to Alt-<key>?
Can tig show the status of a directory? tig . will filter the log but pressing 's' or tig status -- . shows the status of the whole repo.
Collin Peters
Question: I added to my tigrc this to enable verbose mode bind generic C !git commit -v. However it A) doesn't work in the main view as the C key still opens up a cherry-pick and B) in status view I don't get the verbose mode. If I add bind status C !git commit -vthen I get the verbose mode from the status view.
Am I doing something wrong here?
Collin Peters
tig version 2.3.0
Sebastian C
Does tig support bare repos?
Jonas Fonseca
@collinpeters The default keybindings wire C in the main view, so you need to also add bind main C !git commit -v.
@sebsebmc Yes, it supports browsing bare repos. The status view is disabled though because there is no work tree.
Sebastian C
There's no way to specify a work-tree?
Igor Almeida
probably with git config directly
Jonas Fonseca
@sebsebmc Specifying one with GIT_WORK_TREE or in the Git config file should work.
What Igor said.
Hello there! Noob question: When I'm in the refs view, is it possible to fuzzy find a branch? Or filter the list in any way?
Jonas Fonseca
@juanzuluaga_twitter It's possible to set TIG_LS_REMOTE to a script or command that will output something similar to git show-refs --dereference