Code

tig.git
18 years agoAdd -O2 to CFLAGS to get more warnings
Jonas Fonseca [Sun, 21 May 2006 01:19:19 +0000 (03:19 +0200)]
Add -O2 to CFLAGS to get more warnings

18 years agoCache all queries for refs based on ID
Jonas Fonseca [Sun, 21 May 2006 01:18:56 +0000 (03:18 +0200)]
Cache all queries for refs based on ID

At least then they won't appear as a source of leaking and in the future
the main view can be reloaded without having to deal freeing them.

18 years agoMove git directory assertion to main; don't require .git repo in pager mode
Jonas Fonseca [Sat, 20 May 2006 19:07:44 +0000 (21:07 +0200)]
Move git directory assertion to main; don't require .git repo in pager mode

18 years agoIn pager mode, fix entering commit lines from log and pager view
Jonas Fonseca [Sat, 20 May 2006 16:42:26 +0000 (18:42 +0200)]
In pager mode, fix entering commit lines from log and pager view

18 years agoRemove old window cycling code from before enter request appeared
Jonas Fonseca [Sat, 20 May 2006 15:56:10 +0000 (17:56 +0200)]
Remove old window cycling code from before enter request appeared

18 years agoAdd simple window stack, tracking view relation ship via parent member
Jonas Fonseca [Sat, 20 May 2006 15:39:25 +0000 (17:39 +0200)]
Add simple window stack, tracking view relation ship via parent member

This makes it possible to easily switch back to the main (or log) view
by closing the diff view, regardless of whether it is split or full-screen.

Requested-by: Aneesh Kumar <aneesh.kumar@gmail.com>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
18 years agoRemove objsize member from struct commit
Jonas Fonseca [Sat, 20 May 2006 14:10:15 +0000 (16:10 +0200)]
Remove objsize member from struct commit

It is unused.

18 years agoMake Enter in the pager view always scroll
Jonas Fonseca [Sat, 20 May 2006 13:22:28 +0000 (15:22 +0200)]
Make Enter in the pager view always scroll

It will still split to diff view if a commit line is detected.

18 years agoRecord builds with dirty working tree by appending -dirty to the version
Jonas Fonseca [Sat, 20 May 2006 12:47:23 +0000 (14:47 +0200)]
Record builds with dirty working tree by appending -dirty to the version

18 years agoRemove trailing space; make cursed global static
Jonas Fonseca [Sat, 20 May 2006 12:37:31 +0000 (14:37 +0200)]
Remove trailing space; make cursed global static

18 years agoMake -h and --help options ouput a help message
Jonas Fonseca [Sat, 20 May 2006 02:45:22 +0000 (04:45 +0200)]
Make -h and --help options ouput a help message

18 years agoBind '-' to PageUp; raises Mutt compatibility
Jonas Fonseca [Sat, 20 May 2006 01:39:07 +0000 (03:39 +0200)]
Bind '-' to PageUp; raises Mutt compatibility

Requested-by: Aneesh Kumar <aneesh.kumar@gmail.com>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
18 years agoStreamline version displaying and show built date
Jonas Fonseca [Sat, 20 May 2006 02:14:53 +0000 (04:14 +0200)]
Streamline version displaying and show built date

18 years agoMake Enter in the main view switch to the split diff view
Jonas Fonseca [Sat, 20 May 2006 01:39:07 +0000 (03:39 +0200)]
Make Enter in the main view switch to the split diff view

This way, holding down Enter will open the commit diff and start scrolling
much like Mutt behaves.

Requested-by: Aneesh Kumar <aneesh.kumar@gmail.com>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
18 years agoAdd preliminary support for UTF-8 handling in the main view
Jonas Fonseca [Sat, 20 May 2006 01:30:41 +0000 (03:30 +0200)]
Add preliminary support for UTF-8 handling in the main view

It is very simple but fixes the issue with unaligned drawing of the line
between the author and log title columns.

18 years agoAdd close view request; bound to 'q' by default
Jonas Fonseca [Fri, 19 May 2006 20:19:19 +0000 (22:19 +0200)]
Add close view request; bound to 'q' by default

If only one view is open it will quit. More compatible with Mutt behavior.

Based on patch by Aneesh Kumar <aneesh.kumar@gmail.com>

18 years agoBind quit to 'Q'
Jonas Fonseca [Fri, 19 May 2006 19:50:48 +0000 (21:50 +0200)]
Bind quit to 'Q'

18 years agoAdd -Werror to the cc debug flags
Jonas Fonseca [Fri, 19 May 2006 19:25:35 +0000 (21:25 +0200)]
Add -Werror to the cc debug flags

18 years agoPressing Enter in the diff view will now scroll it one line down
Jonas Fonseca [Thu, 18 May 2006 08:15:09 +0000 (10:15 +0200)]
Pressing Enter in the diff view will now scroll it one line down

Make tig more compatible with Mutt behavior.

Requested-by: Aneesh Kumar <aneesh.kumar@gmail.com>
18 years agoRearrange things in the start of the viewer
Jonas Fonseca [Thu, 18 May 2006 08:06:02 +0000 (10:06 +0200)]
Rearrange things in the start of the viewer

18 years agoBind 'b' to Page Up, and Space to Page Down
Kristian Høgsberg [Wed, 17 May 2006 22:20:21 +0000 (00:20 +0200)]
Bind 'b' to Page Up, and Space to Page Down

Makes tig more compatible with less and other pagers.

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
18 years agoMake sense of the comment about view->win height
Jonas Fonseca [Wed, 17 May 2006 21:52:45 +0000 (23:52 +0200)]
Make sense of the comment about view->win height

18 years agoGroup display functions at the bottom
Jonas Fonseca [Wed, 17 May 2006 21:43:22 +0000 (23:43 +0200)]
Group display functions at the bottom

18 years agoRedraw the whole display after toggling line number
Jonas Fonseca [Wed, 17 May 2006 21:39:39 +0000 (23:39 +0200)]
Redraw the whole display after toggling line number

18 years agoMinor documentation updates
Jonas Fonseca [Wed, 17 May 2006 21:36:55 +0000 (23:36 +0200)]
Minor documentation updates

18 years agoFix warnings
Sir Raorn [Wed, 17 May 2006 16:09:52 +0000 (18:09 +0200)]
Fix warnings

tig.c: In function 'sq_quote':
tig.c:190: warning: value computed is not used
tig.c:193: warning: value computed is not used

Signed-off-by: Sir Raorn <raorn@altlinux.ru>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
18 years agoFix linking with --as-needed ld(1) option.
Sir Raorn [Wed, 17 May 2006 16:08:31 +0000 (18:08 +0200)]
Fix linking with --as-needed ld(1) option.

Signed-off-by: Sir Raorn <raorn@altlinux.ru>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
18 years agoMinor doc and coding style fixes
Jonas Fonseca [Wed, 17 May 2006 15:58:54 +0000 (17:58 +0200)]
Minor doc and coding style fixes

18 years agoMark quit() and die() __noreturn
Timo Hirvonen [Wed, 17 May 2006 15:57:14 +0000 (17:57 +0200)]
Mark quit() and die() __noreturn

Fixes tig.c|898| warning: 'steps' may be used uninitialized in this function

18 years agoMake some strings "const"
Timo Hirvonen [Wed, 17 May 2006 15:56:23 +0000 (17:56 +0200)]
Make some strings "const"

18 years agotig version 0.3
Jonas Fonseca [Wed, 17 May 2006 11:50:39 +0000 (13:50 +0200)]
tig version 0.3

18 years agoMinor documentation fixes; nothing from git-ls-remote means no git repo
Jonas Fonseca [Wed, 17 May 2006 10:31:41 +0000 (12:31 +0200)]
Minor documentation fixes; nothing from git-ls-remote means no git repo

18 years agoAfter seeing Linus' mail further improve revision specification section
Jonas Fonseca [Tue, 16 May 2006 17:50:55 +0000 (19:50 +0200)]
After seeing Linus' mail further improve revision specification section

18 years agoMake the last variables static
Jonas Fonseca [Tue, 16 May 2006 16:25:28 +0000 (18:25 +0200)]
Make the last variables static

18 years agoFix File history section number
Jonas Fonseca [Tue, 16 May 2006 15:49:05 +0000 (17:49 +0200)]
Fix File history section number

18 years agoMinor fixes
Jonas Fonseca [Tue, 16 May 2006 15:46:23 +0000 (17:46 +0200)]
Minor fixes

18 years agoOnly tig(1) is required by the help view
Jonas Fonseca [Tue, 16 May 2006 15:36:43 +0000 (17:36 +0200)]
Only tig(1) is required by the help view

18 years agoOnly set VERSION to git-describe if .git is available
Jonas Fonseca [Tue, 16 May 2006 15:32:24 +0000 (17:32 +0200)]
Only set VERSION to git-describe if .git is available

18 years agoPut documentation in a branch named release
Jonas Fonseca [Tue, 16 May 2006 15:21:47 +0000 (17:21 +0200)]
Put documentation in a branch named release

18 years agoYou gotta have a README file
Jonas Fonseca [Tue, 16 May 2006 15:18:45 +0000 (17:18 +0200)]
You gotta have a README file

18 years agoDocument file history rev limiting
Jonas Fonseca [Tue, 16 May 2006 13:44:25 +0000 (15:44 +0200)]
Document file history rev limiting

18 years ago... and yet more doc ups
Jonas Fonseca [Tue, 16 May 2006 00:33:48 +0000 (02:33 +0200)]
... and yet more doc ups

18 years agoCheck spelling
Jonas Fonseca [Tue, 16 May 2006 00:00:10 +0000 (02:00 +0200)]
Check spelling

18 years agoFurther improve documentation
Jonas Fonseca [Mon, 15 May 2006 23:48:08 +0000 (01:48 +0200)]
Further improve documentation

18 years agoLots of documentation improvements
Jonas Fonseca [Mon, 15 May 2006 23:39:00 +0000 (01:39 +0200)]
Lots of documentation improvements

18 years agoImprove documentation; optional tab size; move up/down + enter req; fix wrapping
Jonas Fonseca [Mon, 15 May 2006 01:50:32 +0000 (03:50 +0200)]
Improve documentation; optional tab size; move up/down + enter req; fix wrapping

18 years agoOnly save commit tag refs; move line type info to view->ops; switch silently
Jonas Fonseca [Sun, 14 May 2006 07:23:44 +0000 (09:23 +0200)]
Only save commit tag refs; move line type info to view->ops; switch silently

18 years agoFix file mode diff header handling; fix repo refs
Jonas Fonseca [Sun, 14 May 2006 06:23:01 +0000 (08:23 +0200)]
Fix file mode diff header handling; fix repo refs

18 years agoAdd support for repository references
Jonas Fonseca [Sun, 14 May 2006 05:59:40 +0000 (07:59 +0200)]
Add support for repository references

18 years agoOops, no need to #include <readline/readline>
Jonas Fonseca [Sun, 14 May 2006 03:29:13 +0000 (05:29 +0200)]
Oops, no need to #include <readline/readline>

18 years agoTry to improve report("")
Jonas Fonseca [Sun, 14 May 2006 03:13:21 +0000 (05:13 +0200)]
Try to improve report("")

18 years agoImplement support for terminal resizing
Jonas Fonseca [Sun, 14 May 2006 02:50:06 +0000 (04:50 +0200)]
Implement support for terminal resizing

18 years agoTake commands from the environment
Jonas Fonseca [Sun, 14 May 2006 00:18:05 +0000 (02:18 +0200)]
Take commands from the environment

18 years agoUse --topo-order; fclose(stdin); space cleanup
Jonas Fonseca [Sat, 13 May 2006 21:44:21 +0000 (23:44 +0200)]
Use --topo-order; fclose(stdin); space cleanup

18 years agoFix title in split view; scroll/move reporting; ...
Jonas Fonseca [Fri, 12 May 2006 11:06:04 +0000 (13:06 +0200)]
Fix title in split view; scroll/move reporting; ...

18 years agoFix scrolling when current line is outside of splitted view
Jonas Fonseca [Fri, 12 May 2006 10:32:22 +0000 (12:32 +0200)]
Fix scrolling when current line is outside of splitted view

18 years agoSupport for show
Jonas Fonseca [Fri, 12 May 2006 10:28:52 +0000 (12:28 +0200)]
Support for show

18 years agoImprove documentation
Jonas Fonseca [Thu, 11 May 2006 00:59:27 +0000 (02:59 +0200)]
Improve documentation

18 years agoFix ref navigation bug; make internal command line work; cleanups
Jonas Fonseca [Thu, 11 May 2006 00:41:32 +0000 (02:41 +0200)]
Fix ref navigation bug; make internal command line work; cleanups

18 years agoAdd support for pager view
Jonas Fonseca [Wed, 10 May 2006 23:08:44 +0000 (01:08 +0200)]
Add support for pager view

18 years agoAdd support for git log / git diff options
Jonas Fonseca [Wed, 10 May 2006 20:16:44 +0000 (22:16 +0200)]
Add support for git log / git diff options

18 years agoLots of small improvements
Jonas Fonseca [Tue, 9 May 2006 19:25:46 +0000 (21:25 +0200)]
Lots of small improvements

18 years agoMeep
Jonas Fonseca [Tue, 2 May 2006 20:36:50 +0000 (22:36 +0200)]
Meep

18 years agoLots of cleanups and improvements; speed up attr access
Jonas Fonseca [Mon, 1 May 2006 03:44:47 +0000 (05:44 +0200)]
Lots of cleanups and improvements; speed up attr access

18 years agoHeavy renaming and code recomposition
Jonas Fonseca [Mon, 1 May 2006 00:12:35 +0000 (02:12 +0200)]
Heavy renaming and code recomposition

18 years agoLots of minor UI improvements
Jonas Fonseca [Sun, 30 Apr 2006 21:37:55 +0000 (23:37 +0200)]
Lots of minor UI improvements

18 years agoLot's of cleanups and fixes
Jonas Fonseca [Sun, 30 Apr 2006 01:54:05 +0000 (03:54 +0200)]
Lot's of cleanups and fixes

18 years agoTODO's and TODON'T's ...
Jonas Fonseca [Sat, 29 Apr 2006 20:37:26 +0000 (22:37 +0200)]
TODO's and TODON'T's ...

18 years agoPrimitive option parsing; rendering generalizations
Jonas Fonseca [Sat, 29 Apr 2006 01:04:19 +0000 (03:04 +0200)]
Primitive option parsing; rendering generalizations

18 years agoCleanup line matching
Jonas Fonseca [Fri, 28 Apr 2006 02:48:50 +0000 (04:48 +0200)]
Cleanup line matching

18 years agoStarted on the main view
Jonas Fonseca [Thu, 27 Apr 2006 09:21:05 +0000 (11:21 +0200)]
Started on the main view

18 years agoSync. Home/End seems to finally work.
Jonas Fonseca [Thu, 27 Apr 2006 07:40:45 +0000 (09:40 +0200)]
Sync. Home/End seems to finally work.

18 years agoPossible simplification
Jonas Fonseca [Wed, 26 Apr 2006 23:30:07 +0000 (01:30 +0200)]
Possible simplification

18 years agoThe pager is begining to work. :)
Jonas Fonseca [Wed, 26 Apr 2006 23:27:53 +0000 (01:27 +0200)]
The pager is begining to work. :)

18 years agoExploration
Jonas Fonseca [Sat, 22 Apr 2006 19:39:33 +0000 (21:39 +0200)]
Exploration

18 years agoMisc cleanups
Jonas Fonseca [Tue, 18 Apr 2006 21:12:21 +0000 (23:12 +0200)]
Misc cleanups

18 years agoMisc cleanups and improvements
Jonas Fonseca [Sat, 15 Apr 2006 00:55:07 +0000 (02:55 +0200)]
Misc cleanups and improvements

18 years agoShow root; blast raw diff lines
Jonas Fonseca [Tue, 11 Apr 2006 00:35:28 +0000 (02:35 +0200)]
Show root; blast raw diff lines

18 years agoNo binaries
Jonas Fonseca [Tue, 11 Apr 2006 00:29:34 +0000 (02:29 +0200)]
No binaries

18 years agoHalf working prototype
Jonas Fonseca [Tue, 11 Apr 2006 00:29:14 +0000 (02:29 +0200)]
Half working prototype

18 years agoInitial commit
Jonas Fonseca [Mon, 10 Apr 2006 16:39:01 +0000 (18:39 +0200)]
Initial commit