Skip to contentSkip to conversation

tig-0.10

ANNOUNCE Jonas Fonseca 3 participants 9 messages Jun 15, 2016 Kbuild

lore
Share & tools
lore
#0 lore raw

Hello,

A new version of tig is available! It brings many documentation improvements, bug fixes, and some much needed updates to work better with git (e.g. by using --no-color and avoiding to use git-diff). On startup, tig will now attempt to first read a system-wide configuration file before loading the user specific configuration file. Cherry picking from inside tig has been generalized, making it possible to wire external commands, which can access information about the current commit, to a keybinding.

Among possible incompatible changes, option parsing has been changed to be more similar with gitk's by deprecating almost all tig options, so to startup in the status view use `tig status'! Building the documentation (sadly?) now depends on DocBook XSL 1.72 to reduce the number of accumulated AsciiDoc and XSL hacks.

In the pipeline for the next release are improved rename support in the status view and encoding and drawing fixes from Dominik Vogt. The deprecated options will probably also go away, including the special handling of "--".

What is tig?
------------
Tig is a ncurses-based text-mode interface for git. It functions mainly as a git repository browser, but can also 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/
Gitfeed: git://repo.or.cz/tig.git
Gitweb: http://repo.or.cz/w/tig.git

Changes in this release
-----------------------
Below is the diffstat and shortlog for changes made in this release.

 .gitignore                  |    5 +-
 INSTALL                     |   12 +-
 Makefile                    |   48 +++---
 TODO                        |   10 +
 VERSION                     |    2 +-
 asciidoc.conf               |   28 ++-
 config.make.in              |    1 +
 contrib/tig-completion.bash |   44 ++---
 manpage.xsl                 |   55 -----
 manual.txt                  |   65 +++++--
 tig.1.txt                   |  112 +++++++----
 tig.c                       |  470 +++++++++++++++++++++++++++++++-----------
 tigrc.5.txt                 |  109 +++++++----
 13 files changed, 620 insertions(+), 341 deletions(-)

Dominik Vogt (8):
Minor formatting and spelling fixes.
Add documentation for undocumented color options.
Added color option main-revgraph to color the revision graph. Added action tree-parent and bound it to backspace by default. Removed trailing whitespace.
Updated .gitignore
Added examples to tig(1) manpage
Add system-wide configuration file and new config file environment vars

James Bowes (1):
Add missing = for comparison in obsolete actions check

Jari Aalto (1):
Makefile: add ASCIIDOC_FLAGS

Jonas Fonseca (24):
tig-0.10.git
Unify REQ_NONE and REQ_UNKNOWN by moving REQ_NONE to be the last request Add support binding keys to running external commands Obsolete the cherry-pick action and define as builtin external command Improve sanity check error messages
Collect remaining string in last entry when parsing config file lines Use get_key_name() in get_key()
Fix crash when opening mergetool for lines that are not unmerged Rearrange the order of option parsing
Use --no-color option when calling git-log and git-diff Avoid using git-diff since it might run external diff drivers
manual: remove section on porcelains
Ignore HTML files in general
Install manpages in $(prefix)/share/man
TODO: Mention tig.c splitting and revgraph rewrite
Update manpages to not contain contain so many formatting workarounds
INSTALL: Document the optional documentation tools
Replace the manpage XSL workarounds with AsciiDoc conf workarounds Simplify documentation building and fix asciidoc.conf dependency Drop -B from diff options
Add support for showing boundary commits in the main view Make it possible to overwrite the default (terminal) colors Make command line parsing more compatible with gitk tig-0.10

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

... Building the documentation
(sadly?) now depends on DocBook XSL 1.72 to reduce the number of accumulated AsciiDoc and XSL hacks.

Well, I've been a quiet but big fan of tig for quite some time, but to me, requiring autoreconf is a much larger regression than DocBook dependency.

#2 lore raw

Junio C Hamano <[email protected]> wrote Mon, Mar 17, 2008:

Quoted 8 lines
Quoted 3 lines · Jonas Fonseca

... Building the documentation
(sadly?) now depends on DocBook XSL 1.72 to reduce the number of accumulated AsciiDoc and XSL hacks.

Well, I've been a quiet but big fan of tig for quite some time, but to me, requiring autoreconf is a much larger regression than DocBook dependency.

I am not sure I understand. As far as I know, tig does not require autoreconf unless you have cloned the repository and want to bootstrap the configure script.

Signature · 1 line
Jonas Fonseca
#3 lore raw
Quoted 7 lines · Jonas Fonseca

Junio C Hamano <[email protected]> wrote Mon, Mar 17, 2008:

Quoted 6 lines
Quoted 3 lines · Jonas Fonseca

... Building the documentation
(sadly?) now depends on DocBook XSL 1.72 to reduce the number of accumulated AsciiDoc and XSL hacks.

Quoted 6 lines
Quoted 2 lines

Well, I've been a quiet but big fan of tig for quite some time, but to me, requiring autoreconf is a much larger regression than DocBook dependency.

I am not sure I understand. As far as I know, tig does not require autoreconf unless you have cloned the repository and want to bootstrap the configure script.

Yeah, but that was exactly what your announcement suggested to. Show Tarball and Gitfeed alternatives to a git person, who already has a clone of the project, and guess which one he would go ;-).

Also INSTALL file begins with:

Installation instructions
-------------------------

Download a tarball from http://jonas.nitro.dk/tig/releases[] or clone the tig repository http://jonas.nitro.dk/tig/tig.git[]. Documentation files are available either in the tarballs or in the above repository in the branch named 'release'.

To install tig simply run:

        $ autoreconf
        $ ./configure
        $ make install

By the way, it would be nice if someday I can get tig work with CJK. Perhaps I need to tweak something in ncurses?

#4 lore raw

Junio C Hamano <[email protected]> wrote Mon, Mar 17, 2008:

Quoted 5 lines
Quoted 3 lines · Jonas Fonseca

I am not sure I understand. As far as I know, tig does not require autoreconf unless you have cloned the repository and want to bootstrap the configure script.

Quoted 7 lines

Yeah, but that was exactly what your announcement suggested to. Show Tarball and Gitfeed alternatives to a git person, who already has a clone of the project, and guess which one he would go ;-).

Also INSTALL file begins with:

[...]

Ok, I will try to make it more clear that usage of configure (and autoreconf) is optional.

Quoted 2 lines

By the way, it would be nice if someday I can get tig work with CJK. Perhaps I need to tweak something in ncurses?

I will make it a priority to fix this shortcoming. Until then you can improve the situation by linking with the ncursesw library. At least the diff view and names in the commit listing will be properly displayed.

Makefile +1 -1
index 575c5bf..e57ae6a 100644
@@ -32,7 +32,7 @@ RPM_VERLIST = $(filter-out g% dirty,$(subst -, ,$(VERSION))) 0
 RPM_VERSION = $(word 1,$(RPM_VERLIST))
 RPM_RELEASE = $(word 2,$(RPM_VERLIST))$(if $(WTDIRTY),.dirty)
 
-LDLIBS ?= -lcurses
+LDLIBS ?= -lncursesw
 CFLAGS ?= -Wall -O2
 DFLAGS	= -g -DDEBUG -Werror
 PROGS	= tig
Signature · 1 line
Jonas Fonseca
#5 lore raw
In reply to Jonas Fonseca
Quoted 3 lines · Jonas Fonseca

A new version of tig is available! It brings many documentation improvements, bug fixes, and some much needed updates to work better with git (e.g. by using --no-color and avoiding to use git-diff).

It seems like 'g', toggle revision graph visualization, doesn't work. Checked with

  $ tig log --pretty=oneline --abbrev=8 --abbrev-commit
Quoted 5 lines

On startup, tig will now attempt to first read a system-wide configuration file before loading the user specific configuration file. Cherry picking from inside tig has been generalized, making it possible to wire external commands, which can access information about the current commit, to a keybinding.

By thw ay, in tig(1), in the "FILES" section, there is

/home/fonseca/etc/tigrc
System wide configuration file.

Is it a bug in code, or just in documentation.

tig was installed using:

 $ rpmbuild -tb tig-0.10.tar.gz
 # rpm -Uhv tig-0.10-0.i386.rpm
Signature · 3 lines
Jakub Narebski
Poland
ShadeHawk on #git
#6 lore raw

Jakub Narebski <[email protected]> wrote Mon, Mar 17, 2008:

Quoted 9 lines
Quoted 3 lines · Jonas Fonseca

A new version of tig is available! It brings many documentation improvements, bug fixes, and some much needed updates to work better with git (e.g. by using --no-color and avoiding to use git-diff).

It seems like 'g', toggle revision graph visualization, doesn't work. Checked with

  $ tig log --pretty=oneline --abbrev=8 --abbrev-commit

Well, the revgraph visualization only works for the main view, not the log view (which has been sort of deprecated).

Quoted 6 lines
Quoted 5 lines

On startup, tig will now attempt to first read a system-wide configuration file before loading the user specific configuration file. Cherry picking from inside tig has been generalized, making it possible to wire external commands, which can access information about the current commit, to a keybinding.

Quoted 6 lines

By thw ay, in tig(1), in the "FILES" section, there is

/home/fonseca/etc/tigrc
System wide configuration file.

Is it a bug in code, or just in documentation.

Oops, embarrasing. I will look into fixing it so that documentation installed from the tarball will insert the local sysconfdir path.

Signature · 1 line
Jonas Fonseca
#7 lore raw

[ANNOUNCE] tig-0.10.1

In reply to Jonas Fonseca

Hello,

Here is a small update to tig with accumulated fixes and suggestions. Apart from fixes for compiler warnings and configure checks, this version should work much better with rendering CJK properly thanks to Dominik. It still requires that tig is linked with ncursesw, which should happen automatically if possible when using the configure script. Finally, the status view will show renames instead of a copy + a rename.

Thanks for suggestions and patches! Below is the diffstat and shortlog for changes made in this release.

 INSTALL      |   28 ++++---
 Makefile     |   20 +++--
 VERSION      |    2 +-
 configure.ac |   15 ++++-
 tig.c        |  246 +++++++++++++++++++++++++++++++++++++++-------------------
 5 files changed, 210 insertions(+), 101 deletions(-)

Dominik Vogt (3):
Fix compiler warnings: pointer of type ‘void *’ used in arithmetic Fixed handling of UTF8 tag names and commit messages. More verbose diff headers (including dates and committer)

Jonas Fonseca (8):
tig-0.10.1.git
Replace SYSCONFDIR value in distributed documentation distributed Make it more clear that use of configure (and autoreconf) is optional Add rename support to the status view
Refresh the index when opening the status view to avoid "empty diffs" Make configure search for the ncursesw library first
Fix drawing "outside" the screen in the status and pager views tig-0.10.1

Peter Karlsson (1):
Fixed spurious "/bin/sh: --list: command not found" error

Russell Steicke (1):
Fix signed char comparison where char is unsigned by default

Signature · 1 line
Jonas Fonseca
#8 lore raw

Re: [ANNOUNCE] tig-0.10.1

Quoted 3 lines · Jonas Fonseca

Apart from fixes for compiler warnings and configure checks, this version should work much better with rendering CJK properly thanks to Dominik....

Very nice.