Code

tig.git
14 years agoFix 'tig show <commit>' fix which causes empty tree views
Jonas Fonseca [Tue, 21 Sep 2010 12:38:11 +0000 (08:38 -0400)]
Fix 'tig show <commit>' fix which causes empty tree views

Introduced by 80e97cdd456dfe71d0dbf32d77a73bb5a2ab158e.

14 years agoCheck the ncurses version before using set_tabsize
Kumar Appaiah [Mon, 20 Sep 2010 23:10:11 +0000 (18:10 -0500)]
Check the ncurses version before using set_tabsize

This patch checks the ncurses patch level to decide if set_tabsize is
to be used in place of the TABSIZE macro, for setting the tab size.

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
14 years agotig-0.16.1
Jonas Fonseca [Sun, 19 Sep 2010 18:22:26 +0000 (14:22 -0400)]
tig-0.16.1

14 years agoFix tig show by replacing %(commit) with %(revargs) on first display
Jonas Fonseca [Sun, 19 Sep 2010 15:09:41 +0000 (11:09 -0400)]
Fix tig show by replacing %(commit) with %(revargs) on first display

Broken in commit 53c089443cd9885fa677becee4bf7ffd56c3c357.

14 years agoUse function set_tabsize()
Stefan Naewe [Sun, 12 Sep 2010 09:03:52 +0000 (11:03 +0200)]
Use function set_tabsize()

this fixes the following compile error on cygwin:
tig.c: In function `init_display':
tig.c:7112: error: invalid lvalue in assignment

Signed-off-by: Stefan Naewe <stefan.naewe@googlemail.com>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
14 years agoDon't show out-of-sight tildes
Jonathan Neuschäfer [Thu, 16 Sep 2010 01:01:10 +0000 (21:01 -0400)]
Don't show out-of-sight tildes

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
14 years agoAdd an option to ignore unknown directories contents in the status view
Pierre Habouzit [Mon, 28 Jun 2010 08:26:17 +0000 (10:26 +0200)]
Add an option to ignore unknown directories contents in the status view

Similar to git ls-files --directory

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
14 years agoRemove remains from the obsoleted toggle-date-short action
Jonas Fonseca [Sat, 26 Jun 2010 21:59:58 +0000 (17:59 -0400)]
Remove remains from the obsoleted toggle-date-short action

The default keybinding and handling code was removed in commit
b9247a4639adcfa4e8f816d75c62917575757619

14 years agoActually add the ^D binding to move-page-down
Pierre Habouzit [Sat, 26 Jun 2010 21:15:47 +0000 (23:15 +0200)]
Actually add the ^D binding to move-page-down

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
14 years agoAdd a scroll-first-col command
Pierre Habouzit [Thu, 24 Jun 2010 15:24:24 +0000 (17:24 +0200)]
Add a scroll-first-col command

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
[ jf: fix built-in description and add entry to the manual ]

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
14 years agoAdd vi-like ^ bindings
Pierre Habouzit [Thu, 24 Jun 2010 15:24:23 +0000 (17:24 +0200)]
Add vi-like ^ bindings

^N/^P for previous/next
^Y/^E for scroll_up/scroll_down
^D/^U for page_up/page_down
^L    for redraw

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
14 years agoAllow tig to parse control-modified chars in tigrc
Pierre Habouzit [Thu, 24 Jun 2010 15:24:22 +0000 (17:24 +0200)]
Allow tig to parse control-modified chars in tigrc

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
[ jf: s/0x32/0x20/ per request from Pierre ]

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
14 years agoFix segfault when starting tig in pager mode
Jonas Fonseca [Sat, 26 Jun 2010 00:01:07 +0000 (20:01 -0400)]
Fix segfault when starting tig in pager mode

Thanks to Pierre Habouzit and Tobias Heinlein for reporting this.

14 years agoFall back to retry if no diff will be shown
Jonas Fonseca [Wed, 23 Jun 2010 02:52:58 +0000 (22:52 -0400)]
Fall back to retry if no diff will be shown

This can happen if a file spec was passed on the command line and
the diff view is opened from the blame view with a different path.

14 years agoRefactor argv_size out from argv_append
Jonas Fonseca [Wed, 23 Jun 2010 02:23:35 +0000 (22:23 -0400)]
Refactor argv_size out from argv_append

14 years agotig-0.16
Jonas Fonseca [Sat, 12 Jun 2010 15:38:24 +0000 (11:38 -0400)]
tig-0.16

14 years agoFix missing ID reference
Jonas Fonseca [Sat, 12 Jun 2010 15:29:32 +0000 (11:29 -0400)]
Fix missing ID reference

... the original ID was removed in commit
b00784cc39b2d7b6069d382a2405fb3e117386d1.

14 years agoRename {diff,file,rev}-args to {diff,file,rev}args
Jonas Fonseca [Sat, 12 Jun 2010 14:36:28 +0000 (10:36 -0400)]
Rename {diff,file,rev}-args to {diff,file,rev}args

14 years agoLoad diff arguments from TIG_DIFF_OPTS if defined and no diff args was passed
Jonas Fonseca [Fri, 11 Jun 2010 00:02:39 +0000 (20:02 -0400)]
Load diff arguments from TIG_DIFF_OPTS if defined and no diff args was passed

This is the missing part of 53c089443cd9885fa677becee4bf7ffd56c3c357.

14 years agoMove application of string_expand to draw_text
Jonas Fonseca [Thu, 10 Jun 2010 23:43:48 +0000 (19:43 -0400)]
Move application of string_expand to draw_text

... fixes bug which truncated long lines to a fixed number of chars.

14 years agoImprove parent blame to handle line-jumping for renames better
Jeff King [Thu, 10 Jun 2010 01:27:27 +0000 (21:27 -0400)]
Improve parent blame to handle line-jumping for renames better

... by using git diff to compare directly the current and parent blob.

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
14 years agoImprove parent blame to detect renames by using the previous information
Jonas Fonseca [Sat, 5 Jun 2010 19:35:17 +0000 (15:35 -0400)]
Improve parent blame to detect renames by using the previous information

From git commit 96e117099c0e4f7d508eb071f60b6275038f6f37:

 It gives the parent commit of the blamed commit, _and_ a path in that
 parent commit that corresponds to the blamed path --- in short, it is
 the origin that would have been blamed (or passed blame through) for
 the line _if_ the blamed commit did not change that line.

This functionality was released in git version 1.6.3 in 2009-05-06.

14 years agoFree blame view data when reloading view
Jonas Fonseca [Wed, 9 Jun 2010 03:10:08 +0000 (23:10 -0400)]
Free blame view data when reloading view

14 years agoFix clearing of the loading flag in the input select loop
Jonas Fonseca [Tue, 8 Jun 2010 00:06:42 +0000 (20:06 -0400)]
Fix clearing of the loading flag in the input select loop

The bug was introduced in 33e10c2599e16ff6690e7b0bbdd7a95e7f97c886.

14 years agoDeprecate use of TIG_{MAIN,DIFF,LOG,TREE,BLOB}_CMD environment variables
Jonas Fonseca [Sat, 5 Jun 2010 04:23:09 +0000 (00:23 -0400)]
Deprecate use of TIG_{MAIN,DIFF,LOG,TREE,BLOB}_CMD environment variables

14 years agoAdd support for splitting command line arguments
Jonas Fonseca [Wed, 2 Jun 2010 11:45:01 +0000 (07:45 -0400)]
Add support for splitting command line arguments

14 years agoMake the branch view always prepare how the main view is loaded
Jonas Fonseca [Fri, 4 Jun 2010 22:55:01 +0000 (18:55 -0400)]
Make the branch view always prepare how the main view is loaded

14 years agoCleanup initialization of built-in run requests
Jonas Fonseca [Fri, 4 Jun 2010 22:40:46 +0000 (18:40 -0400)]
Cleanup initialization of built-in run requests

14 years agoMake view and run request argv members flexible and allocated
Jonas Fonseca [Fri, 4 Jun 2010 13:20:54 +0000 (09:20 -0400)]
Make view and run request argv members flexible and allocated

14 years agoFurther cleanup IO startup and initialization; fix io_run_append
Jonas Fonseca [Thu, 3 Jun 2010 11:48:24 +0000 (07:48 -0400)]
Further cleanup IO startup and initialization; fix io_run_append

14 years agoCleanup IO struct initialization
Jonas Fonseca [Thu, 3 Jun 2010 01:33:57 +0000 (21:33 -0400)]
Cleanup IO struct initialization

14 years agoMake argv_copy always allocate its members
Jonas Fonseca [Wed, 2 Jun 2010 20:29:12 +0000 (16:29 -0400)]
Make argv_copy always allocate its members

14 years agoMove struct io's argv and dir members to struct view
Jonas Fonseca [Wed, 2 Jun 2010 20:15:24 +0000 (16:15 -0400)]
Move struct io's argv and dir members to struct view

14 years agoRemove format_flags enum and its companion format_argv forward declaration
Jonas Fonseca [Thu, 3 Jun 2010 01:11:31 +0000 (21:11 -0400)]
Remove format_flags enum and its companion format_argv forward declaration

14 years agoMove and rewrite io_format to become prepare_io
Jonas Fonseca [Wed, 2 Jun 2010 16:10:20 +0000 (12:10 -0400)]
Move and rewrite io_format to become prepare_io

14 years agoMake argv_copy support allocating argv members
Jonas Fonseca [Wed, 2 Jun 2010 15:58:35 +0000 (11:58 -0400)]
Make argv_copy support allocating argv members

14 years agoPlug another memory leak and cleanup update start code while at it
Jonas Fonseca [Wed, 2 Jun 2010 15:51:03 +0000 (11:51 -0400)]
Plug another memory leak and cleanup update start code while at it

14 years agoMark the argument array as freed in argv_free
Jonas Fonseca [Wed, 2 Jun 2010 20:07:08 +0000 (16:07 -0400)]
Mark the argument array as freed in argv_free

14 years agoRefactor io_complete into a single backend for {back,fore}ground and append IO
Jonas Fonseca [Tue, 1 Jun 2010 12:40:31 +0000 (08:40 -0400)]
Refactor io_complete into a single backend for {back,fore}ground and append IO

14 years agoIntroduce io_prepare as a fix to plug memory leaks related to argv formatting
Jonas Fonseca [Tue, 1 Jun 2010 12:36:57 +0000 (08:36 -0400)]
Introduce io_prepare as a fix to plug memory leaks related to argv formatting

14 years agoInternalize format flags in the IO layer
Jonas Fonseca [Tue, 1 Jun 2010 00:37:49 +0000 (20:37 -0400)]
Internalize format flags in the IO layer

14 years agoMake the blame view format its own command arguments
Jonas Fonseca [Tue, 1 Jun 2010 12:19:17 +0000 (08:19 -0400)]
Make the blame view format its own command arguments

14 years agoUse view_request to unconditionally refresh views after run requests
Jonas Fonseca [Mon, 17 May 2010 03:31:34 +0000 (23:31 -0400)]
Use view_request to unconditionally refresh views after run requests

14 years agoAdd view_request to call the view request method
Jonas Fonseca [Sun, 9 May 2010 21:43:06 +0000 (17:43 -0400)]
Add view_request to call the view request method

14 years agoMove and rename free_argv to argv_free
Jonas Fonseca [Sun, 30 May 2010 00:47:32 +0000 (20:47 -0400)]
Move and rename free_argv to argv_free

14 years agoMake open_blob_editor use its own argv show and take blob ID as an argument
Jonas Fonseca [Mon, 10 May 2010 02:24:44 +0000 (22:24 -0400)]
Make open_blob_editor use its own argv show and take blob ID as an argument

14 years agoUse view_is_displayed when figuring setting up the open flags
Jonas Fonseca [Thu, 27 May 2010 23:38:50 +0000 (19:38 -0400)]
Use view_is_displayed when figuring setting up the open flags

14 years agoRestructure option management code to separate section
Jonas Fonseca [Sun, 9 May 2010 21:42:28 +0000 (17:42 -0400)]
Restructure option management code to separate section

14 years agoOnly update status view at EOF for displayed views
Jonas Fonseca [Sat, 8 May 2010 01:46:42 +0000 (21:46 -0400)]
Only update status view at EOF for displayed views

14 years agofix off-by-one on parent selection
Jeff King [Mon, 10 May 2010 08:55:04 +0000 (04:55 -0400)]
fix off-by-one on parent selection

Originally, we use "git rev-list -1 --parents" to get the
list of parents, and therefore the 0th slot was the commit
in question, the 1st slot was the 1st parent, and so forth.

Commit 0a46941 switched this to use --pretty=format:%P, so
that the menu-selection code could be easily used (which
counts items starting from 0). However, we only use the menu
code in the case of multiple parents.  For a single parent,
this introduced an off-by-one where we look just past the
parent we want.

This patch fixes it by explicitly selecting the 0th parent
for the single parent case.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
14 years agoSimplify handling of REQ_NEXT/REQ_PREVIOUS by using view->parent
Jonas Fonseca [Wed, 5 May 2010 00:01:58 +0000 (20:01 -0400)]
Simplify handling of REQ_NEXT/REQ_PREVIOUS by using view->parent

14 years agoAdd view->prev to track history leaving view->parent for split views
Jonas Fonseca [Tue, 4 May 2010 23:49:57 +0000 (19:49 -0400)]
Add view->prev to track history leaving view->parent for split views

14 years agoColor 'Reviewed-by' and 'Tested-by' lines
Ingmar Vanhassel [Tue, 27 Apr 2010 14:18:25 +0000 (16:18 +0200)]
Color 'Reviewed-by' and 'Tested-by' lines

Signed-off-by: Ingmar Vanhassel <ingmar@exherbo.org>
Rename the symbols 'reviewed' and 'tested'.

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
14 years agoWhen adding a keybinding check if the key is already bound
Jonas Fonseca [Thu, 22 Apr 2010 02:34:12 +0000 (22:34 -0400)]
When adding a keybinding check if the key is already bound

... and then overwrite it with the new request.

14 years agoAllow built-in run requests to be unbound
Jonas Fonseca [Thu, 22 Apr 2010 02:15:08 +0000 (22:15 -0400)]
Allow built-in run requests to be unbound

By adding built-in run requests after loading config files and checking
if each of them conflicts with an existing keybinding.

Reported by Simon Ruderich.

14 years agoFix set_keymap to error when resolving an unknown keymap
Jonas Fonseca [Thu, 22 Apr 2010 01:53:56 +0000 (21:53 -0400)]
Fix set_keymap to error when resolving an unknown keymap

The underlying interface was changed in commit f50084da to return
TRUE/FALSE instead of OK/ERR, but the only usage of set_keymap was not
updated. This lead to a potential segmentation fault.

Reported by Simon Ruderich.

14 years agoAdded support for displaying dates in localtime.
Simon Gerber [Wed, 14 Apr 2010 13:00:57 +0000 (15:00 +0200)]
Added support for displaying dates in localtime.

[ jf: updated documentation and added NEWS entry ]

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
14 years agoFixed parse_timezone to correctly calculate the offset in seconds.
Simon Gerber [Wed, 14 Apr 2010 12:02:38 +0000 (14:02 +0200)]
Fixed parse_timezone to correctly calculate the offset in seconds.

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
14 years agotigrc(5): fix typo
Simon Ruderich [Thu, 15 Apr 2010 11:21:17 +0000 (07:21 -0400)]
tigrc(5): fix typo

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
14 years agoFix unbind behavoir
Jonas Fonseca [Sun, 11 Apr 2010 01:15:34 +0000 (21:15 -0400)]
Fix unbind behavoir

Fix problem where binding a key to none to deactivate it did not work.
Furthermore, make it show the usual "Unknown key, press 'h' for help".

Reported by Simon Ruderich.

14 years agoIntroduce view->type member
Jonas Fonseca [Tue, 13 Apr 2010 01:34:19 +0000 (21:34 -0400)]
Introduce view->type member

14 years agoUse foreach_view for the stop loading action
Jonas Fonseca [Mon, 12 Apr 2010 02:47:14 +0000 (22:47 -0400)]
Use foreach_view for the stop loading action

14 years agoRemove unused VIEW_REQ() macro
Jonas Fonseca [Mon, 12 Apr 2010 02:43:26 +0000 (22:43 -0400)]
Remove unused VIEW_REQ() macro

14 years agoAdd view flag with information about whether the view supports refreshing
Jonas Fonseca [Mon, 12 Apr 2010 02:42:52 +0000 (22:42 -0400)]
Add view flag with information about whether the view supports refreshing

14 years agoargv: remove now unused FORMAT_DASH
Jonas Fonseca [Wed, 31 Mar 2010 02:12:50 +0000 (22:12 -0400)]
argv: remove now unused FORMAT_DASH

14 years agoargv: make prepare_update use FORMAT_NONE
Jonas Fonseca [Wed, 31 Mar 2010 02:11:31 +0000 (22:11 -0400)]
argv: make prepare_update use FORMAT_NONE

14 years agoBranch view: add %(branch) variable tracking currently selected branch
jipey [Mon, 29 Mar 2010 02:49:08 +0000 (22:49 -0400)]
Branch view: add %(branch) variable tracking currently selected branch

This makes it possible to easily change branches from the branch view.

[ jf: updated docs, added NEWS entry, added checkout run request ]

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
14 years agoargv: move report call to format_arg method
Jonas Fonseca [Mon, 22 Mar 2010 01:10:57 +0000 (21:10 -0400)]
argv: move report call to format_arg method

14 years agoargv: refactor argv_from_env to return an error state
Jonas Fonseca [Mon, 22 Mar 2010 01:33:16 +0000 (21:33 -0400)]
argv: refactor argv_from_env to return an error state

14 years agoutf8: move unicode related functions below the string helpers
Jonas Fonseca [Tue, 30 Mar 2010 11:03:17 +0000 (07:03 -0400)]
utf8: move unicode related functions below the string helpers

14 years agoutf8: make utf8_to_unicode return 0 when encountering invalid symbols
Jonas Fonseca [Tue, 30 Mar 2010 11:00:35 +0000 (07:00 -0400)]
utf8: make utf8_to_unicode return 0 when encountering invalid symbols

... instead of calling die.

14 years agoio: consolidate formatting into io_format
Jonas Fonseca [Sun, 21 Mar 2010 21:00:38 +0000 (17:00 -0400)]
io: consolidate formatting into io_format

14 years agoio: set io->error when syscalls fail and remove calls to report and die
Jonas Fonseca [Sat, 27 Mar 2010 15:35:10 +0000 (11:35 -0400)]
io: set io->error when syscalls fail and remove calls to report and die

14 years agoio: rename IO methods to have io_ prefix
Jonas Fonseca [Sun, 21 Mar 2010 19:12:39 +0000 (15:12 -0400)]
io: rename IO methods to have io_ prefix

14 years agoio: fix comment in io struct
Jonas Fonseca [Sun, 21 Mar 2010 19:12:49 +0000 (15:12 -0400)]
io: fix comment in io struct

14 years agoRename string_date to mkdate and add incorporate common checks
Jonas Fonseca [Sun, 28 Mar 2010 15:56:32 +0000 (11:56 -0400)]
Rename string_date to mkdate and add incorporate common checks

14 years agoMove nodelay logic to the get_input read loop
Jonas Fonseca [Sat, 27 Mar 2010 14:14:37 +0000 (10:14 -0400)]
Move nodelay logic to the get_input read loop

14 years agoMark detached heads with [HEAD]; replace opt_head_rev with a struct ref
Jonas Fonseca [Sat, 27 Mar 2010 04:36:04 +0000 (00:36 -0400)]
Mark detached heads with [HEAD]; replace opt_head_rev with a struct ref

14 years agoopt_codeset is only use in main, so make it local
Jonas Fonseca [Fri, 26 Mar 2010 01:44:26 +0000 (21:44 -0400)]
opt_codeset is only use in main, so make it local

14 years agoMake utf8_length take opt_tab_size as a parameter
Jonas Fonseca [Wed, 24 Mar 2010 12:35:13 +0000 (08:35 -0400)]
Make utf8_length take opt_tab_size as a parameter

14 years agoRemove line_graphic enum
Jonas Fonseca [Wed, 24 Mar 2010 12:47:42 +0000 (08:47 -0400)]
Remove line_graphic enum

14 years agoSilence warning about unused computed value
Jonas Fonseca [Tue, 23 Mar 2010 01:58:30 +0000 (21:58 -0400)]
Silence warning about unused computed value

14 years agoUpdate copyrights
Jonas Fonseca [Sat, 23 Jan 2010 17:10:27 +0000 (12:10 -0500)]
Update copyrights

14 years agoOnly draw dates with non-zero seconds
Jonas Fonseca [Sun, 20 Dec 2009 04:11:12 +0000 (23:11 -0500)]
Only draw dates with non-zero seconds

14 years agoFix the display of relative date by storing the time zone information
Jonas Fonseca [Sun, 20 Dec 2009 04:07:26 +0000 (23:07 -0500)]
Fix the display of relative date by storing the time zone information

14 years agoFix author abbreviation to handle multi-byte and multi-column characters
Jonas Fonseca [Thu, 17 Dec 2009 01:39:35 +0000 (20:39 -0500)]
Fix author abbreviation to handle multi-byte and multi-column characters

14 years agoUse FALSE marco instead of C++ false value
Jonas Fonseca [Tue, 15 Dec 2009 16:57:20 +0000 (11:57 -0500)]
Use FALSE marco instead of C++ false value

14 years agoprepare_update_file: assume file is relative to root directory
Jonas Fonseca [Tue, 15 Dec 2009 15:43:17 +0000 (10:43 -0500)]
prepare_update_file: assume file is relative to root directory

14 years agoStatus view: limit untracked file by the prefix/subdirectory
Jonas Fonseca [Tue, 15 Dec 2009 15:40:41 +0000 (10:40 -0500)]
Status view: limit untracked file by the prefix/subdirectory

This reinstates the original behavior reverted in commit
e7d0ebc0ec190e3a07fc28a2f551426e34a1ee6e.

14 years agoopen_editor: always open path relative to the repository root directory
Jonas Fonseca [Tue, 15 Dec 2009 15:39:57 +0000 (10:39 -0500)]
open_editor: always open path relative to the repository root directory

14 years agoget_author_initials: improve and fix to not read outside of name string
Jonas Fonseca [Tue, 15 Dec 2009 15:32:21 +0000 (10:32 -0500)]
get_author_initials: improve and fix to not read outside of name string

Added FIXME about multi-byte and multi-column characters.

14 years agoAbbreviation of author names is now configurable and toggleable
Jonas Fonseca [Tue, 15 Dec 2009 03:01:59 +0000 (22:01 -0500)]
Abbreviation of author names is now configurable and toggleable

14 years agoRefactor format variable lookup and expansion
Jonas Fonseca [Mon, 14 Dec 2009 16:18:31 +0000 (11:18 -0500)]
Refactor format variable lookup and expansion

14 years agoOops, fix enum_equals
Jonas Fonseca [Mon, 14 Dec 2009 22:06:19 +0000 (17:06 -0500)]
Oops, fix enum_equals

14 years agoMake return value of string_date const
Jonas Fonseca [Sun, 13 Dec 2009 20:59:45 +0000 (15:59 -0500)]
Make return value of string_date const

14 years agoSimplify enum name comparison with enum_equals macro
Jonas Fonseca [Sun, 13 Dec 2009 20:11:17 +0000 (15:11 -0500)]
Simplify enum name comparison with enum_equals macro

14 years agoDefine date values in DATE_INFO macro
Jonas Fonseca [Fri, 11 Dec 2009 23:26:25 +0000 (18:26 -0500)]
Define date values in DATE_INFO macro

14 years agoRefactor toggle_date_option into a generic enum_map based toggler
Jonas Fonseca [Fri, 11 Dec 2009 22:52:47 +0000 (17:52 -0500)]
Refactor toggle_date_option into a generic enum_map based toggler

14 years agoIntroduce parse_enum and use it to parse the show-date option
Jonas Fonseca [Fri, 11 Dec 2009 22:50:38 +0000 (17:50 -0500)]
Introduce parse_enum and use it to parse the show-date option

14 years agoRefactor help_name into enum_name
Jonas Fonseca [Fri, 11 Dec 2009 22:42:41 +0000 (17:42 -0500)]
Refactor help_name into enum_name