Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 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
André Martingo
@AFGM
can anyone help me with the meaning of M and O
I didn't understood
Jonas Fonseca
@jonas
M=merge commit, O=illustrates a "circle" (normal commit).
André Martingo
@AFGM
and the lines that come from one commit and another, how should I read the graph?
by columns or lines?
Jonas Fonseca
@jonas
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
@igoralmeida
@AFGM if you[r terminal] can, I recommend using set line-graphics = utf-8
André Martingo
@AFGM
@Jonas thanks jonas
Kevin Roulleau
@Kignuf

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
@Kignuf

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
@jonas
:+1: ... indeed the name listed is not "fully qualified" unfortunately.
Joar Wandborg
@joar

@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
@jonas
@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
@MaikKlein
Can tig switch branches with autocompletion?
Jonas Fonseca
@jonas
No
Paul Dragoonis
@dragoonis
Hey
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? :)
@proski
Jonas Fonseca
@jonas
@dragoonis I suggest to open an issue against brew.
houlonglong
@houlonglong
Excuse me, I want to know how to install tig?
bigkahuna1uk
@bigkahuna1uk
You can install from homebrew if on a Mac.
Net
@net
Anyone know how to bind to Alt-<key>?
judfs
@judfs
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
@collinpeters
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
@collinpeters
tig version 2.3.0
Sebastian C
@sebsebmc
Does tig support bare repos?
Jonas Fonseca
@jonas
@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
@sebsebmc
There's no way to specify a work-tree?
Igor Almeida
@igoralmeida
probably with git config directly
Jonas Fonseca
@jonas
@sebsebmc Specifying one with GIT_WORK_TREE or in the Git config file should work.
What Igor said.
Juanda
@juanzuluaga_twitter
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
@jonas
@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
Christoph Berg
@df7cb
Is there a way to make it use git log --date-order instead of topo order?
Ah I see it now in .tigrc, I was only checking http://jonas.github.io/tig/doc/manual.html
Jonas Fonseca
@jonas
@/all Version 2.4.0 has been released. Thanks to everyone who contributed! https://github.com/jonas/tig/releases/tag/tig-2.4.0
Jonathan Oberländer
@L3viathan
Hi there! I'm looking to implement an ASCII representation of a (DA) graph in an unrelated application (nothing to do with Git, either). Does tig do the git graph visualization (in the main view) itself (in that case: where can I find the algorithm/the source of that), or does that come from some git command?
Jonathan Oberländer
@L3viathan
Ah, nevermind, I see it's a variant of git log --graph --oneline
Jonas Fonseca
@jonas
Tig builds the graph by parsing git-log output. Code is in src/graph-*.c
Nichlas Hummelsberger
@Nichlas
Hi Jonas, Have you considered building tig as a snap package?
Net
@net

I wonder what's causing jonas/tig#582, as escape seems to be already implemented:

https://github.com/jonas/tig/blob/master/src/prompt.c#L670-L672

Jonas Fonseca
@jonas
@Nichlas There is a snap configuration but it is using classic confinement and hasn't been accepted. Didn't have much time to figure out how to change the confinement.
Jonas Fonseca
@jonas
@net You are right. Are you using readline?
svenn71
@svenn71
How can I check out a single file from tree view in repository cloned with -n --depth 1?