Skip to contentSkip to conversation

tig-0.15

ANNOUNCE Jonas Fonseca 2 participants 8 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Hello,

After a long time of silence, here is a brand new version of tig with changes that has accummulated since version 0.14.1. It mainly brings minor improvements for tweaking tig usage via keybindings and options.

Thanks to everybody who provided patches.

What is tig?
------------
Tig is an ncurses-based text-mode interface for git. It functions mainly as a git repository browser, but can also assist in staging changes for commit at chunk level and act as a pager for output from various git commands.

- Homepage: http://jonas.nitro.dk/tig/
- Manual: http://jonas.nitro.dk/tig/manual.html
- Tarballs: http://jonas.nitro.dk/tig/releases/
- Git URL: git://repo.or.cz/tig.git
- Gitweb: http://repo.or.cz/w/tig.git

Release notes
-------------
Incompatibilities:

- Setting the cursor color no longer automatically sets the text to bold. The old 'lazy' behavior was a bug.
- Remove check for git-repo-config, which was officially deprecated in git version 1.5.4. The configure script no longer depends on git being installed.

Improvements:

- Provide the manual as a man page named tigmanual(7).
- Add ability to toggle between showing shorter dates (without time info) and relative dates. Use 'D' to toggle between date formats.
- Show the active (instead of the default) keybindings in the help view. Furthermore, honor the keymap when suggesting actions in the help messages.
- Add branch view for choosing which branch to display in the main view. Bound to 'H' by default.
- Tree view: show entry to parent directory ('..') when running from subdirectory.
- Tree view: sort entries by name, date or author. Toggling is bound to 'i' by default, with 'I' controlling whether or not to sort in ascending order.
- Make height of the lower view in a split view configurable by setting the 'split-view-height' variable to a number or a percentage. Defaults to 2/3 of the total view height.
- Allow multiple text attributes for color commands:

color cursor white blue underline bold

Bug fixes:

- Blame view: fix loading of blame data when opened from the tree view and CWD is not the repo root. (Debian bug 540766)
- Tree view: fix searching.

Change summary
--------------
The diffstat and log summary for changes made in this release.

 .gitignore          |    1 +
 INSTALL             |   40 +-
 Makefile            |   13 +-
 NEWS                |   39 ++
 TODO                |    3 -
 VERSION             |    2 +-
 configure.ac        |    7 -
 contrib/aspell.dict |    8 +-
 manual.txt          |  249 ++++----
 tig.1.txt           |    2 +-
 tig.c               | 1549 ++++++++++++++++++++++++++++++-------------
 tigmanual.7.txt     |   20 +
 tigrc.5.txt         |  365 +++++------
 13 files changed, 1497 insertions(+), 801 deletions(-)

Giuseppe Bilotta (2):
Fix previous/next with branch+main view
Predefined external command: git commit

Ingmar Vanhassel (1):
Makefile: Fix typo in 157ebf54

Jeff King (1):
Add missing NULL in blame_grep

Jonas Fonseca (40):
Add small cache for author names to reduce memory foot-print Reduce memory and startup time by storing author times as time_t Simplify searching in view lines by defining grep_text utility Define a tree_grep and fixing searching
Make the granular allocators more customizable using macros Remove the need for alloc variables
Define an allocator for run requests
Update the current branch information when reloading all references Fix a potential problem with reading tokens larger then BUFSIZ Add primitive branch view
Minor fix to always sort even if allocation fails in get_refs Use temporary variable in refs loop in main_draw
Branch view: fix loading to handle when two branches have same commit Add support for sorting tree entries by name, date or author Add support for sorting branch entries by name, date and author Fix reloading of references to not cause access to freed memory Restore the branch view position after refreshing
Add simple support for showing menues and use it for showing option menu Use menus with the commit subject to present selectable commit parents Fix memory allocation check in open_commit_parent_menu
Manual: document that :<number> jumps to the line number Remove macros which are only used for default option values Allow multiple text attributes for color commands
Build with asciidoc-8.4.5
Show the active (instead of the default) keybindings in the help view Merge remote branch 'samb/short-dates'
NEWS: Mention date-shorten feature
Add support for displaying relative dates
Fix draw_date to not format anything when time arg is NULL Fix loading of blame data when opened from the tree view
NEWS: Improve bug fix description
Update asciidoc table syntax to the one supported by version 8.4.4 tigmanual(7): provide the manual as a man page
Remove build dependency on git from the configure script
begin_update: simplify control flow
run_io_dir: take dir argument
run_io_rd_dir: obsolete by switching call sites to run_io_rd_dir
io_open: take path as a vararg format
Status view: special case revert of unmerged entries with no physical file tig-0.15

Samuel Bronson (1):
Add an option (and toggle) for shortening the date column by skipping the time.

Sebastian Harl (1):
Fixed some uninitialized variable warnings

Tilo Schwarz (1):
Make height of split view configurable

bill lam (1):
Fix whitespace

Signature · 1 line
Jonas Fonseca
#1 lore raw
Quoted 1 line · Jonas Fonseca

Build with asciidoc-8.4.5

..

Quoted 1 line

Update asciidoc table syntax to the one supported by version 8.4.4

sciidoc -aversion=0.15-dirty -asysconfdir=/usr/etc -b docbook -d manpage tigmanual.7.txt
FAILED: /home/bill/src/tig/manual.txt: line 314: illegal [paradef-default] options: header: header
make: *** [tigmanual.7.xml] Error 1

May be the asciidoc 8.2.7 in debian lenny is not new enough. make install-doc failed with the above message. Any workaround other than upgrading asciidoc ?

Signature · 4 lines
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
#2 lore raw
Quoted 11 lines · bill lam
Quoted 1 line · Jonas Fonseca

      Build with asciidoc-8.4.5

..

Quoted 1 line

      Update asciidoc table syntax to the one supported by version 8.4.4

sciidoc -aversion=0.15-dirty -asysconfdir=/usr/etc -b docbook -d manpage tigmanual.7.txt
FAILED: /home/bill/src/tig/manual.txt: line 314: illegal [paradef-default] options: header: header
make: *** [tigmanual.7.xml] Error 1

May be the asciidoc 8.2.7 in debian lenny is not new enough. make install-doc failed with the above message.  Any workaround other than upgrading asciidoc ?

No, not if you want to build the man pages yourself.

How about adding a script or a make rule to optionally install man pages from the release branch. For example:

install-release-doc-man:

       for doc in $(MANDOC); do \
               git checkout origin/release $$doc; \
       done
       $(MAKE) install-doc-man
Signature · 1 line
Jonas Fonseca
#3 lore raw
Quoted 5 lines · Jonas Fonseca

install-release-doc-man:

       for doc in $(MANDOC); do \
               git checkout origin/release $$doc; \
       done
       $(MAKE) install-doc-man

Thanks it works. Could you also commit this to git?

Signature · 4 lines
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
#4 lore raw
Quoted 8 lines · bill lam
Quoted 5 lines · Jonas Fonseca

install-release-doc-man:
       for doc in $(MANDOC); do \
               git checkout origin/release $$doc; \
       done
       $(MAKE) install-doc-man

Thanks it works.  Could you also commit this to git?

Done, but using git-checkout-index ...

Signature · 1 line
Jonas Fonseca
#5 lore raw
Quoted 11 lines · Jonas Fonseca
Quoted 8 lines · bill lam
Quoted 5 lines · Jonas Fonseca

install-release-doc-man:
       for doc in $(MANDOC); do \
               git checkout origin/release $$doc; \
       done
       $(MAKE) install-doc-man

Thanks it works.  Could you also commit this to git?

Done, but using git-checkout-index ...

the line
git read-tree release
raised error perhaps I didn't checkout a branch for it, replacing it with
git read-tree origin/relase
or
git read-tree remotes/origin/relase

seems working.

Another question, while it can open a file with editor in tree-view, I cannot find in tigmanual how to directly save a file. Any idea?

Signature · 4 lines
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
#6 lore raw
Quoted 20 lines · bill lam
Quoted 11 lines · Jonas Fonseca
Quoted 8 lines · bill lam
Quoted 5 lines · Jonas Fonseca

install-release-doc-man:
       for doc in $(MANDOC); do \
               git checkout origin/release $$doc; \
       done
       $(MAKE) install-doc-man

Thanks it works.  Could you also commit this to git?

Done, but using git-checkout-index ...

the line
 git read-tree release
raised error perhaps I didn't checkout a branch for it, replacing it with
  git read-tree origin/relase
or
  git read-tree remotes/origin/relase

Quoted 1 line

seems working.

Ah, stupid me.

Quoted 2 lines

Another question, while it can open a file with editor in tree-view, I cannot find in tigmanual how to directly save a file.  Any idea?

There is no such action/keybinding. I guess it should be easy to extend the current functionality to query for a file name and save to that instead of a temporary file.

Signature · 1 line
Jonas Fonseca
#7 lore raw
In reply to Jonas Fonseca

Sorry, typo 's/relase/release/'

Signature · 4 lines
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3