tig
17 years agoMerge with master
Jonas Fonseca [Mon, 30 Oct 2006 02:16:42 +0000 (03:16 +0100)] 
Merge with master

17 years agoNever split the tree view when opening another tree view
Jonas Fonseca [Mon, 30 Oct 2006 02:01:17 +0000 (03:01 +0100)] 
Never split the tree view when opening another tree view

The resulting bogus display[] state ment that the blob view was not
initialized causing segmentation faults in the redrawing code.

Reported by Alexey Tourbin <at@altlinux.ru>

17 years agoCast second arg to iconv to remove warning
Jonas Fonseca [Sun, 29 Oct 2006 20:36:32 +0000 (21:36 +0100)] 
Cast second arg to iconv to remove warning

17 years agomain_read: handle titles that start with whitespace
Jonas Fonseca [Sun, 29 Oct 2006 14:21:13 +0000 (15:21 +0100)] 
main_read: handle titles that start with whitespace

17 years agoIncrease commit.title size from 75 to 128
Alexey Tourbin [Sun, 29 Oct 2006 14:17:22 +0000 (15:17 +0100)] 
Increase commit.title size from 75 to 128

Courtesy of Dmitry Levin, my current aterm session has COLUMNS=141
(1280x1024 with standard 9x15 font).  So in the main view I can see
some commit headlines truncated.  Changing hedline size from 75 to 128
characters seems to be reasonable.

17 years agoHardwire ERR to mean REQ_NONE in the main loop
Jonas Fonseca [Thu, 28 Sep 2006 11:54:35 +0000 (13:54 +0200)] 
Hardwire ERR to mean REQ_NONE in the main loop

17 years agoadd_keybinding: always allocate the new keybinding
Jonas Fonseca [Thu, 28 Sep 2006 11:51:38 +0000 (13:51 +0200)] 
add_keybinding: always allocate the new keybinding

Fixes infinite loop repoted by Miciah. Also simply continue when wgetch
returns ERR (-1) instead of calling get_keybinding() etc.

17 years agotig-0.5.git
Jonas Fonseca [Tue, 26 Sep 2006 22:31:46 +0000 (00:31 +0200)] 
tig-0.5.git

Crap, forgot to update the VERSION string again.

17 years agoSITES: Point to pasky's git proxy repo.or.cz tig-0.5
Jonas Fonseca [Wed, 20 Sep 2006 22:43:42 +0000 (00:43 +0200)] 
SITES: Point to pasky's git proxy repo.or.cz

17 years agoINSTALL: mention possible iconv problems and workarounds
Jonas Fonseca [Wed, 20 Sep 2006 14:42:40 +0000 (16:42 +0200)] 
INSTALL: mention possible iconv problems and workarounds

17 years agomanual: document the tree/blob environment variables
Jonas Fonseca [Mon, 18 Sep 2006 17:07:07 +0000 (19:07 +0200)] 
manual: document the tree/blob environment variables

17 years agoAlways clear the status window after prompting
Jonas Fonseca [Mon, 18 Sep 2006 16:02:36 +0000 (18:02 +0200)] 
Always clear the status window after prompting

17 years agoOops, check log, diff, and show before options
Jonas Fonseca [Mon, 18 Sep 2006 15:33:28 +0000 (17:33 +0200)] 
Oops, check log, diff, and show before options

Fixes 8d27b36ea5e4e2f282d6e080b9bc0c134d29257a.

17 years agoUse wclrtoeol instead of werase
Jonas Fonseca [Mon, 18 Sep 2006 13:57:10 +0000 (15:57 +0200)] 
Use wclrtoeol instead of werase

17 years agoFix clearing of the status window after prompting
Jonas Fonseca [Sun, 17 Sep 2006 23:00:29 +0000 (01:00 +0200)] 
Fix clearing of the status window after prompting

17 years agoparse_option: check for '-' first and break if it is not an option
Jonas Fonseca [Sun, 17 Sep 2006 22:57:30 +0000 (00:57 +0200)] 
parse_option: check for '-' first and break if it is not an option

17 years agoImprove the "input mode" so the cursor is correctly positioned
Jonas Fonseca [Sun, 17 Sep 2006 22:56:33 +0000 (00:56 +0200)] 
Improve the "input mode" so the cursor is correctly positioned

17 years agoadd_keybinding: plug memory leak
Jonas Fonseca [Sun, 17 Sep 2006 19:52:28 +0000 (21:52 +0200)] 
add_keybinding: plug memory leak

17 years agoTODO: repository status view, better text-input support
Jonas Fonseca [Sun, 17 Sep 2006 19:29:59 +0000 (21:29 +0200)] 
TODO: repository status view, better text-input support

17 years agotigrc(5): mention tree/blob view actions; use dash in favour of underscore
Jonas Fonseca [Sat, 16 Sep 2006 18:28:02 +0000 (20:28 +0200)] 
tigrc(5): mention tree/blob view actions; use dash in favour of underscore

17 years agoRun the documentation through aspell
Jonas Fonseca [Sat, 16 Sep 2006 18:24:37 +0000 (20:24 +0200)] 
Run the documentation through aspell

17 years agopush_rev_graph: iterate all graph revs when looking for duplicates
Jonas Fonseca [Sat, 16 Sep 2006 12:12:41 +0000 (14:12 +0200)] 
push_rev_graph: iterate all graph revs when looking for duplicates

Now atleast there will not be unconnected lines at the end of the graph.

17 years agoBUGS: Merge locale support with utf8-only bug, add horizontal scrolling
Jonas Fonseca [Sat, 16 Sep 2006 01:36:20 +0000 (03:36 +0200)] 
BUGS: Merge locale support with utf8-only bug, add horizontal scrolling

17 years agoMerge with master
Jonas Fonseca [Sat, 16 Sep 2006 01:14:29 +0000 (03:14 +0200)] 
Merge with master

17 years agoAbbreviate the view reference in the view title for small widths
Jonas Fonseca [Sat, 16 Sep 2006 00:37:49 +0000 (02:37 +0200)] 
Abbreviate the view reference in the view title for small widths

17 years agoupdate_view_title: format load seconds as part of the state string
Jonas Fonseca [Sat, 16 Sep 2006 00:22:34 +0000 (02:22 +0200)] 
update_view_title: format load seconds as part of the state string

17 years agoupdate_view_title: use string_format_from instead of wprintw
Jonas Fonseca [Sat, 16 Sep 2006 00:12:24 +0000 (02:12 +0200)] 
update_view_title: use string_format_from instead of wprintw

17 years agoA simple fix of the bad wrapping bugs
Jonas Fonseca [Fri, 15 Sep 2006 23:40:10 +0000 (01:40 +0200)] 
A simple fix of the bad wrapping bugs

This was surprisingly simple to fix by just turning off scrolling in
draw_view_line. From the BUGS file:

 - If the screen width is very small the main view can draw outside the
   current view causing bad wrapping. Same goes for title and status
   windows.

 - The cursor can wrap-around on the last line and cause the window to
   scroll.

17 years agoupdate_display_cursor: take view as arg
Jonas Fonseca [Fri, 15 Sep 2006 00:41:20 +0000 (02:41 +0200)] 
update_display_cursor: take view as arg

17 years agoMake the rev graph visualization have a one rev look-ahead
Jonas Fonseca [Thu, 14 Sep 2006 01:03:55 +0000 (03:03 +0200)] 
Make the rev graph visualization have a one rev look-ahead

17 years agoupdate_rev_graph: move code to prepare_rev_graph
Jonas Fonseca [Thu, 14 Sep 2006 00:58:23 +0000 (02:58 +0200)] 
update_rev_graph: move code to prepare_rev_graph

17 years agoAllow view readers to 'finalize' by calling with NULL line before closing
Jonas Fonseca [Thu, 14 Sep 2006 00:23:22 +0000 (02:23 +0200)] 
Allow view readers to 'finalize' by calling with NULL line before closing

17 years agoappend_to_rev_graph: use local variable
Jonas Fonseca [Wed, 13 Sep 2006 23:28:56 +0000 (01:28 +0200)] 
append_to_rev_graph: use local variable

17 years agoAlways draw the space between end of rev graph and start of commit title
Jonas Fonseca [Wed, 13 Sep 2006 23:08:48 +0000 (01:08 +0200)] 
Always draw the space between end of rev graph and start of commit title

The rev graph may have been increased so the old title should be
overwritten.

17 years agoRefactor (separator, line) chtype management to use 'fillers'
Jonas Fonseca [Tue, 12 Sep 2006 18:05:47 +0000 (20:05 +0200)] 
Refactor (separator, line) chtype management to use 'fillers'

17 years agoMore graph_parent_is_merge usage
Jonas Fonseca [Tue, 12 Sep 2006 16:52:55 +0000 (18:52 +0200)] 
More graph_parent_is_merge usage

17 years agodraw_rev_graph: refactor stuff to get_rev_graph_symbol
Jonas Fonseca [Tue, 12 Sep 2006 16:50:03 +0000 (18:50 +0200)] 
draw_rev_graph: refactor stuff to get_rev_graph_symbol

17 years agoImprove comments
Jonas Fonseca [Tue, 12 Sep 2006 16:46:37 +0000 (18:46 +0200)] 
Improve comments

17 years agoUse 'graph' instead of 'stack' in the rev graph code
Jonas Fonseca [Tue, 12 Sep 2006 16:43:52 +0000 (18:43 +0200)] 
Use 'graph' instead of 'stack' in the rev graph code

17 years agoMove rev graph code to own section
Jonas Fonseca [Tue, 12 Sep 2006 16:37:59 +0000 (18:37 +0200)] 
Move rev graph code to own section

17 years agoMove stuff to reset_rev_graph and rename it to done_rev_graph
Jonas Fonseca [Tue, 12 Sep 2006 16:31:46 +0000 (18:31 +0200)] 
Move stuff to reset_rev_graph and rename it to done_rev_graph

17 years agoSimplify the update_rev_graph end-game
Jonas Fonseca [Tue, 12 Sep 2006 16:25:53 +0000 (18:25 +0200)] 
Simplify the update_rev_graph end-game

17 years agoAdd graph_parent_is_merge
Jonas Fonseca [Tue, 12 Sep 2006 16:24:12 +0000 (18:24 +0200)] 
Add graph_parent_is_merge

17 years agoNow it actually starts looking like something
Jonas Fonseca [Tue, 12 Sep 2006 14:10:31 +0000 (16:10 +0200)] 
Now it actually starts looking like something

17 years agoRefactor graph drawing
Jonas Fonseca [Tue, 12 Sep 2006 11:54:28 +0000 (13:54 +0200)] 
Refactor graph drawing

17 years agoRemove fprintf stuff
Jonas Fonseca [Tue, 12 Sep 2006 11:35:05 +0000 (13:35 +0200)] 
Remove fprintf stuff

17 years agoMore cleanups
Jonas Fonseca [Tue, 12 Sep 2006 11:34:21 +0000 (13:34 +0200)] 
More cleanups

17 years agoRefector stuff into draw_rev_graph
Jonas Fonseca [Tue, 12 Sep 2006 11:29:09 +0000 (13:29 +0200)] 
Refector stuff into draw_rev_graph

17 years agoSome more refactoring and cleanups
Jonas Fonseca [Tue, 12 Sep 2006 11:24:48 +0000 (13:24 +0200)] 
Some more refactoring and cleanups

17 years agoCracking
Jonas Fonseca [Tue, 12 Sep 2006 08:17:46 +0000 (10:17 +0200)] 
Cracking

17 years agoMinor cleanups
Jonas Fonseca [Tue, 12 Sep 2006 07:33:16 +0000 (09:33 +0200)] 
Minor cleanups

17 years agoVersion 1
Jonas Fonseca [Tue, 12 Sep 2006 07:22:41 +0000 (09:22 +0200)] 
Version 1

17 years agoSIZEOF_REV introduced: 41 bytes of pure madness!
Jonas Fonseca [Tue, 12 Sep 2006 03:44:54 +0000 (05:44 +0200)] 
SIZEOF_REV introduced: 41 bytes of pure madness!

17 years agoMinor cleanups
Jonas Fonseca [Tue, 12 Sep 2006 00:45:36 +0000 (02:45 +0200)] 
Minor cleanups

17 years agoOops, always update the tree view ref
Jonas Fonseca [Tue, 12 Sep 2006 00:23:16 +0000 (02:23 +0200)] 
Oops, always update the tree view ref

17 years agoFix updating of the blob ref and the blob view ref
Jonas Fonseca [Tue, 12 Sep 2006 00:05:17 +0000 (02:05 +0200)] 
Fix updating of the blob ref and the blob view ref

So now pressing 'f' on a tree link won't open a blank blob view. Also, the
blob reference shown in the title bar is always up to date.

17 years agoAlso color Acked-by lines
Jonas Fonseca [Mon, 11 Sep 2006 23:36:32 +0000 (01:36 +0200)] 
Also color Acked-by lines

17 years agoFix redrawing of old current line
Jonas Fonseca [Mon, 11 Sep 2006 23:30:17 +0000 (01:30 +0200)] 
Fix redrawing of old current line

Hopefully the last of all this sloppy bug fixing of the recent cleanups.

17 years agoOnly split the tree view when the tree view is visible
Jonas Fonseca [Mon, 11 Sep 2006 22:22:42 +0000 (00:22 +0200)] 
Only split the tree view when the tree view is visible

17 years agomove_view: drop redraw arg and handle backgrounded moves
Jonas Fonseca [Mon, 11 Sep 2006 22:05:06 +0000 (00:05 +0200)] 
move_view: drop redraw arg and handle backgrounded moves

17 years agodo_scroll_view: drop redraw arg
Jonas Fonseca [Mon, 11 Sep 2006 21:20:52 +0000 (23:20 +0200)] 
do_scroll_view: drop redraw arg

This redraw thing should be fixed in move_view since this is not relevant
for scroll_view.

17 years agodo_scroll_view: minor refactoring of the current line updating
Jonas Fonseca [Mon, 11 Sep 2006 21:07:46 +0000 (23:07 +0200)] 
do_scroll_view: minor refactoring of the current line updating

17 years agosearch_view: use opt_search directly instead of through an argument
Jonas Fonseca [Mon, 11 Sep 2006 20:40:22 +0000 (22:40 +0200)] 
search_view: use opt_search directly instead of through an argument

17 years agoRemove some old cruft that was clearing hidden lines at the end
Jonas Fonseca [Mon, 11 Sep 2006 20:10:08 +0000 (22:10 +0200)] 
Remove some old cruft that was clearing hidden lines at the end

This was used for the first attempt at fixing the bug where the cursor
wraps around on the last line and causes the window to scroll.

17 years agoIntroduce selected flag and use it for refacter wclrtoeol usage
Jonas Fonseca [Mon, 11 Sep 2006 20:03:35 +0000 (22:03 +0200)] 
Introduce selected flag and use it for refacter wclrtoeol usage

This is used when clearing the old current line.

17 years agoAdd selected arg to the view draw operation
Jonas Fonseca [Mon, 11 Sep 2006 19:44:03 +0000 (21:44 +0200)] 
Add selected arg to the view draw operation

17 years agoRefactor current line activation to new select view operation
Jonas Fonseca [Mon, 11 Sep 2006 18:38:20 +0000 (20:38 +0200)] 
Refactor current line activation to new select view operation

17 years agoFix tree viewing again; introduced by string safety patch
Jonas Fonseca [Mon, 11 Sep 2006 04:23:49 +0000 (06:23 +0200)] 
Fix tree viewing again; introduced by string safety patch

17 years agoMake view->regex into a pointer
Jonas Fonseca [Mon, 11 Sep 2006 04:22:51 +0000 (06:22 +0200)] 
Make view->regex into a pointer

17 years agoFix git-describe reference adding when there are no tags and thus no output
Jonas Fonseca [Mon, 11 Sep 2006 04:04:02 +0000 (06:04 +0200)] 
Fix git-describe reference adding when there are no tags and thus no output

17 years agoImprove string buffer copy safety
Jonas Fonseca [Mon, 11 Sep 2006 01:12:15 +0000 (03:12 +0200)] 
Improve string buffer copy safety

17 years agoHrmpf, fix one more default keybinding clash, this time the blob view
Jonas Fonseca [Mon, 11 Sep 2006 00:46:23 +0000 (02:46 +0200)] 
Hrmpf, fix one more default keybinding clash, this time the blob view

By default, it is now bound to 'f'.

17 years agoReview all string_format users and use string_format instead of snprintf
Jonas Fonseca [Mon, 11 Sep 2006 00:13:48 +0000 (02:13 +0200)] 
Review all string_format users and use string_format instead of snprintf

17 years agoMove the current line to the first entry in the tree view
Jonas Fonseca [Sun, 10 Sep 2006 23:32:05 +0000 (01:32 +0200)] 
Move the current line to the first entry in the tree view

17 years agoUse ICONV_NONE instead of (iconv_t) -1
Jonas Fonseca [Sun, 10 Sep 2006 23:21:03 +0000 (01:21 +0200)] 
Use ICONV_NONE instead of (iconv_t) -1

17 years agoRemove redundant ending ';'
Jonas Fonseca [Sun, 10 Sep 2006 22:31:24 +0000 (00:31 +0200)] 
Remove redundant ending ';'

17 years agomanual: mention the tree/blob views
Jonas Fonseca [Sun, 10 Sep 2006 21:14:19 +0000 (23:14 +0200)] 
manual: mention the tree/blob views

17 years agoFix default keybinding clash for 'n' between find-next and toggle-lineno
Jonas Fonseca [Sun, 10 Sep 2006 21:13:35 +0000 (23:13 +0200)] 
Fix default keybinding clash for 'n' between find-next and toggle-lineno

The toggle-lineno is now bound to '.' by default.

17 years agoUse size_t instead of int for string_* functions
Jonas Fonseca [Sun, 10 Sep 2006 20:56:28 +0000 (22:56 +0200)] 
Use size_t instead of int for string_* functions

17 years agoReintroduce foreach_view and use it to fix background loading
Jonas Fonseca [Sun, 10 Sep 2006 19:54:39 +0000 (21:54 +0200)] 
Reintroduce foreach_view and use it to fix background loading

Like the main view, when you after start-up switches to the
tree view.

Also spreads some more asserts to verify guard that no view other than
those being displayed updates their screen.

17 years agoRename foreach_view to foreach_displayed_view
Jonas Fonseca [Sun, 10 Sep 2006 18:42:17 +0000 (20:42 +0200)] 
Rename foreach_view to foreach_displayed_view

17 years agoAdd support for tree and blob view
Jonas Fonseca [Sun, 10 Sep 2006 15:49:18 +0000 (17:49 +0200)] 
Add support for tree and blob view

No command line options have been added to directly enter the tree/blob
views, since that would require a much more complex option parsing because
it would no longer be possible to rely on git's option parsing.

Default keybindings are:
't' show tree view
'b' show blob view

17 years agotig(1): Do not differentiate between git (show|log|diff) options
Jonas Fonseca [Sat, 9 Sep 2006 20:15:07 +0000 (22:15 +0200)] 
tig(1): Do not differentiate between git (show|log|diff) options

... they all basically use the same option parser, so ...

17 years agoReformat the state variable list (opt_*)
Jonas Fonseca [Sat, 9 Sep 2006 20:09:26 +0000 (22:09 +0200)] 
Reformat the state variable list (opt_*)

17 years agoAdd support for searching using regex
Jonas Fonseca [Sat, 9 Sep 2006 20:04:36 +0000 (22:04 +0200)] 
Add support for searching using regex

For commits the title, author, and displayed date string is searchable.
Search text is not highlighted, the current line is simply used to jump
around and show which line matched.

Default keybindings:

'/' search forward
'?' search backward
'n' find next
'N' find previous

Note, this means that '?' no longer displays the help view, just use 'h'.

17 years agoReplace screen-update action with noop action named "none"
Jonas Fonseca [Fri, 8 Sep 2006 17:04:55 +0000 (19:04 +0200)] 
Replace screen-update action with noop action named "none"

Promote it as a way to unbind built-in default key bindings.

17 years agoread_prompt: return static allocated buffer; move out exec mode setup
Jonas Fonseca [Fri, 8 Sep 2006 16:41:56 +0000 (18:41 +0200)] 
read_prompt: return static allocated buffer; move out exec mode setup

17 years agoread_prompt: take prompt 'name' as arg
Jonas Fonseca [Fri, 8 Sep 2006 16:21:43 +0000 (18:21 +0200)] 
read_prompt: take prompt 'name' as arg

17 years agoSIZEOF_STR: introduced and use instead of 1024, also replaces SIZEOF_CMD
Jonas Fonseca [Fri, 8 Sep 2006 16:27:10 +0000 (18:27 +0200)] 
SIZEOF_STR: introduced and use instead of 1024, also replaces SIZEOF_CMD

17 years agoAdd poor man's "show most recent tag" by using git-describe
Jonas Fonseca [Thu, 7 Sep 2006 21:28:53 +0000 (23:28 +0200)] 
Add poor man's "show most recent tag" by using git-describe

In the diff view, the "Refs:" lines will now sport the output of
git-describe by appending it as the last reference to the line.

Now, it should probably be optional and I mostly added it because I wanted
to do a little tig hacking. Anyway, let's hope it will be useful.

17 years agoadd_pager_refs: rename local line data pointer to commit_id
Jonas Fonseca [Thu, 7 Sep 2006 20:32:47 +0000 (22:32 +0200)] 
add_pager_refs: rename local line data pointer to commit_id

17 years agoAdd .gitignore file
Jonas Fonseca [Mon, 4 Sep 2006 23:28:14 +0000 (01:28 +0200)] 
Add .gitignore file

17 years agoprompt: make ':show <id>' use the diff view
Jonas Fonseca [Sun, 3 Sep 2006 20:00:55 +0000 (22:00 +0200)] 
prompt: make ':show <id>' use the diff view

Being able to have the same diff open twice is not very useful.

17 years agoAdd support for converting from git encoding to locale encoding
Jonas Fonseca [Sun, 3 Sep 2006 19:38:58 +0000 (21:38 +0200)] 
Add support for converting from git encoding to locale encoding

17 years agoPass --root to git-show so the diff command will show the initial commit
Jonas Fonseca [Sun, 3 Sep 2006 12:50:23 +0000 (14:50 +0200)] 
Pass --root to git-show so the diff command will show the initial commit

17 years agoSilence stderr for all view commands
Jonas Fonseca [Tue, 22 Aug 2006 22:12:57 +0000 (00:12 +0200)] 
Silence stderr for all view commands

When quickly scrolling through commits with the split diff view, they was
spewing 'Broken pipe' messages onto the screen.

17 years agoImprove handling of 'bogus' author lines
Jonas Fonseca [Tue, 22 Aug 2006 22:05:06 +0000 (00:05 +0200)] 
Improve handling of 'bogus' author lines

If no author name is in the ident line fall-back to use the author email.
Set to "Unknown" if neither is found.

17 years agoCreate directories during make install
Jonas Fonseca [Mon, 24 Jul 2006 21:41:33 +0000 (23:41 +0200)] 
Create directories during make install

"In install there should be also mkdir -p $(DESTDIR)$(bindir)." --witekfl.

17 years agoCheck the value returned by fopen() during display initialization
Jonas Fonseca [Mon, 24 Jul 2006 21:35:41 +0000 (23:35 +0200)] 
Check the value returned by fopen() during display initialization

12:12 < kahmalo> Opening /dev/tty may fail; what does newterm do then?
20:15 < Miciah> fonseca: You always gotta check the return value of fopen. Silly head.

17 years agoNo need to use --stat for the default TIG_MAIN_CMD
Jonas Fonseca [Wed, 12 Jul 2006 20:40:09 +0000 (22:40 +0200)] 
No need to use --stat for the default TIG_MAIN_CMD

My plans to use it to add special categorization/highlighting to commits
never became interesting. Now the complete history of the grafted ELinks'
repo loads in 4 seconds instead of some 240 seconds.