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!
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.
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 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?
git show
does not use the filters either
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.