Code

tig.git
17 years agoOops, always ensure that ICONV_CONST is defined
Jonas Fonseca [Fri, 14 Sep 2007 13:57:42 +0000 (15:57 +0200)]
Oops, always ensure that ICONV_CONST is defined

17 years agoUse the more advanced iconv.m4 script from ELinks
Jonas Fonseca [Fri, 14 Sep 2007 12:46:00 +0000 (14:46 +0200)]
Use the more advanced iconv.m4 script from ELinks

17 years agotig-0.9.1.git
Jonas Fonseca [Fri, 14 Sep 2007 12:51:15 +0000 (14:51 +0200)]
tig-0.9.1.git

17 years agotig-0.9
Jonas Fonseca [Thu, 13 Sep 2007 09:10:58 +0000 (11:10 +0200)]
tig-0.9

17 years agoChange the default styles for the status view
Jonas Fonseca [Thu, 13 Sep 2007 09:07:45 +0000 (11:07 +0200)]
Change the default styles for the status view

It now uses cyan for the section headers. Mentioned by Miciah.

17 years agoUpdate documentation
Jonas Fonseca [Thu, 13 Sep 2007 09:06:36 +0000 (11:06 +0200)]
Update documentation

... to list search option in tigrc and mention the stage view
in the manual.

17 years agoForce adding of doc files in the release-doc rule
Jonas Fonseca [Thu, 23 Aug 2007 09:18:29 +0000 (11:18 +0200)]
Force adding of doc files in the release-doc rule

17 years agoFix INSTALL
Horst H. von Brand [Thu, 23 Aug 2007 09:15:50 +0000 (11:15 +0200)]
Fix INSTALL

Signed-off-by: Horst H. von Brand <vonbrand@inf.utfsm.cl>
Update Makefile to also use autoreconf for `make configure`.

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
17 years agoBuild intermediate tig.o file to fix tig dependency on config.h
Jonas Fonseca [Wed, 22 Aug 2007 17:41:12 +0000 (19:41 +0200)]
Build intermediate tig.o file to fix tig dependency on config.h

17 years agoEnsure ICONV_INBUF_TYPE is always defined; fix GIT_CONFIG define
Jonas Fonseca [Wed, 22 Aug 2007 17:38:00 +0000 (19:38 +0200)]
Ensure ICONV_INBUF_TYPE is always defined; fix GIT_CONFIG define

17 years agoGuard config.h include with HAVE_CONFIG_H
Jonas Fonseca [Wed, 22 Aug 2007 17:36:00 +0000 (19:36 +0200)]
Guard config.h include with HAVE_CONFIG_H

... and add -DHAVE_CONFIG_H to CPPFLAGS in config.make.in.

17 years agoDefine TIG_VERSION as intended when autoconf was introduced
Jonas Fonseca [Wed, 22 Aug 2007 17:33:40 +0000 (19:33 +0200)]
Define TIG_VERSION as intended when autoconf was introduced

17 years agoChange last commit to make tig depend on config.h
Jonas Fonseca [Wed, 22 Aug 2007 09:31:19 +0000 (11:31 +0200)]
Change last commit to make tig depend on config.h

17 years agoMake tig.c depend on config.h when using configure
Jonas Fonseca [Wed, 22 Aug 2007 09:29:40 +0000 (11:29 +0200)]
Make tig.c depend on config.h when using configure

17 years agoAdd CC to the list of expanded symbols by configure
Jonas Fonseca [Wed, 22 Aug 2007 09:27:52 +0000 (11:27 +0200)]
Add CC to the list of expanded symbols by configure

Also rearrange the list a bit.

17 years agoAllow LDLIBS to be overriden by configure
Jonas Fonseca [Wed, 22 Aug 2007 09:18:16 +0000 (11:18 +0200)]
Allow LDLIBS to be overriden by configure

17 years agoFix warning from blob_read returning pointer instead of bool
Jonas Fonseca [Wed, 22 Aug 2007 09:16:05 +0000 (11:16 +0200)]
Fix warning from blob_read returning pointer instead of bool

17 years agostage: add request handler supporting file edits and chunk staging
Jonas Fonseca [Tue, 21 Aug 2007 23:36:58 +0000 (01:36 +0200)]
stage: add request handler supporting file edits and chunk staging

This adds and interface (idea from git-gui) allowing a diff chunk to be
staged/unstaged for the next commit. It should also make it more
pleasant to make status updates when in the stage view.

17 years agoAdd stage view, which is used for showing status changes
Jonas Fonseca [Tue, 21 Aug 2007 11:43:53 +0000 (13:43 +0200)]
Add stage view, which is used for showing status changes

17 years agoautoconf: check for the AsciiDoc and XmlTo document tools
Jonas Fonseca [Mon, 20 Aug 2007 21:12:46 +0000 (23:12 +0200)]
autoconf: check for the AsciiDoc and XmlTo document tools

17 years agoautoconf: check whether to use git-config or git-repo-config
Jonas Fonseca [Mon, 20 Aug 2007 21:03:21 +0000 (23:03 +0200)]
autoconf: check whether to use git-config or git-repo-config

17 years agoAdd autoconf-based build infrastructure for tig
Steven Grimm [Mon, 20 Aug 2007 20:49:05 +0000 (22:49 +0200)]
Add autoconf-based build infrastructure for tig

This is a first cut at building tig using autoconf. With this patch, tig
configures and builds on both Linux (FC4) and OS X.

Signed-off-by: Steven Grimm <koreth@midwinter.com>
Reworked to not use aclocal+automake and external scripts for
bootstrapping. Instead, run `make configure` to generate the configure
script. It will create a config.make file from config.make.in, which
contains variables set by the configure script. Update .gitignore to
list generated files.

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
17 years agotree: use simple stack to remember the previous subtree line numbers
Jonas Fonseca [Tue, 21 Aug 2007 00:37:10 +0000 (02:37 +0200)]
tree: use simple stack to remember the previous subtree line numbers

17 years agoOnly show the command being loaded from for the pager view
Jonas Fonseca [Mon, 20 Aug 2007 22:35:32 +0000 (00:35 +0200)]
Only show the command being loaded from for the pager view

This feature was introduced in 035ba11f40c0a045989ed861e72327012af022b4.

17 years agoTODO: tig now has a status view
Jonas Fonseca [Mon, 20 Aug 2007 21:49:47 +0000 (23:49 +0200)]
TODO: tig now has a status view

17 years agoMake it possible to browse all status changes once the diff view is open
Jonas Fonseca [Sun, 19 Aug 2007 09:31:03 +0000 (11:31 +0200)]
Make it possible to browse all status changes once the diff view is open

17 years agoFix handling of REQ_NEXT/REQ_PREVIOUS
Jonas Fonseca [Sun, 19 Aug 2007 09:02:21 +0000 (11:02 +0200)]
Fix handling of REQ_NEXT/REQ_PREVIOUS

The special browsing of the main view was broken by commit
586c423dd99238a85c556df86e043dcfacffe277, when the REQ_ENTER
case was removed.

17 years agoFix updating of the view title to show the current position in the view
Jonas Fonseca [Sun, 19 Aug 2007 08:44:39 +0000 (10:44 +0200)]
Fix updating of the view title to show the current position in the view

It regressed in 11359638c5dfc91b4b14a003a0519b2a5bc7f89d.

17 years agoWarn about nothing to enter if REQ_ENTER reaches the view_driver switch
Jonas Fonseca [Sat, 18 Aug 2007 17:12:47 +0000 (19:12 +0200)]
Warn about nothing to enter if REQ_ENTER reaches the view_driver switch

17 years agostatus: implement support for opening files in editor
Jonas Fonseca [Sat, 18 Aug 2007 15:45:49 +0000 (17:45 +0200)]
status: implement support for opening files in editor

17 years agostatus: cleanup status_request by resurrection status_enter
Jonas Fonseca [Sat, 18 Aug 2007 12:43:39 +0000 (14:43 +0200)]
status: cleanup status_request by resurrection status_enter

17 years agostatus: "wire" REQ_STATUS_UPDATE handling through status_request
Jonas Fonseca [Sat, 18 Aug 2007 01:14:52 +0000 (03:14 +0200)]
status: "wire" REQ_STATUS_UPDATE handling through status_request

17 years agoAdd view request operation for handling view specific requests
Jonas Fonseca [Sat, 18 Aug 2007 01:07:23 +0000 (03:07 +0200)]
Add view request operation for handling view specific requests

For now <view>_enter is replaced with <view>_request.

17 years agostatus: fix switching to the main view when starting in status view
Jonas Fonseca [Fri, 17 Aug 2007 22:16:49 +0000 (00:16 +0200)]
status: fix switching to the main view when starting in status view

17 years agostatus: improve title and report messages
Jonas Fonseca [Fri, 17 Aug 2007 22:14:12 +0000 (00:14 +0200)]
status: improve title and report messages

17 years agostatus: make it possible to batch updates by pressing on the section line
Jonas Fonseca [Fri, 17 Aug 2007 21:59:37 +0000 (23:59 +0200)]
status: make it possible to batch updates by pressing on the section line

17 years agostatus: assert that there are always view lines in the status view
Jonas Fonseca [Fri, 17 Aug 2007 21:24:20 +0000 (23:24 +0200)]
status: assert that there are always view lines in the status view

17 years agostatus: make it possible to see all changes for a status section
Jonas Fonseca [Fri, 17 Aug 2007 20:47:33 +0000 (22:47 +0200)]
status: make it possible to see all changes for a status section

... except untracked files.

17 years agostatus window: mention 'u' instead of Enter
Jeff King [Fri, 10 Aug 2007 17:58:43 +0000 (19:58 +0200)]
status window: mention 'u' instead of Enter

Commits ca1d71ea and 89d917a bound the Enter functionality
to 'u' (and Enter now shows the diff).

[ Slightly changed to use get_key(). --jonas ]

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
17 years agoAdd support for showing staged/unstaged changes and untracked files
Jonas Fonseca [Fri, 10 Aug 2007 13:19:41 +0000 (15:19 +0200)]
Add support for showing staged/unstaged changes and untracked files

When pressing enter on a file in the status view either a diff or the
content of the untracked file will be shown.

17 years agoIntroduce status-update action bound to 'u' by default
Jonas Fonseca [Fri, 10 Aug 2007 12:12:32 +0000 (14:12 +0200)]
Introduce status-update action bound to 'u' by default

For now this obsoletes the action triggered when pressing Enter.

17 years agoAvoid flickering when moving past the main view's first and last line
Witold Filipczyk [Wed, 8 Aug 2007 12:39:22 +0000 (14:39 +0200)]
Avoid flickering when moving past the main view's first and last line

In diff mode when first or last item is displayed KEY_UP or KEY_DOWN
respectively cause flickering. I know that I should not press
those keys in that situation, but this annoys me anyway.

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
17 years agoIgnore generated HTML pages
Jonas Fonseca [Tue, 3 Jul 2007 16:19:03 +0000 (18:19 +0200)]
Ignore generated HTML pages

Also ':sort u' the .gitignore file.

17 years agoIgnore generated manpages.
Brian Gernhardt [Tue, 3 Jul 2007 14:50:25 +0000 (10:50 -0400)]
Ignore generated manpages.

Adds tig.1 and tigrc.5 to .gitignore

Signed-off-by: Brian Gernhardt <benji@silverinsanity.com>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
17 years agoInclude the tig bash completion script as documentation
Jonas Fonseca [Sat, 23 Jun 2007 09:37:17 +0000 (11:37 +0200)]
Include the tig bash completion script as documentation

17 years agoRename contrib/tig-completion.sh to contrib/tig-completion.bash
Jonas Fonseca [Sat, 23 Jun 2007 09:34:57 +0000 (11:34 +0200)]
Rename contrib/tig-completion.sh to contrib/tig-completion.bash

17 years agoFix a few typos in the bash completion
Jonas Fonseca [Sat, 23 Jun 2007 09:33:45 +0000 (11:33 +0200)]
Fix a few typos in the bash completion

17 years agoSimplify naming (versioning) of non-release tig tarball and rpm file
Jakub Narebski [Fri, 22 Jun 2007 21:39:42 +0000 (23:39 +0200)]
Simplify naming (versioning) of non-release tig tarball and rpm file

Use the tag part of git-describe output, with `tig-' prefix stripped
off, as version number. Use number of commits since given tag as
release number, using 0 if we are at tagged version, and adding
'.dirty' suffix if working directory is dirty. Do not use 'g<sha 1>'
part of git-describe output.

For example, when git-describe output was tig-0.7-8-g26d0386, before
this commit tarball was named tig-0.7.8.g26d0386.tar.gz and rpm was
named tig-0.7.8.g26d0386-1.src.rpm (for dirty tree tarball was
tig-0.7.8.g26d0386.dirty.tar.gz), now tarball is named
tig-0.7-8.tar.gz and rpm is named tig-0.7-8.src.rpm (for dirty tree
tarball is tig-0.7-8.dirty.tar.gz).

[ Simplify the version extraction a bit. --jonas ]

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
17 years agoMove tig.spec.in to the contrib area
Jonas Fonseca [Fri, 22 Jun 2007 15:06:15 +0000 (17:06 +0200)]
Move tig.spec.in to the contrib area

17 years agoMove tigrc to the contrib area
Jonas Fonseca [Fri, 22 Jun 2007 15:04:45 +0000 (17:04 +0200)]
Move tigrc to the contrib area

17 years agoAdd tig bash completion script
Jonas Fonseca [Fri, 22 Jun 2007 15:01:24 +0000 (17:01 +0200)]
Add tig bash completion script

Based on git-completion.sh by Shawn Pearce.

17 years agoDelete the old VERSION file before appending the new one in make dist
Jonas Fonseca [Wed, 20 Jun 2007 07:40:27 +0000 (09:40 +0200)]
Delete the old VERSION file before appending the new one in make dist

17 years agoUse $(MAKE) instead of 'make' and 'git *' instead of 'git-*'
Jonas Fonseca [Wed, 20 Jun 2007 07:04:00 +0000 (09:04 +0200)]
Use $(MAKE) instead of 'make' and 'git *' instead of 'git-*'

17 years agotig-0.8.git
Jonas Fonseca [Tue, 19 Jun 2007 07:18:57 +0000 (09:18 +0200)]
tig-0.8.git

17 years agotig-0.8
Jonas Fonseca [Tue, 19 Jun 2007 07:11:48 +0000 (09:11 +0200)]
tig-0.8

17 years agoFix pager mode regressions
Jonas Fonseca [Mon, 18 Jun 2007 14:09:59 +0000 (16:09 +0200)]
Fix pager mode regressions

This fixes both a segfault when starting tig in pager mode, caused by no
view being setup before calling report(). Introduced in: "Add notice
about empty pager view" (5c4358d1b309381997a5c4780a432140fefa5bcb).
Reported by Lars Noschinski in debian bug 429448.

Also, a fix for actually reading from stdin, caused by comparison of
view->vid and view->id being reported as equal leading to no actual
update. Introduced in: "Improve management of view->ref and the title
line" (035ba11f40c0a045989ed861e72327012af022b4). Now, the title line in
pager mode will say "stdin" when reading from externally piped input.

17 years agoFix (another) integer type mismatch on 64-bit systems
Jonas Fonseca [Mon, 4 Jun 2007 06:45:21 +0000 (08:45 +0200)]
Fix (another) integer type mismatch on 64-bit systems

Similar to previous commit, use int type as the first parameter to
printf field width specifier (%.*s).

17 years agoFix integer type mismatch on 64-bit systems
Steven Grimm [Sun, 3 Jun 2007 21:12:06 +0000 (14:12 -0700)]
Fix integer type mismatch on 64-bit systems

fprintf wants an int parameter for the field width of a "%.*s" expression, but
the code was passing a size_t instead. This potentially broke systems where
sizeof(size_t) != sizeof(int). And even on systems where it did't break,
it still caused a compiler warning.

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
17 years agoAdd TODO about using non-blocking I/O for incremental view loading
Jonas Fonseca [Mon, 4 Jun 2007 06:37:45 +0000 (08:37 +0200)]
Add TODO about using non-blocking I/O for incremental view loading

Seems to be the fix for debian bug #427093.

17 years agoOnly emit one "Not a git repository" error message
Jonas Fonseca [Sun, 3 Jun 2007 12:31:55 +0000 (14:31 +0200)]
Only emit one "Not a git repository" error message

17 years agoAllow CFLAGS to be overridden while preserving VERSION
James Bowes [Sat, 2 Jun 2007 17:14:50 +0000 (13:14 -0400)]
Allow CFLAGS to be overridden while preserving VERSION

If someone defined their own CFLAGS, they would have to include a -DVERSION=
as well (or else get unknown-version as the version).

Signed-off-by: James Bowes <jbowes@dangerouslyinc.com>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
17 years agoGrab path to the git directory; use it when listing untracked files
Jonas Fonseca [Sat, 2 Jun 2007 16:49:24 +0000 (18:49 +0200)]
Grab path to the git directory; use it when listing untracked files

17 years agoread_properties: use size_t instead of int for callback
Jonas Fonseca [Sat, 2 Jun 2007 17:14:42 +0000 (19:14 +0200)]
read_properties: use size_t instead of int for callback

17 years agoFix wrong uses of string_copy() with pointer instead of buffer
Jonas Fonseca [Sat, 2 Jun 2007 17:03:30 +0000 (19:03 +0200)]
Fix wrong uses of string_copy() with pointer instead of buffer

Follow up to commit 751e27c90eea47b4eacdd7b657731712712f7356 that
caused these bugs to be revealed.

17 years agoFix use of the status view from subdirectories
Jonas Fonseca [Sat, 2 Jun 2007 08:55:29 +0000 (10:55 +0200)]
Fix use of the status view from subdirectories

17 years agoFix string_copy macro to use sizeof(src) for the source buffer
Jonas Fonseca [Sat, 2 Jun 2007 16:18:24 +0000 (18:18 +0200)]
Fix string_copy macro to use sizeof(src) for the source buffer

17 years agoMerge branch 'jn/rpm-updates'
Jonas Fonseca [Sat, 2 Jun 2007 09:03:12 +0000 (11:03 +0200)]
Merge branch 'jn/rpm-updates'

Conflicts:

Makefile

17 years agoRefresh VERSION file when building distribution tarball in "make dist"
Jakub Narebski [Fri, 1 Jun 2007 16:34:28 +0000 (18:34 +0200)]
Refresh VERSION file when building distribution tarball in "make dist"

Overwrite contents of VERSION file from the HEAD revision with the
current version (at the time of building), so VERSION file in the
tarball generated by "make dist" (and which follows also rpm package
generated by "make rpm") is up to date.

Otherwise for example when building rpm it will be compiled with wrong
version string.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
17 years agoInclude documentation sources for rpmbuild with '--without docs'
Jakub Narebski [Fri, 1 Jun 2007 16:27:30 +0000 (18:27 +0200)]
Include documentation sources for rpmbuild with '--without docs'

This includes _all_ documentation sources (and not only manual.txt) in
the rpm file build with '--without docs' option.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
17 years agoRemove PDF version of manual from being build and installed
Jakub Narebski [Fri, 1 Jun 2007 16:24:07 +0000 (18:24 +0200)]
Remove PDF version of manual from being build and installed

Because PDF version of "The tig Manual" doesn't offer anything new
that is not present in HTML version, and building PDF requires
additional tools (docbook2pdf) and their dependencies present, remove
it from tig rpm.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
17 years agoMake dist rule more robust using '&&'; create .tar.gz.md5 file
Jonas Fonseca [Fri, 1 Jun 2007 20:43:48 +0000 (22:43 +0200)]
Make dist rule more robust using '&&'; create .tar.gz.md5 file

17 years agoFix typo the INSTALL file
Jonas Fonseca [Fri, 1 Jun 2007 08:00:35 +0000 (10:00 +0200)]
Fix typo the INSTALL file

The make command to build the documentation "make install-doc", not
"make install-docs".

Kindly pointed out by Michael G. Noll.

17 years agoSupply explicit permission bits to 'install'
Jeffrey C. Ollie [Thu, 31 May 2007 19:20:32 +0000 (14:20 -0500)]
Supply explicit permission bits to 'install'

'install' will install files with permissions set to '0755' if the
permissions are not specified on the command line.  Having the execute
bits set on non-executable content is not desireable.  Specify mode
0644 for non-executable content as well as specify mode 0755 for
executable content (in case the defaults change or are different on
different systems).  Also tell 'install' to preserve timestamps.

[ Updated to also do it when installing HTML files. --jonas ]

Signed-off-by: Jeffrey C. Ollie <jeff@ocjtech.us>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
17 years agotig-0.7.git
Jonas Fonseca [Thu, 31 May 2007 10:19:48 +0000 (12:19 +0200)]
tig-0.7.git

17 years agotig-0.7
Jonas Fonseca [Thu, 31 May 2007 10:17:33 +0000 (12:17 +0200)]
tig-0.7

17 years agoRename sync-docs to release-doc; add release-dist rule
Jonas Fonseca [Thu, 31 May 2007 09:56:52 +0000 (11:56 +0200)]
Rename sync-docs to release-doc; add release-dist rule

Additionally, allow VERSION to be overwritten from the command
line by setting DIST_VERSION.

17 years agoVarious random Makefile cleanups
Jonas Fonseca [Thu, 31 May 2007 09:54:51 +0000 (11:54 +0200)]
Various random Makefile cleanups

17 years agoUpdate sync-docs target to use git porcelain instead of cogito
Jonas Fonseca [Thu, 31 May 2007 09:25:49 +0000 (11:25 +0200)]
Update sync-docs target to use git porcelain instead of cogito

17 years agoInfrastructure for tig rpm builds
Jakub Narebski [Thu, 31 May 2007 09:20:05 +0000 (11:20 +0200)]
Infrastructure for tig rpm builds

Adds RPM_VERSION to Makefile and new make targets: tig.spec, dist, and
rpm. A simple 'make rpm' will build the rpm. Also adds tig.spec.in
which is used to generate tig.spec.

Accidentally VERSION (and adding -DVERSION=$(VERSION) to CFLAGS) is
now defined always, even if we do not compile from the "live" tig
repository.

Minimally tested (meaning "make rpm" from tig repository works).

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
17 years agoMove "static" version info to VERSION file
Jonas Fonseca [Thu, 31 May 2007 08:46:20 +0000 (10:46 +0200)]
Move "static" version info to VERSION file

Cleanup dynamic version acquiring via git.

17 years agoAdd version information to man pages
Jonas Fonseca [Thu, 31 May 2007 08:31:34 +0000 (10:31 +0200)]
Add version information to man pages

Inspired and copied from git 7ef195ba3efe0ffa815e12afc4cb1e39a21ddfb4:

    Override the [header] macro of asciidoc's docbook
    backend to add version information to the generated
    man pages.

by Frank Lichtenheld <frank@lichtenheld.de>. Slightly improved to
use asciidoc {version} macro to avoid having to invoke sed.

17 years agoAdd manpage XSL from git and enhance with literallayout fixes
Jonas Fonseca [Thu, 31 May 2007 08:19:22 +0000 (10:19 +0200)]
Add manpage XSL from git and enhance with literallayout fixes

It ensures that .sp tags will be properly output so they do not appear
in the rendered manpages. Grabed from git's Documentation/callouts.xsl
file. From the git's commit 7ef0435088f41165ece95b6f226d3c15438505a5:

    This is just a random hack to work around problems people seem
    to be seeing in manpage backend of xmlto (it appears we are
    getting ".sp" at the end of line without line break).

Additionally, output an empty line after literallayout blocks (.nf .fi)
so that any text following it will appear in a separate block.

17 years agoAdd status view
Jonas Fonseca [Wed, 30 May 2007 20:55:49 +0000 (22:55 +0200)]
Add status view

The new view supports staging, unstaging, and adding of
untracked files. It is still only very basic. The colors
might need a few tweaks.

Bound to 'S' by default.

17 years agomain_read: cleanup and simplify
Jonas Fonseca [Wed, 30 May 2007 18:53:20 +0000 (20:53 +0200)]
main_read: cleanup and simplify

17 years agoRefactor add_line_text parts into add_line_data; use it in main_read
Jonas Fonseca [Wed, 30 May 2007 18:22:04 +0000 (20:22 +0200)]
Refactor add_line_text parts into add_line_data; use it in main_read

17 years agoAdd open method to view_ops
Jonas Fonseca [Tue, 29 May 2007 23:18:31 +0000 (01:18 +0200)]
Add open method to view_ops

Use it to turn open_help_view into help_open and make a backend for the
help view.

17 years agoAdd notice about empty pager view
Jonas Fonseca [Tue, 29 May 2007 14:11:58 +0000 (16:11 +0200)]
Add notice about empty pager view

Similar to notice for blob view, mention when there is no pager content
to view and suggest the user to open the prompt to run a command.

17 years agoAdd notice about empty pager view
Jonas Fonseca [Tue, 29 May 2007 14:11:58 +0000 (16:11 +0200)]
Add notice about empty pager view

Similar to notice for blob view, mention when there is no pager content
to view and suggest the user to open the prompt to run a command.

17 years agoMake keybinding reference more dynamic
Jonas Fonseca [Tue, 29 May 2007 14:06:00 +0000 (16:06 +0200)]
Make keybinding reference more dynamic

It doesn't honor any key map info, however, hardcoding key information
seems wrong when get_key already exists. Used for the notice when blob
view is requested and no blob ID has yet been assigned to ref_blob.

17 years agoMove space separator from get_key to formatting in open_help_view
Jonas Fonseca [Tue, 29 May 2007 14:00:24 +0000 (16:00 +0200)]
Move space separator from get_key to formatting in open_help_view

17 years agoImprove managment of view->ref and the title line
Jonas Fonseca [Tue, 29 May 2007 13:07:38 +0000 (15:07 +0200)]
Improve managment of view->ref and the title line

This removes a blob view specific hack needed for keeping the title line
synchronized with the current blob ID. It further also changes the pager
view to show the actual command that was run, regardless of whether
a commit line has been hovered.

17 years agoBe more paranoid about paths when updating the tree view
Jonas Fonseca [Tue, 29 May 2007 13:34:10 +0000 (15:34 +0200)]
Be more paranoid about paths when updating the tree view

Shell quote the path always.

17 years agomove_view: fix view->offset overflow bug
Jonas Fonseca [Tue, 29 May 2007 11:08:21 +0000 (13:08 +0200)]
move_view: fix view->offset overflow bug

Reproducable by opening the tree view, then maximizing the blob view,
move up, and then closing the blob view, causing the view->offset to
have "wrapped around" and nothing to be displayed in the tree view.

The invalid update of view->offset only happend when moving
non-displayed views.  Instead use the checked scroll_steps variable
instead of the steps variable.  Add a guarding assert after the update.

17 years agoIntroduce add_line_text to simplify pager based rendering
Jonas Fonseca [Tue, 29 May 2007 10:14:53 +0000 (12:14 +0200)]
Introduce add_line_text to simplify pager based rendering

17 years agoFix revision graph visualization during incremental updating
Jonas Fonseca [Fri, 18 May 2007 20:50:29 +0000 (22:50 +0200)]
Fix revision graph visualization during incremental updating

This caused certain commit lines in the main view to not have have a
visual revision graph.

The reason is that revision graph visualization requires knowledge about
the parent commit. This causes a further one-off needed to be redrawn
for incremental updates.

17 years agoAdd TODO item about diff chunk staging/unstaging
Jonas Fonseca [Wed, 9 May 2007 13:14:58 +0000 (15:14 +0200)]
Add TODO item about diff chunk staging/unstaging

Requested by Pasky.

17 years agoMake it possible to install man pages and html files separately
Greg KH [Wed, 9 May 2007 11:25:57 +0000 (13:25 +0200)]
Make it possible to install man pages and html files separately

[ Fixed typo and finally corrected the manual.html dependency on
  manual.toc. --jonas ]

17 years agotig-0.6.git
Jonas Fonseca [Sun, 25 Mar 2007 09:26:59 +0000 (11:26 +0200)]
tig-0.6.git

17 years agoBump the version number to 0.6
Jonas Fonseca [Sun, 25 Mar 2007 09:24:13 +0000 (11:24 +0200)]
Bump the version number to 0.6

17 years agoOops, remove -liconv from LDFLAGS
Jonas Fonseca [Sun, 25 Mar 2007 09:22:28 +0000 (11:22 +0200)]
Oops, remove -liconv from LDFLAGS