Many of the command line arguments are relics from the beginning of the project and served as a method of configuring tig before support for the configuration file was introduced. Since then they have become less useful and make tig less compatible with gitk and other git repo viewers. This commit tries to fix this by deprecating all command line arguments except the very tig specific version and help arguments. The option to enter the status view (-S) is moved to a new "status" subcommand. Tig will warn about the deprecation and advise -S users to use the new subcommand. The handling of "--" is kept as it is for compatibility, but will be removed in a future version. Finally, the man page and manual was updated to reflect the new options and subcommands. So enjoy the new less cludgy `tig --all' ... I will! :)
Introduced envvars TIGRC_USER and TIGRC_SYSTEM to control which config file is used. The default user specific config file can be overridden with TIGRC_USER. Before loading the user config file, tig now looks for a system wide config file ($(sysconfdir)/tirgc by default). This can be overridden with the environment variable TIGRC_SYSTEM. Also corrected a small mistake in the Makefile. Instead of setting CFLAGS for '-D...' compiler options, use CPPFLAGS. [ The original code from Dominik was changed so that tig always reads the system-wide configuration file. The documentation was improved so the configured sysconfdir is used in the generated documentation. -- jonas ] Signed-off-by: Jonas Fonseca <email@example.com>
Use the setting of the "default" color pair to set the default colors of the terminal via assume_default_colors(). Fall back to white on black. With this it is possible to no longer use the terminal colors if desired. This was requested by Sebastian Harl as a way to fix Debian bug 399884.
The boundary commits are marked using a "^" character, which hopefully is somewhat intuitive and familiar since git revision specification uses it as its cut-off prefix.
This is a lot simpler and generates better manpages (with the required documentation tools). The XSL stuff was a nightmarish adventure, anyway. Of course this probably breaks documentation building on some systems.
... like indentation. However, the '.git/config' thing no longer works.
This allow to leave the current directory in the tree view and change to the parent tree / directory. At the top of the tree, this closes the tree view. Bound to ',' by default. Example: bind tree Left tree-parent bind tree Right Enter bind blob Left view-close This allows to navigate the tree and blob views just with the cursor keys. [ Cleanup the patch a bit and mention the default keybinding in manual.txt --jonas ] Signed-off-by: Jonas Fonseca <firstname.lastname@example.org>
Signed-off-by: Jonas Fonseca <email@example.com>
Relying only on the diff plumbing seems to be the safer thing to do.
This fixes problems when user has set color.diff=true. The problem was first reported for gitk on the git mailing list.
Signed-off-by: James Bowes <firstname.lastname@example.org> Signed-off-by: Jonas Fonseca <email@example.com>
This raises the length of external commands to what fits in the command buffer (1024 characters).
Each command can have replacement string such as %(commit), %(head), and %(blob), which are substituted before the command is run.