Code

tig.git
16 years agoDrop use of $(...) for popen() and system() calls
Jonas Fonseca [Wed, 23 Apr 2008 19:14:08 +0000 (21:14 +0200)]
Drop use of $(...) for popen() and system() calls

Some shells don't support it, like the jsh that is used as /bin/sh on
some Solaris boxes, which results in the following error:

sh: syntax error at line 1: `(' unexpected

Fix the only user (reading remote information via git-ls-remote) to use
a much simpler shell syntax.

Reported by SungHyun Nam.

16 years agoAdd NEWS file
Jonas Fonseca [Sun, 20 Apr 2008 21:51:37 +0000 (23:51 +0200)]
Add NEWS file

16 years agoFix warnings emitted with -pedantic
Jonas Fonseca [Wed, 19 Mar 2008 19:08:38 +0000 (20:08 +0100)]
Fix warnings emitted with -pedantic

16 years agoRefactor management of the current draw column and max draw width
Jonas Fonseca [Fri, 4 Apr 2008 17:22:58 +0000 (19:22 +0200)]
Refactor management of the current draw column and max draw width

Do it in the draw_* functions instead of all the view draw functions.

16 years agoUse draw_field() for the author field
Jonas Fonseca [Tue, 22 Apr 2008 12:11:33 +0000 (14:11 +0200)]
Use draw_field() for the author field

This requires that utf8_length() makes the width/column available to
draw_text().

16 years agoIntroduce draw_field() helper for drawing main and blame fields
Jonas Fonseca [Tue, 22 Apr 2008 12:08:34 +0000 (14:08 +0200)]
Introduce draw_field() helper for drawing main and blame fields

It will draw spaces if the passed string is NULL.

16 years agoRefactor revgraph drawing into draw_graphic()
Jonas Fonseca [Tue, 22 Apr 2008 11:18:48 +0000 (13:18 +0200)]
Refactor revgraph drawing into draw_graphic()

16 years agoblame: simplify handling of incomplete commit information
Jonas Fonseca [Tue, 22 Apr 2008 10:57:02 +0000 (12:57 +0200)]
blame: simplify handling of incomplete commit information

Always wait for the final blame information (the commit filename) to be
read before showing any commit information.

16 years agoSimplify line attribute handling
Jonas Fonseca [Mon, 21 Apr 2008 19:17:36 +0000 (21:17 +0200)]
Simplify line attribute handling

 - Add set_view_attr() that wraps calls to wattrset() and does the right
   thing for the selected line. For successive calls without a change of
   the attribute nothing will be done.

 - Make draw_text() take a line attribute since all callers were already
   calling set_view_attr().

Note: all attribute updates will now also call wchgat() in addition to
wattrset().

16 years agoKeep line graphics characters in a table initialized on startup
Jonas Fonseca [Sun, 20 Apr 2008 21:34:07 +0000 (23:34 +0200)]
Keep line graphics characters in a table initialized on startup

... and use ACS_VLINE instead of '|' for the revgraph.

16 years agoAdd line-graphics option to disable graphics characters for line drawing
Dominik Vogt [Mon, 7 Apr 2008 20:15:03 +0000 (22:15 +0200)]
Add line-graphics option to disable graphics characters for line drawing

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
16 years agoSearch checks reference names too
Dominik Vogt [Mon, 7 Apr 2008 11:34:53 +0000 (13:34 +0200)]
Search checks reference names too

Do not search for matches in hidden view elements.

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
16 years agoDocument the main-commit colour option
Dominik Vogt [Mon, 7 Apr 2008 12:20:25 +0000 (14:20 +0200)]
Document the main-commit colour option

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
16 years agoLet ncurses take care of expanding tabs by setting its TABSIZE variable
Jonas Fonseca [Thu, 17 Apr 2008 12:11:59 +0000 (14:11 +0200)]
Let ncurses take care of expanding tabs by setting its TABSIZE variable

Rename the default tab size from TABSIZE to TAB_SIZE, since it shadows
the public ncurses TABSIZE variable which controls how the waddch-family
expands tabs when drawing. This makes it possible to finally handle
tabsizes different from 8 for UTF-8.

16 years agoRefreshing the current view when F5 is pressed (like gitk)
Jonas Fonseca [Thu, 10 Apr 2008 21:59:49 +0000 (23:59 +0200)]
Refreshing the current view when F5 is pressed (like gitk)

16 years agoFix regression from "Improve staging of diff chunks"
Jonas Fonseca [Thu, 10 Apr 2008 21:51:57 +0000 (23:51 +0200)]
Fix regression from "Improve staging of diff chunks"

In commit 234918423a4fac44375317e6c9e7ee54ea09379c the change to
stage_update reads:

 static bool
 stage_update(struct view *view, struct line *line)
 {
-       if (!opt_no_head && stage_line_type != LINE_STAT_UNTRACKED &&
-           (line->type == LINE_DIFF_CHUNK || !stage_status.status)) {
-               if (!stage_update_chunk(view, line)) {

where the !stage_status.status part was meant to match whole sections.
Reinstate this behavior so that pressing 'u' when in the stage view for
a section of changes it will stage all changed files in that section.

16 years agoDo not reload status and stage views on errors
Jonas Fonseca [Thu, 10 Apr 2008 21:45:03 +0000 (23:45 +0200)]
Do not reload status and stage views on errors

It hides the error message.

16 years agoFix AsciiDoc replacing -- in --with-libiconv
Jonas Fonseca [Thu, 10 Apr 2008 21:43:48 +0000 (23:43 +0200)]
Fix AsciiDoc replacing -- in --with-libiconv

16 years agoSquelsh output of update-index when loading the status view (part II)
Jonas Fonseca [Tue, 8 Apr 2008 14:50:50 +0000 (16:50 +0200)]
Squelsh output of update-index when loading the status view (part II)

Also include messages from stdout.

16 years agoRebind the maximize action to 'O' instead of 'M'
Jonas Fonseca [Tue, 8 Apr 2008 14:49:07 +0000 (16:49 +0200)]
Rebind the maximize action to 'O' instead of 'M'

The latter is already used for launching the mergetool when in the
status view.

16 years agotig-0.11
Jonas Fonseca [Sun, 6 Apr 2008 19:28:14 +0000 (21:28 +0200)]
tig-0.11

16 years agoUse sans-serif font for the README page
Jonas Fonseca [Sun, 6 Apr 2008 19:27:31 +0000 (21:27 +0200)]
Use sans-serif font for the README page

16 years agoUpdate copyright notice for the manual
Jonas Fonseca [Sun, 6 Apr 2008 17:46:36 +0000 (19:46 +0200)]
Update copyright notice for the manual

16 years agoRemove unused blame line attributes
Jonas Fonseca [Sun, 6 Apr 2008 17:46:18 +0000 (19:46 +0200)]
Remove unused blame line attributes

16 years agoUse tables for listing the UI colors
Jonas Fonseca [Sun, 6 Apr 2008 17:46:05 +0000 (19:46 +0200)]
Use tables for listing the UI colors

16 years agoMinor cleanup in blame_draw
Jonas Fonseca [Thu, 3 Apr 2008 16:34:59 +0000 (18:34 +0200)]
Minor cleanup in blame_draw

16 years agoSetup colors for the selected line in draw_view_line()
Jonas Fonseca [Thu, 3 Apr 2008 15:47:09 +0000 (17:47 +0200)]
Setup colors for the selected line in draw_view_line()

16 years agoMake the main and blame view share date drawing and date colors
Jonas Fonseca [Thu, 3 Apr 2008 19:30:42 +0000 (21:30 +0200)]
Make the main and blame view share date drawing and date colors

Renames the main-date color to date.

16 years agoSquelsh output of update-index when loading the status view
Jonas Fonseca [Fri, 4 Apr 2008 22:40:43 +0000 (00:40 +0200)]
Squelsh output of update-index when loading the status view

16 years agoAvoid splitting the view when navigating stage view in full screen
Jonas Fonseca [Fri, 4 Apr 2008 20:17:24 +0000 (22:17 +0200)]
Avoid splitting the view when navigating stage view in full screen

16 years agoUse 3 as the minimum width of formatted line numbers
Jonas Fonseca [Fri, 4 Apr 2008 09:43:23 +0000 (11:43 +0200)]
Use 3 as the minimum width of formatted line numbers

It gives a more pleasant experience when "digging" through commits.
And of course, most commits will have diffs smaller than 1000 lines!?
For the blame view it means less flickering in the startup when the
whole file is read.

16 years agoRevert "When toggling options redraw the view instead of the whole display"
Jonas Fonseca [Fri, 4 Apr 2008 09:30:47 +0000 (11:30 +0200)]
Revert "When toggling options redraw the view instead of the whole display"

This reverts commit d79f15772b0489ae3bf77322706016c733a714c9.

16 years agoFix compatibility for git rev-parse without --symbolic-full-name
Jonas Fonseca [Thu, 3 Apr 2008 23:51:27 +0000 (01:51 +0200)]
Fix compatibility for git rev-parse without --symbolic-full-name

Use symbolic-ref instead.

16 years agoError out when starting up in empty main or blame view
Jonas Fonseca [Thu, 3 Apr 2008 23:43:26 +0000 (01:43 +0200)]
Error out when starting up in empty main or blame view

This usually means that the arguments did not match any revisions or file.

16 years agoImprove staging of diff chunks
Jonas Fonseca [Thu, 3 Apr 2008 23:03:21 +0000 (01:03 +0200)]
Improve staging of diff chunks

As suggested by Petr Baudis some year ago, make updating of chunks work
stage the chunk the cursor line is within instead of the whole file. Still
stage everything when the cursor is in the diff --stat header.

16 years agoReload the status and stage views after a run request has been handled
Jonas Fonseca [Thu, 3 Apr 2008 14:46:00 +0000 (16:46 +0200)]
Reload the status and stage views after a run request has been handled

16 years agoAdd support for refreshing of the stage view
Jonas Fonseca [Thu, 3 Apr 2008 14:41:09 +0000 (16:41 +0200)]
Add support for refreshing of the stage view

Consolidate stage reloading for the edit, refresh, and update requests.
It works by first reloading the status view after which the stage view
is closed or reloaded depending on whether the status information of the
stage view still is valid.

16 years agoWhen toggling options redraw the view instead of the whole display
Jonas Fonseca [Thu, 3 Apr 2008 17:18:11 +0000 (19:18 +0200)]
When toggling options redraw the view instead of the whole display

16 years agoUse werase() instead of wclear() when reloading a view
Jonas Fonseca [Thu, 3 Apr 2008 17:07:42 +0000 (19:07 +0200)]
Use werase() instead of wclear() when reloading a view

It behaves much better by not causing the parent view to be repainted.

16 years agoShare the line number colors between blame view and others
Jonas Fonseca [Thu, 3 Apr 2008 15:02:15 +0000 (17:02 +0200)]
Share the line number colors between blame view and others

Renames the blame-lineno color to line-number.

16 years agoRename load_repo_config() to load_git_config()
Jonas Fonseca [Thu, 3 Apr 2008 13:47:21 +0000 (15:47 +0200)]
Rename load_repo_config() to load_git_config()

16 years agoDo not load repository references when acting as a pager
Jonas Fonseca [Thu, 3 Apr 2008 13:24:44 +0000 (15:24 +0200)]
Do not load repository references when acting as a pager

It will cause git ls-remote to print an error message.

16 years agoMerge branch 'master' of remote-server:src/tig
Jonas Fonseca [Wed, 2 Apr 2008 22:01:15 +0000 (00:01 +0200)]
Merge branch 'master' of remote-server:src/tig

16 years agostatus: use draw_text completely
Jonas Fonseca [Wed, 2 Apr 2008 22:13:42 +0000 (00:13 +0200)]
status: use draw_text completely

16 years agoMake local tags and normal branches use normal font-weight
Jonas Fonseca [Wed, 2 Apr 2008 21:59:15 +0000 (23:59 +0200)]
Make local tags and normal branches use normal font-weight

Change color of HEAD reference to use cyan as normal branches
but with bold font.

16 years agoShow the tracked remote branch with bold text
Jonas Fonseca [Wed, 2 Apr 2008 21:57:08 +0000 (23:57 +0200)]
Show the tracked remote branch with bold text

... and others with normal font-weight.

16 years agoAdd draw_lineno() and use when drawing the blame and pager view
Jonas Fonseca [Wed, 2 Apr 2008 21:14:40 +0000 (23:14 +0200)]
Add draw_lineno() and use when drawing the blame and pager view

16 years agoAdd action to maximize the current view; bound to M by default
Jonas Fonseca [Wed, 2 Apr 2008 20:27:06 +0000 (22:27 +0200)]
Add action to maximize the current view; bound to M by default

16 years agoDisable opening views that require a git directory when in pager mode
Jonas Fonseca [Mon, 31 Mar 2008 17:51:22 +0000 (19:51 +0200)]
Disable opening views that require a git directory when in pager mode

16 years agoFix pager mode by always doing the isatty()
Jonas Fonseca [Mon, 31 Mar 2008 17:51:02 +0000 (19:51 +0200)]
Fix pager mode by always doing the isatty()

Also relax the opt_git_dir check.

16 years agostage: disable whitespace warnings from git apply when staging updates
Jonas Fonseca [Mon, 31 Mar 2008 11:03:45 +0000 (13:03 +0200)]
stage: disable whitespace warnings from git apply when staging updates

16 years agoImprove perfomance and usability when updating many files
Jonas Fonseca [Thu, 27 Mar 2008 19:44:23 +0000 (20:44 +0100)]
Improve perfomance and usability when updating many files

Split the update function into one for single file and all files in a
section so that only one fork of update-index is required in both cases.

Show progress for long running updates (e.g. importing the Linux kernel)
where git needs to hash many objects (>20k).

16 years agoFix and improve status refreshing after updating
Jonas Fonseca [Thu, 27 Mar 2008 10:47:00 +0000 (11:47 +0100)]
Fix and improve status refreshing after updating

Update the view offset so the current line is already visible.
This requires that the display is split or initialized before
starting to load the view so status_open has the view->height
available.

16 years agoFix uninitialized variable warning
Jonas Fonseca [Thu, 27 Mar 2008 19:20:10 +0000 (20:20 +0100)]
Fix uninitialized variable warning

16 years agoOutput extra \n on tig -h
Stefan Naewe [Wed, 26 Mar 2008 12:04:53 +0000 (13:04 +0100)]
Output extra \n on tig -h

The usage string does not contain a '\n' as the last character which is
annoying when calling 'tig -h'.

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
16 years agoAvoid reloading the status view when nothing was updated
Jonas Fonseca [Wed, 26 Mar 2008 10:54:28 +0000 (11:54 +0100)]
Avoid reloading the status view when nothing was updated

16 years agoOops, fix delimiter documentation
Jonas Fonseca [Wed, 26 Mar 2008 10:39:26 +0000 (11:39 +0100)]
Oops, fix delimiter documentation

16 years agoAdd support for preparing the initial commit in the status view
Jonas Fonseca [Wed, 26 Mar 2008 10:26:00 +0000 (11:26 +0100)]
Add support for preparing the initial commit in the status view

16 years agoRename "main-delim" color to the more generic "delimiter"
Jonas Fonseca [Wed, 26 Mar 2008 09:15:47 +0000 (10:15 +0100)]
Rename "main-delim" color to the more generic "delimiter"

It was already used by views other than main.

16 years agoShow the current branch in the status view
Jonas Fonseca [Wed, 26 Mar 2008 08:50:19 +0000 (09:50 +0100)]
Show the current branch in the status view

Also, improve the positioning of the cursor line after updates to
restore or select something that is "updateable". Adding new files
should now work more intuitively.

16 years agoSave current branch from rev-parse output and highlight it
Jonas Fonseca [Tue, 25 Mar 2008 20:43:38 +0000 (21:43 +0100)]
Save current branch from rev-parse output and highlight it

The chosen color is red with bold font, however, maybe all other refs
should be toned down and only the current branch should use bold font.

16 years agoblame: Fix opening from subdirectory and consecutive invokations
Jonas Fonseca [Mon, 24 Mar 2008 00:10:23 +0000 (01:10 +0100)]
blame: Fix opening from subdirectory and consecutive invokations

16 years agoRemove deprecated options and cleanup option parsing
Jonas Fonseca [Sun, 23 Mar 2008 01:29:41 +0000 (02:29 +0100)]
Remove deprecated options and cleanup option parsing

16 years agoMore blame view fixes
Jonas Fonseca [Sun, 23 Mar 2008 13:50:48 +0000 (14:50 +0100)]
More blame view fixes

16 years agoVarious fixes and improvements of the new blame view
Jonas Fonseca [Sun, 23 Mar 2008 02:00:03 +0000 (03:00 +0100)]
Various fixes and improvements of the new blame view

 - Fix entering from status and stage views by making opt_ref setting
   optional.
 - Use separate opt_file variable, since the tree view also uses
   opt_path.

16 years agoAdd blame view
Jonas Fonseca [Sat, 22 Mar 2008 02:05:00 +0000 (03:05 +0100)]
Add blame view

It may both be entered from the command line using:

tig blame [rev] path

or from either the status and stage, as well as by using the tree view
to navigte.

16 years agoAdd hack to allow view loading to have multiple phases
Jonas Fonseca [Sat, 22 Mar 2008 20:35:31 +0000 (21:35 +0100)]
Add hack to allow view loading to have multiple phases

.. by avoiding end_update() call after last read line.

16 years agoSimplify subcommand option parsing by moving it out of the loop
Jonas Fonseca [Fri, 21 Mar 2008 16:27:28 +0000 (17:27 +0100)]
Simplify subcommand option parsing by moving it out of the loop

16 years agodraw_text: remove unused col argument
Jonas Fonseca [Fri, 21 Mar 2008 18:04:54 +0000 (19:04 +0100)]
draw_text: remove unused col argument

16 years agoUse rewritten parent info from --parents to simplify the revgraph
Jonas Fonseca [Fri, 21 Mar 2008 16:53:46 +0000 (17:53 +0100)]
Use rewritten parent info from --parents to simplify the revgraph

16 years agoMove unrelated UTF-8 setup code out of parse_options
Jonas Fonseca [Thu, 20 Mar 2008 18:27:44 +0000 (19:27 +0100)]
Move unrelated UTF-8 setup code out of parse_options

16 years agotigrc(5): Improve documentation of new show-* options
Jonas Fonseca [Thu, 20 Mar 2008 18:08:42 +0000 (19:08 +0100)]
tigrc(5): Improve documentation of new show-* options

16 years agoconfigure: test for git binary and improve config subcommand test
Jonas Fonseca [Thu, 20 Mar 2008 17:58:05 +0000 (18:58 +0100)]
configure: test for git binary and improve config subcommand test

16 years agoCall realloc() less often because it is potentially slow.
Dominik Vogt [Thu, 20 Mar 2008 15:09:05 +0000 (16:09 +0100)]
Call realloc() less often because it is potentially slow.

Signed-off-by: Dominik Vogt <dvogt@ffm.tc.iot.dtag.de>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
16 years agoNew config options show-author, show-date, show-refs, show-line-numbers.
Dominik Vogt [Thu, 20 Mar 2008 15:41:16 +0000 (16:41 +0100)]
New config options show-author, show-date, show-refs, show-line-numbers.

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
16 years agoFixed displaying local tags.
Dominik Vogt [Wed, 19 Mar 2008 22:08:40 +0000 (23:08 +0100)]
Fixed displaying local tags.

Added a new colour main-local-tag.

Signed-off-by: Dominik Vogt <dvogt@ffm.tc.iot.dtag.de>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
16 years agoNew actions toggle-date, toggle-author, and toggle-refs.
Dominik Vogt [Thu, 20 Mar 2008 10:23:26 +0000 (11:23 +0100)]
New actions toggle-date, toggle-author, and toggle-refs.

Signed-off-by: Dominik Vogt <dvogt@ffm.tc.iot.dtag.de>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
16 years agoFix index refreshing into separate call so diff-files is always run
Jonas Fonseca [Thu, 20 Mar 2008 12:21:40 +0000 (13:21 +0100)]
Fix index refreshing into separate call so diff-files is always run

16 years agodraw_text: reduce indentation level
Jonas Fonseca [Thu, 20 Mar 2008 00:54:26 +0000 (01:54 +0100)]
draw_text: reduce indentation level

16 years agodraw_text: minor cleanup to use fewer local variables
Jonas Fonseca [Thu, 20 Mar 2008 00:53:36 +0000 (01:53 +0100)]
draw_text: minor cleanup to use fewer local variables

16 years agoutf8_length: add reserve flag for reserving a trailing character
Jonas Fonseca [Thu, 20 Mar 2008 00:51:09 +0000 (01:51 +0100)]
utf8_length: add reserve flag for reserving a trailing character

Replace unused coloffset with reserve flag, which will reserve at least
one character cell at the end. Use it for reserving a delimiter character
when use_tilde is TRUE, and avoid a second call to utf8_length().

16 years agoTODO: --boundary flag is already used
Jonas Fonseca [Thu, 20 Mar 2008 00:51:41 +0000 (01:51 +0100)]
TODO: --boundary flag is already used

16 years ago0.11.git
Jonas Fonseca [Thu, 20 Mar 2008 11:27:57 +0000 (12:27 +0100)]
0.11.git

16 years agotig-0.10.1
Jonas Fonseca [Wed, 19 Mar 2008 22:45:36 +0000 (23:45 +0100)]
tig-0.10.1

16 years agoMore verbose diff headers (including dates and committer)
Dominik Vogt [Fri, 8 Feb 2008 14:50:26 +0000 (15:50 +0100)]
More verbose diff headers (including dates and committer)

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
16 years agoFix drawing "outside" the screen in the status and pager views
Jonas Fonseca [Wed, 19 Mar 2008 22:35:54 +0000 (23:35 +0100)]
Fix drawing "outside" the screen in the status and pager views

It was causing text to wrap to next line, but with the new function to
draw text with limited width this has become much easier.

16 years agoFixed handling of UTF8 tag names and commit messages.
Dominik Vogt [Thu, 27 Dec 2007 11:43:16 +0000 (12:43 +0100)]
Fixed handling of UTF8 tag names and commit messages.

[ jf: fix off-by-one error for trimmed tilde drawing and bad padding
  substraction ]

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
16 years agoMake configure search for the ncursesw library first
Jonas Fonseca [Wed, 19 Mar 2008 20:40:26 +0000 (21:40 +0100)]
Make configure search for the ncursesw library first

Also (unconditionally) define _XOPEN_SOURCE_EXTENDED before including
curses.h to have extended functions as recommended by ncurses(3).

16 years agoFix compiler warnings: pointer of type ‘void *’ used in arithmetic
Dominik Vogt [Tue, 12 Feb 2008 17:14:32 +0000 (18:14 +0100)]
Fix compiler warnings: pointer of type ‘void *’ used in arithmetic

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
16 years agoFix signed char comparison where char is unsigned by default
Russell Steicke [Tue, 18 Mar 2008 08:47:43 +0000 (17:47 +0900)]
Fix signed char comparison where char is unsigned by default

tig uses a char as a flag, and expects that to have three
values: TRUE, FALSE, and -1.  When char is unsigned char (such
as on PPC), this fails with the compiler warning "comparison is
always false due to limited range of data type".

So explicitly make the flag a signed char.

Detecting the int8_t type with the autoconf macro
AC_CREATE_STDINT_H would probably be a better fix.

Signed-off-by: Russell Steicke <russellsteicke@gmail.com>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
16 years agoFixed spurious "/bin/sh: --list: command not found" error
Peter Karlsson [Tue, 18 Mar 2008 08:42:24 +0000 (09:42 +0100)]
Fixed spurious "/bin/sh: --list: command not found" error

If git has been installed with a separate libexecdir which is not in path
(for example, a standard msysgit installation), tig would not find
"git-config", and we must instead find the "git" binary and call it as
"git config".

Signed-off-by: Peter Karlsson <peter@softwolves.pp.se>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
16 years agoRefresh the index when opening the status view to avoid "empty diffs"
Jonas Fonseca [Mon, 17 Mar 2008 13:58:51 +0000 (14:58 +0100)]
Refresh the index when opening the status view to avoid "empty diffs"

16 years agoAdd rename support to the status view
Jonas Fonseca [Fri, 14 Mar 2008 20:05:14 +0000 (21:05 +0100)]
Add rename support to the status view

Renames are now picked up and displayed with the 'R' flag instead of
being shown as a 'C'opy and 'D'eletion. Remove --find-copies-harder from
the arguments to diff-index and diff-files since this option seem to
interfere with rename detection.

16 years agoMake it more clear that use of configure (and autoreconf) is optional
Jonas Fonseca [Mon, 17 Mar 2008 12:03:14 +0000 (13:03 +0100)]
Make it more clear that use of configure (and autoreconf) is optional

Suggested by Junio.

16 years agoReplace SYSCONFDIR value in distributed documentation distributed
Jonas Fonseca [Mon, 17 Mar 2008 10:07:05 +0000 (11:07 +0100)]
Replace SYSCONFDIR value in distributed documentation distributed

.. by defining sysconfdir to ++SYSCONFDIR++ when building documentation
for the release branch. This also improved quoting of paths during
installation.

Reported by Jakub Narebski.

16 years agotig-0.10.1.git
Jonas Fonseca [Mon, 17 Mar 2008 11:37:07 +0000 (12:37 +0100)]
tig-0.10.1.git

16 years agotig-0.10
Jonas Fonseca [Mon, 17 Mar 2008 01:23:01 +0000 (02:23 +0100)]
tig-0.10

16 years agoMake command line parsing more compatible with gitk
Jonas Fonseca [Thu, 7 Feb 2008 19:00:38 +0000 (20:00 +0100)]
Make command line parsing more compatible with gitk

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! :)

16 years agoAdd system-wide configuration file and new config file environment vars
Dominik Vogt [Thu, 27 Dec 2007 10:11:28 +0000 (11:11 +0100)]
Add system-wide configuration file and new config file environment vars

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 <fonseca@diku.dk>
16 years agoMake it possible to overwrite the default (terminal) colors
Jonas Fonseca [Sun, 16 Mar 2008 20:26:56 +0000 (21:26 +0100)]
Make it possible to overwrite the default (terminal) colors

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.