pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/tig tig: update to 2.5.1 and take MAINTAINER.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/465216576999
branches:  trunk
changeset: 445619:465216576999
user:      fcambus <fcambus%pkgsrc.org@localhost>
date:      Tue Jan 26 14:11:02 2021 +0000

description:
tig: update to 2.5.1 and take MAINTAINER.

Most work done by leot@ and sjmulder@ in pkgsrc-wip.

tig-2.5.1
---------

Improvements:

 - bash/zsh completion: reimplement and decrease runtime by factor 1863. (#795)
 - Add binding to reflog view to toggle reference display.
 - Fail if tig is given an invalid or ambiguous ref. (#980)
 - Make tig process-group leader an option. (#986, #951)
 - Handle GIT_WORK_TREE environment variable.
 - The blame view requires a working tree.
 - Fix use of deprecated vwprintw() function.
 - Update utf8proc to v2.5.0.
 - Add --word-diff=plain colorizing support. (#221)

Bug fixes:

 - Fix segmentation fault. (#971)
 - Fix cursor position after "Move to parent" in blame view. (#973)
 - Fix crash on adding a line to a view. (#523)
 - Fix memory leak in diff unit.
 - Fix loop after refresh or change in refs/main split view. (#991)
 - Fix occasional crash on custom key bindings. (#1001)

tig-2.5.0
---------

Improvements:

 - Single file view enters blame mode on "b". (#804)
 - Show untracked files in the default view. (#762)
 - Disable graph if log.follow is enabled and there is only one pathspec.
   (#881)
 - Disable graph for author searches.
 - git_colors: interpret 'ul' as 'underline'.
 - Add refname variable. (#900)
 - Add -C option to specify the working directory. (#570)
 - Improve behaviour of auto and periodic refresh modes. (#389, #441, #482,
   #794, #888, #932)
 - Add support for repos created with git --work-tree. (#872)
 - Add diff-highlight to pager mode.
 - Show annotated commits in main view. (#819)
 - Introduce reflog view. (#538)
 - Add option to start with cursor on HEAD commit. (#755)
 - Support combined diffs with more than 2 parents.
 - Improve how a toggle option value is shown on the status line. (#879)
 - Add options to filter refs output. (#694)
 - Update utf8proc to v2.4.0. (#961)

Bug fixes:

 - Fix garbled cursor line with older ncurses versions.
 - Fix diff highlighting of removed lines starting with -- and added lines
   starting with ++. (#871, #875)
 - Fix loop when displaying search result if regex matches an empty string.
   (#866)
 - Add synchronous command description in tigrc.
 - Fix parsing of git rev-parse output. (#884)
 - Propagate --first-parent to diff arguments. (#861)
 - Use proper type for hash table size. (#858)
 - Fix incorrect cppcheck warning about realloc() use.
 - Don't shift signed int by 31 bits.
 - Fix Vim going background after running Tig outside of a git repository.
   (#906)
 - make-builtin-config: use "read -r". (#912)
 - Fix segfaults with readline 8.0. (#893)
 - Reset state before closing stage view automatically.
 - Don't use a child view as previous view.
 - Force reload of VIEW_FLEX_WIDTH views only when needed.
 - Combined diff uses @@@ as hunk marker.
 - Fix memory leak induced by 'tig grep'.
 - Fix memory leak in main view.
 - Exit gracefully if refs view was defined without ref column. (#897)
 - Fix pager view not moving up when child view is open.
 - make-builtin-config: Fix unportable sed usage in read_tigrc().
 - Properly detect combined diffs. (#942)

tig-2.4.1
---------

Bug fixes:

 - Add `CURSES_CFLAGS` to `CPPFLAGS`. (#856, Linuxbrew/homebrew-core#8440)

tig-2.4.0
---------

Improvements:

 - Add 'send-child-enter' option to control interaction with child views.
   (#791)
 - Update make config defaults for Cygwin to ncurses6. (#792)
 - Build against netbsd-curses. (#789)
 - Change the blame view to render more like `git blame`. (#812)
 - Improve worktree and submodule support. (#459, #781, #783)
 - Support running Tig via a Git alias. (#763)
 - Use ISO-8601 letters for short relative dates. (#759, #760)
 - Change date formatting to show time zones by default. (#428, #811)
 - Use utf8proc to handle Unicode characters. (#827)

Bug fixes:

 - Fix `file(1)` argument on Linux used for resolving encodings. (#788)
 - Fix underflow in the file search. (#800, #801)
 - Fix line numbers in grep view when scrolled. (#813)
 - Pass command line args through to the stage view. (#569, #823)
 - Fix resource leak. (#780)
 - Fix various compiler warnings and pointer arithmetic. (#799, #803)
 - Workaround potential null pointer dereferences. (#824)
 - Bind to single and double quotes by using the *<SingleQuote>* and
   *<DoubleQuote>* key mappings. (#821)
 - Make Tig the process-group leader and clean child processes. (#828, #837)
 - Fix sh compatibility in `contrib/tig-pick`. (#832)
 - Fix incorrect behaviour of up and down keys in diff view when opened from
   diff preview. (#802, #835)
 - Open the stage view when maximizing a split diff view of (un)staged changes.
   (#836)
 - Use fully qualified reference name for tags when conflicting with branch
   name. (#746, #787, #849)
 - Fix resize not working after entering command. (#845) (#846)
 - Use stack allocated memory to handle `TIG_LS_REMOTE`. (#839)
 - Fix deleted file mode line remains highlighted after hovering in diff or
   stage view. (#851)
 - Fix `TIG_LS_REMOTE` not working with git-ls-remote(1). (#853, #854)

tig-2.3.3
---------

Bug fixes:

 - Revert "Handle \n like \r (#758)". (GH #769)
 - Fix GH #164 by catching SIGHUP.
 - Change `refs_tags` type to `size_t`.

tig-2.3.2
---------

Bug fixes:

 - Fix busy loop detection to handle large repos. (GH #164)

tig-2.3.1
---------

Improvements:

 - Restore TTY attributes. (GH #725)
 - Handle `\n` like `\r`. (GH #758)

Bug fixes:

 - Add workaround that detects busy loops when Tig loses the TTY. This may
   happen if Tig does not receive the HUP signal (e.g. when started with
   `nohup`). (GH #164)
 - Fix compatibility with ncurses-5.4 which caused copy-pasting to not work
   in the prompt. (GH #767)
 - tig(1): document correct environment variable. (GH #752)

tig-2.3.0
---------

Incompatibilities:

 - The `width` setting on the `status`, `text` and `commit-title` columns was
   never applied and has been removed. (GH #617)

Improvements:

 - Improve load performance by throttling screen updates. (GH #622, #629)
 - Speed up graph rendering. (GH #638)
 - Enable scroll optimizations for Terminal.app and iTerm2. (GH #637)
 - Improve the test suite portability to not depend on GNU sed. (GH #609, #614)
 - Make build reproducible. (https://reproducible-builds.org/) (GH #613)
 - Enable binding to more symbolic keys and keys with control modifier:
   `F13`-`F19`, `ShiftLeft`, `ShiftRight`, `ShiftDel`, `ShiftHome`, `ShiftEnd`,
   `ShiftTab`, `Ctrl-C`, `Ctrl-V`, `Ctrl-S`, and `Ctrl-@`. (GH #314, #619,
   #642)
 - Persist readline history to `~/.tig_history` or `$XDG_DATA_HOME/tig/history`.
   Use `history-size` to control the number of entries to save. (GH #620, #713,
   #714, #718)
 - Preload last search from persistent history. (GH #630)
 - Add `view-close-no-quit` action, unbound by default. (GH #607)
 - Add `mouse-wheel-cursor` option (off by default) when set to true causes
   wheel actions to prefer moving the cursor instead of scrolling. (GH #608)
 - Add `truncation-delimiter` option, set to `~` by default. (GH #646)
 - Add `-q` parameter to `source` for "source-if-present". (GH #612)
 - Add `:echo` prompt command to display text in the status bar. (GH #626, #636)
 - Make `diff-highlight` colors configurable. (GH #625, #633)
 - Let Ctrl-C exit Y/N dialog, menu prompts and the file finder. (GH #632, #648)
 - Hide cursor unless at textual prompt. (GH #643)
 - Expand tilde ('~') in `:script` paths. (GH #674)
 - Show single-line output of external command in status bar. (GH #200, #557,
   #678)
 - Disable the graph when `--no-merges` is passed. (GH #687)
 - Print backtraces on segfault in debug mode.
 - Ignore script lines starting with `#` (comment). (GH #705)
 - Complete `repo:*` variables when readline is enabled. (GH #702)
 - Incorporate XTerm's `wcwidth.c` to find Unicode widths. (GH #691)

Bug fixes:

 - Fix graph display issues. (GH #419, #638)
 - Fix and improve rendering of Unicode characters. (GH #330, #621, #644, #682)
 - Handle hyphenated directory names when listing content. (GH #602)
 - Do not jump to next match when cancelling the search prompt. (GH #627)
 - Fix clearing of the status line after `Ctrl-C`. (GH #623, #649)
 - Fix handling of width on line-number and trimmed width of 1. (GH #617)
 - Set cursor position when not updating prompt contents. (GH #647)
 - Erase status line at exit time for users without altscreen-capable terminals.
   (GH #589)
 - Fix unexpected keys when restoring from suspend (`Ctrl-Z`). (GH #232)
 - contrib/vim.tigrc: Also bind G in the main as a workaround for limitations of
   the `none` action. (GH #594, #599)
 - Only override `blame-options` when commands are given and fix parsing of
   `-C`. (GH #597)
 - Fix diff name discovery to better handle prefixes.
 - Interpret button5 as wheel-down. (GH #321, #606)
 - Fix `back` / `parent` in tree view. (GH #641)
 - Fix memory corruption in `concat_argv` and file finder. (GH #634, #655)
 - Fix reading from stdin for `tig show`.
 - Document problem of outdated system-wide `tigrc` files in Homebrew. (GH #598)
 - Repaint the display when toggling `line-graphics`. (GH #527)
 - Fix custom date formatting support longer strings. (GH #522)
 - Don't segfault on ":exec" irregular args. (GH #686)
 - Fix segfault when calling htab_empty. (GH #663, #745)

tig-2.2.2
---------

Upgrade instructions:

 - The `status-untracked-dirs` option was renamed to
   `status-show-untracked-dirs` to match the new `status-show-untracked-files`
   option.

Improvements:

 - Use `diff-options` when preparing the diff in the stage view to make the diff
   state configurable. (GH #545)
 - Add 'status-show-untracked-files' option mirroring Git's
   'status.showUntrackedFiles' to toggle display of untracked files.  in the
   status view. On by default. (GH #562)
 - Update `ax_with_curses.m4` and use `pkg-config` to detect. (GH #546)
 - Add `tig-pick` script for using Tig as a commit picker. (GH #575, #580)
 - Add "smart case" option ('set ignore-case = smart-case') to ignore case when
   the search string is lower-case only. (GH #320, #579)

Bug fixes:

 - Fix author ident cache being keyed by email only. (GH #424, #526, #547)
 - Fix periodic refresh mode to properly detect ref changes. (GH #430, #591)
 - Add workaround for detecting failure to start the diff-highlight process.
 - Show diffs in the stash view when `set mailmap = true`. (GH #556)
 - Fix parsing of git-log revision arguments, such as `--exclude=...` in
   conjunction with `--all`. (GH #555)
 - Fix diff stat parsing for binary copies.
 - Fix crash when resizing terminal while search is in progress. (GH #515, #550)
 - Fix argument filtering to pass more arguments through to Git.
 - Check for termcap support in split tinfo libs. (GH #568, #585)

tig-2.2.1
---------

Improvements:

 - Support Git's 'diff-highlight' program when `diff-highlight` is set to either
   true or the path of the script to use for post-processing.
 - Add navigation between merge commits. (GH #525)
 - Add 'A' as a binding to apply a stash without dropping it.
 - Bind 'Ctrl-D' and 'Ctrl-U' to half-page movements by default.
 - manual: Mention how to change default Up/Down behavior in diff view.

Bug fixes:

 - Reorganize checking of libraries for termcap functions.
 - Fix `:goto <id>` error message.

tig-2.2
-------

Incompatibilities:

 - Note that all user-defined commands are now executed at the repository root
   instead of whatever subdirectory Tig was started in. (GH #412)
 - Remove `cmdline-args` option to avoid problems where setting it in `~/.tigrc`
   potentially breaks other views due to its "context-sensitive" nature, where
   a `git-log` option maybe cause `git-grep` to fail. (GH #431)

Improvements:

 - Use .mailmap to show canonical name and email addresses, off by default.
   Add `set mailmap = yes` to `~/.tigrc` to enable. (GH #411)
 - Highlight search results, configurable via `search-result` color. (GH #493)
 - Wrap around when searching, configurable via `wrap-search` setting.
 - Populate `%(file)` with file names from diff stat. (GH #404)
 - `tig --merge` implies `--boundary` similar to gitk.
 - Expose repository variables to external commands, e.g. `%(repo:head)` gives
   the branch name of the current HEAD and `%(repo:cdup)` for the repo root
   path.
 - Add `make uninstall`. (GH #417)
 - Add ZSH completion file (based on Bash completion) (GH #433)
 - Expose the text of the currently selected line as the %(text) (GH #457)
 - Allow users to specify rev arguments to blame (GH #439)
 - Update OSX make config to find brew installed ncurses
 - Add sample git-flow keybinding (GH #421)
 - Add chocolate theme (GH #432)
 - Show stash diffs. (GH #328)
 - Make user tigrc location configurable. (GH #479)
 - Compact relative date display mode. (GH #331)
 - Add date column option controlling whether to show local date.
 - Move to parent commit in the main view. (GH #388)
 - Add `:goto <rev>` prompt command to go to a `git-rev-parse`d revision, e.g.
   `:goto some/branch` or `:goto %(commit)^2`.
 - Respect the XDG standard for configuration files. (GH #513)
 - Show tracking information in `tig status` (GH #504)
 - Resolve diff paths when `diff.noprefix` is true. (GH #487, #488)
 - Support for custom `strftime(3)` date formats, e.g.:

        set main-view-date = custom
        set main-view-date-format = "%Y-%m-%d"

Bug fixes:

 - Prevent staged rename from displaying unstaged changes (GH #472, #491)
 - Fix corrupt chunk header during staging of single lines. (GH #410)
 - Fix out of bounds read in graph-v2 module. (GH #402)
 - Add currently checked out branch to `%(branch)`. (GH #416)
 - Size diff stats correctly for split views.
 - Fix `git-worktree` support by using `git-show-ref`. (GH #437)
 - Add currently checked out branch to `%(branch)` (GH #416)
 - Fix segfault when hitting return in empty file search (GH #464)
 - Remove separator on horizontal split when switching from vertical split
 - Do not expand `--all` when parsing `%(revargs)` (GH #442, #462)
 - Fix exit when the main view is reloaded due to option toggling. (GH #470)
 - Expand all whitespace and control characters to spaces. (GH #485)
 - Restore ability to unbind a default keybinding with `none`. (GH #483)
 - Fix blob view to honor the `wrap-lines` setting.

tig-2.1.1
---------

Improvements:

 - Add support for key combos. (GH #67)
 - See `contrib/vim.tigrc` for Vim-like keybindings. (GH #273, #351)
 - Add GitHub inspired file finder to search for and open any file. (GH #342)
 - Add `search` keymap for navigating file finder search results.

Bug fixes:

 - Fix display of multiple references per commit. (GH #390, #391)
 - Sync the prompt's cursor position with readline's internal position.
   (GH #396)
 - Keep unstaged changes view open after an staging command. (GH #399)

tig-2.1
-------

Improvements:

 - Improve C99 compliance so Tig compiles with the native compilers on
   Solaris (SunStudio cc) and AIX (xlc). (GH #380)
 - Add move-half-page-up and move-half-page-down actions. (GH #323)
 - Preserve the cursor position when changing the diff context.
 - Show 'Unstaged changes' above 'Staged changes' in the main view. (GH #383)
 - Add `:exec <flags><args...>` prompt command to execute commands.
 - Add shorthand for changing the view settings of a single column,
   eg. `set main-view-author = short`. (GH #318)
 - Show better diff context info in the stage view.
 - Add `%(lineno)` state variable. (GH #304)
 - Use hash table to speed up refs lookup. (GH #350)
 - Show the file path in the blob view when available.
 - Use `set commit-order = default` to use Git's default commit order, even when
   the commit graph is enabled. The option will turn off automatic enabling of
   `--topo-order` when the graph is shown in the main view. (GH #310, #324)
 - Speed up the diff view in large repos by loading git-describe info after the
   diff content has been read. (GH #324)
 - Add the old graph rendering as an option. (GH #310, #324)
 - Add `main-options` setting for specifying default main view options.
   Example: `set main-options = --max-count=1000`. (GH #368)
 - See `contrib/large-repo.tigrc` for settings that will help to speed up Tig in
   large repos. (GH #368)
 - Add `:save-options <file>` prompt command to save config to file. (GH #315)

Bug fixes:

 - Update manual to reflect default keybinding changes. (GH #325)
 - Fix graph support for `--first-parent`. (GH #326)
 - Fix off-by-one error when opening editor from the grep view.
 - Fix status on-branch information.
 - Fix main view to handle the case when git-log doesn't find any commits.
 - Fix corner case when parsing diff chunk when lines information is missing.
 - Ensure main view changes commits are shown right before the current HEAD.
 - Fix rendering of boundary commits.
 - Fix compilation with GNU Make 3.80 by removing `$(abspath)`. (GH #362)
 - Fix config parsing to support shell-like quoting in user-defined command,
   e.g. `bind generic <Ctrl-f> :!git log -G"%(prompt Prompt: )"` (GH #371)
 - Make diff meta information colors more consistent with Git. (GH #375)
 - Fix segfault when updating changes in a maximized stage view opened via the
   main view. (GH #376)
 - Handle line number configs where the interval is not specified. (GH #378)
 - Fix display of error messages during startup. (GH #385)
 - Show untracked files outside the current directory like git-status. (GH #230)

tig-2.0.3
---------

Improvements:

 - Add `:save-display <file>` prompt command to save the current display.
 - Add `:script <file>` prompt command for scripting the Tig UI.
 - Add test framework and convert existing tests to use it.
 - Add command-line option for starting in refs view: `tig refs`. (GH #309)
 - Make blame commit ID colors stable across reloads. (GH #303)
 - Increase blame ID and graph rendering color palette to 14 colors.
 - New setting 'split-view-width' controls the width for vertical splits. It
   takes the width of the right-most view either as a number or a percentage.
 - Expose settings holding command line argument lists: `file-args`, `rev-args`,
   and `cmdline-args`. They are mainly intended for testing purposes but also
   allows to change the filtering arguments dynamically. (GH #306)
 - Add `log-options` setting for specifying default log view options.
   Example: `set log-options = --pretty=fuller`.
 - Use option specific view flags to reload view after `:set` commands.

Bug fixes:

 - Refresh the current view when returning from an external command and
   `refresh-mode=after-command`. (GH #289)
 - Fix readline completion.
 - Fix '/' to `find-next` when readline support is enabled. (GH #302)
 - Fix readline prompt to correctly handle UTF-8 characters.
 - Add warnings for more obsolete actions and colors.
 - Fix passing of commit IDS via stdin to the main view.
 - Fix commit title overflow drawing for multibyte text. (GH #307)
 - Fix installation directory permissions.
 - Handle binary files matches reported by git-grep.
 - Toggling of "args"-typed options without any arguments will clear the current
   arguments. Example: `:toggle blame-options`.
 - Detect custom `pretty.format` settings that break the log view and fallback
   to use the `medium` format. (GH #225)
 - Fix invocation of git-diff for the blame view's line tracking. (GH #316)
 - Fix blame completion of directory names. (GH #317)
 - Fix display of conflicts in the main view when 'show-changes' is enabled.
 - Fix off-by-one error when displaying line numbers in the grep view.
 - When showing the commit graph ensure that either topo, date or author-date
   commit order is used. (Debian #757692) (GH #238)

tig-2.0.2
---------

Improvements:

 - Use git-status for diffing the index.
 - Group toggle options together in the help view.

Bug fixes:

 - Fix refs, main and grep loading when 'gui.encoding' is set. (GH #287)
 - Ignore 'gui.encoding' and 'i18n.commitencoding' when set to 'UTF-8'.
 - Add work-around for missing strndup() on Mac OS X v10.6. (GH #286)
 - Fix spurious abbreviation of author names. (GH #288)
 - Don't show empty action groups in the help view.

tig-2.0.1
---------

Bug fixes:

 - Fix compilation in watch.c.
 - Fix parsing of key bindings mapped to '^' and '<'. (GH #280, #282)

tig-2.0
-------

Incompatibilities:

 - In preparation for key combo support, key mappings for symbolic keys (e.g.
   `Up` and `Down`) must now start with `<` and end with `>`, e.g. `<Up>` and
   `<Down>`. Furthermore, escape key combos must now use `<Esc>key` instead of
   `^[key`, and control key mappings must now use `<Ctrl-key>` instead of
   `^key`.
 - Only use 'diff-options' for the diff view and introduce '%(cmdlineargs)' to
   hold non-file and non-revision flags passed on the command line. Affects all
   user-defined commands that expect '%(diffargs)' to hold both 'diff-options'
   arguments and those passed on the command line. (GH #228)
 - Remove built-in keybinding for `git gc`. Add the following line to `~/.tigrc`
   to restore it: `bind generic G ?git gc`.
 - To support view specific colors, '.' can no longer be used interchangeably
   with '-' and '_' in settings names and in particular color names.
 - Replace 'stage-next' action with prompt command using a predefined search
   (see below) and add binding (`@` by default) to also work in the diff view.
 - Most view display options must now be set via the new `*-view` options in
   tigrc. Existing options are no longer recognized, but a warning is shown.
 - Remap default bindings to have more consistent convention: use lower-case
   keys primarily for view switching and non-destructive actions, use upper-case
   keys for view-specific actions including user-defined commands. To preserve
   old default key bindings see `contrib/bindings-v1.x.tigrc`. (GH #257)

Improvements:

 - Add mouse support: scroll view, click line to move cursor, double click line
   (or click again) to "Enter" cursor line, e.g. open commit diff. Disabled by
   default, since it makes text selection less intuitive. If you enable this
   remember to hold down Shift (or Option on Mac) when selecting text.
 - Rewrite and improve the rendering of the commit graph. (GH #144, #46)
 - Add completion and history support to the prompt via readline. (GH #185)
 - Options can be configured and toggled individually for each view. Use the new
   view settings to configure the order and display options for each view
   columns. See system tigrc and tigrc(5) for examples. (GH #89, #222)
 - Add grep view as a front-end to git-grep(1): `tig grep -p strchr`. From
   within Tig, the key for switching or grepping is bound to 'g' by default.
 - Rename 'branch' view to 'refs' view and show tags. (GH #134)
 - Add main view pager mode that reads git-log's '--pretty=raw' data
   from stdin, e.g. `git reflog --pretty=raw | tig --pretty=raw`.
 - Add support for `--graph` and highlight diff stats in the log view.
 - Add default command bindings: `!` to delete branch, `!` to drop stash.
 - Add 'stage-split-chunk' action for splitting chunks in the stage view.
   Bound to '\' by default. (GH #107)
 - Add 'back' action bound to '<' by default, which will return the blame view
   to the previous revision and line after moving e.g. to the parent. (GH #124)
 - Auto-refresh views based on watched repository changes. Configure by setting
   `refresh-mode` to 'manual', 'auto', 'after-command', or 'periodic'. (GH #190)
 - All default settings are in well-documented system `tigrc`.
 - Add `:toggle` prompt command to manipulate options using keybindings. For
   example: `bind diff D :toggle diff-options --patience --notes`. (GH #69)
 - Add a new "auto" value for the 'vertical-split' option to let Tig choose the
   split orientation (this is the new default behavior). Can be toggled.
 - Make it possible to toggle the display of files in untracked directories.
 - Allow Tig to be started with no default configuration by specifying an
   alternative system `tigrc` file, e.g.: `TIGRC_SYSTEM=~/.tigrc.safe tig`. Set
   `TIGRC_SYSTEM` to the empty string to use built-in configuration instead of
 - Key mappings can contain UTF-8 multibyte unicode keys.
 - Warn about conflicting keybindings using Ctrl, e.g. `<Ctrl-f>` and
   `<Ctrl-F>`. (GH #218)
 - Extend key bindings for prompt commands (ie. `bind <keymap> <key> :<prompt>`)
   to support predefined searches, eg.: `bind stage 2 :?^@@`.
 - Git color mappings can be configured in tigrc.
 - More informative configuration error messages.
 - Make reference label formatting configurable, for example:
   `set reference-format = (branch) <tags> remote`. (GH #201)
 - Adjust author width and other view columns automatically. (GH #49)
 - Support view specific colors: `color stage.diff-add yellow default`.
 - Copy `-S`, `-G` and `--grep=` pattern to search buffer so 'find-next' and
   'find-prev' work as expected.
 - Optionally specify custom prompt for `%(prompt)` in shell commands, e.g.
   `bind main B ?git checkout -b "%(prompt Enter new branch name: )"`.
 - Add `%(remote)` and `%(tag)` symbols to complement `%(branch)`.
 - User-defined commands can now be prefixed with any of the supported flags,
   e.g. `?git checkout -b %(branch)`.
 - Open editor at line number for combined diffs e.g. diffs of unmerged files.
 - Add build configuration for Cygwin (OS name: CYGWIN_NT-6.1). (GH #92)
 - Document the Git commands supported by the pager mode.  (GH #1)
   system `tigrc` configuration. (GH #235)

Bug fixes:

 - Fix stash diff display when reloading the stash view after a deleting.
 - Set the commit reference when opening the blame view from the blob view.
 - Correctly identify and highlight the remote branch tracked by HEAD.
 - Pass --no-color after user defined arguments to ensure that colors do not
   break the output parsing. (GH #191)
 - Close stdin when pager mode is not supported.
 - Show newly created branches in the main view. (GH #196)
 - File with 0 changes breaks diffstat highlighting (GH #215)
 - Update %(branch) variable in the main view. (GH #223)
 - Disable graph rendering when either of `--reverse`, `-S`, `-G`, and `--grep`
   are passed to the main view. (GH #127)
 - Only refresh views that support it.
 - Fix author and date annotation of renamed entries in the tree view.
 - Fix use of unsafe methods in the signal handler. (GH #245)
 - Fix rendering in non-UTF8 terminals.
 - Fix stage-update-line by rewriting the diff chunk containing the line instead
   of using `--unidiff-zero` and a diff context of zero. (GH #130)
 - Fix status-update to work for untracked directories. (GH #236)
 - Don't pass log parameters given on the command line to the diff view.

diffstat:

 devel/tig/Makefile                                 |  25 ++++++++--------
 devel/tig/PLIST                                    |   3 +-
 devel/tig/distinfo                                 |  17 +++++------
 devel/tig/options.mk                               |  15 ----------
 devel/tig/patches/patch-Makefile                   |  24 ++++++++++++++++
 devel/tig/patches/patch-aa                         |  23 ---------------
 devel/tig/patches/patch-contrib_config.make-Darwin |   8 ++--
 devel/tig/patches/patch-include_tig_tig.h          |  15 ++++++++++
 devel/tig/patches/patch-tig_c                      |  32 ----------------------
 devel/tig/patches/patch-tig_h                      |  13 --------
 10 files changed, 65 insertions(+), 110 deletions(-)

diffs (254 lines):

diff -r 1570b616399f -r 465216576999 devel/tig/Makefile
--- a/devel/tig/Makefile        Tue Jan 26 13:32:25 2021 +0000
+++ b/devel/tig/Makefile        Tue Jan 26 14:11:02 2021 +0000
@@ -1,22 +1,22 @@
-# $NetBSD: Makefile,v 1.15 2017/01/04 18:16:32 roy Exp $
+# $NetBSD: Makefile,v 1.16 2021/01/26 14:11:02 fcambus Exp $
 
-DISTNAME=      tig-1.2.1
-PKGREVISION=   3
+DISTNAME=      tig-2.5.1
 CATEGORIES=    devel scm
-MASTER_SITES=  http://jonas.nitro.dk/tig/releases/
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=jonas/}
+GITHUB_RELEASE=        ${DISTNAME}
 
-MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      http://jonas.nitro.dk/tig/
+MAINTAINER=    fcambus%NetBSD.org@localhost
+HOMEPAGE=      https://jonas.github.io/tig/
 COMMENT=       Ncurses-based GIT repository tool
 LICENSE=       gnu-gpl-v2
 
-BUILD_DEPENDS+=        asciidoc-[0-9]*:../../textproc/asciidoc
-BUILD_DEPENDS+=        xmlto-[0-9]*:../../textproc/xmlto
+TOOL_DEPENDS+= asciidoc-[0-9]*:../../textproc/asciidoc
+TOOL_DEPENDS+= xmlto-[0-9]*:../../textproc/xmlto
 DEPENDS+=      git-base-[0-9]*:../../devel/git-base
 
 GNU_CONFIGURE= yes
 USE_TOOLS+=    gmake
-FAKE_NCURSES=  yes
+USE_NCURSES=   yes     # Display issues with NetBSD curses(3)
 
 CONF_FILES=    ${EGDIR}/tigrc ${PKG_SYSCONFDIR}/tigrc
 EGDIR=         ${PREFIX}/share/examples/${PKGBASE}
@@ -39,12 +39,13 @@
 
 BUILD_TARGET=  all doc
 INSTALL_TARGET=        install install-doc
+TEST_TARGET=   test
 
 post-install:
        ${INSTALL_DATA_DIR} ${DESTDIR}/${EGDIR} && \
-       ${INSTALL_DATA} ${WRKSRC}/contrib/tigrc ${DESTDIR}/${EGDIR}
-
-.include "options.mk"
+       ${INSTALL_DATA} ${WRKSRC}/tigrc ${DESTDIR}/${EGDIR}
 
 .include "../../converters/libiconv/buildlink3.mk"
+.include "../../devel/ncursesw/buildlink3.mk"
+.include "../../devel/readline/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 1570b616399f -r 465216576999 devel/tig/PLIST
--- a/devel/tig/PLIST   Tue Jan 26 13:32:25 2021 +0000
+++ b/devel/tig/PLIST   Tue Jan 26 14:11:02 2021 +0000
@@ -1,5 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2014/04/04 21:00:24 ryoon Exp $
-bin/test-graph
+@comment $NetBSD: PLIST,v 1.6 2021/01/26 14:11:02 fcambus Exp $
 bin/tig
 man/man1/tig.1
 man/man5/tigrc.5
diff -r 1570b616399f -r 465216576999 devel/tig/distinfo
--- a/devel/tig/distinfo        Tue Jan 26 13:32:25 2021 +0000
+++ b/devel/tig/distinfo        Tue Jan 26 14:11:02 2021 +0000
@@ -1,10 +1,9 @@
-$NetBSD: distinfo,v 1.10 2015/11/03 03:29:36 agc Exp $
+$NetBSD: distinfo,v 1.11 2021/01/26 14:11:02 fcambus Exp $
 
-SHA1 (tig-1.2.1.tar.gz) = 5755bae7342debf94ef33973e0eaff6207e623dc
-RMD160 (tig-1.2.1.tar.gz) = cfb50c243d8a3aa4ec849232794144d5016d3cb5
-SHA512 (tig-1.2.1.tar.gz) = 6e58aab9970731454c264793f7c4ace1f04dc4a7bd3387e6ea23a58138ad176827050441530b45a7a9a877d89fd45b5a6a45d5bdd18605664b8bbd2876c5ab17
-Size (tig-1.2.1.tar.gz) = 160039 bytes
-SHA1 (patch-aa) = f48be2c54131a100d3be6cae3051afc0a83b5fe0
-SHA1 (patch-contrib_config.make-Darwin) = b24435aceea930ea7a5f4c371c8b90360b6d4956
-SHA1 (patch-tig_c) = 1f309ad94737f11abc7e5f37d1ede91b2a17117c
-SHA1 (patch-tig_h) = 81c4623867f80888cdb10109a3cd373937e24f43
+SHA1 (tig-2.5.1.tar.gz) = fd1b28bba7dff24ed112b869bb95a847c4e7ed3b
+RMD160 (tig-2.5.1.tar.gz) = 2bc115eeecdcca3fe5014d2b544b2ddce349fd96
+SHA512 (tig-2.5.1.tar.gz) = e7c27a1e6357ce3cb4c02ff409d40c0ca67d10875eedbf467b9a280d8433cca15d16860256637041003384e7c536aca743ce971e623d3000dceeda598d6d3ae0
+Size (tig-2.5.1.tar.gz) = 1144666 bytes
+SHA1 (patch-Makefile) = e8b0f62f4eb2e6a774c0558a10c8f64ece291d79
+SHA1 (patch-contrib_config.make-Darwin) = f44553e19dacbb6838f876e43c62e9261aa49f77
+SHA1 (patch-include_tig_tig.h) = 49c9152bc522eb0d6ceb3ca8933f1cb1958d9ece
diff -r 1570b616399f -r 465216576999 devel/tig/options.mk
--- a/devel/tig/options.mk      Tue Jan 26 13:32:25 2021 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-# $NetBSD: options.mk,v 1.3 2017/01/04 18:16:32 roy Exp $
-#
-
-PKG_OPTIONS_VAR=       PKG_OPTIONS.tig
-PKG_SUPPORTED_OPTIONS= wide-curses
-###
-###    Git commit messages often contain UTF-8, so we default
-###    to this here.
-###
-PKG_SUGGESTED_OPTIONS+=        wide-curses
-
-.include "../../mk/bsd.options.mk"
-
-USE_CURSES=            getsyx
-.include "../../mk/curses.buildlink3.mk"
diff -r 1570b616399f -r 465216576999 devel/tig/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/tig/patches/patch-Makefile  Tue Jan 26 14:11:02 2021 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-Makefile,v 1.1 2021/01/26 14:11:03 fcambus Exp $
+
+- Don't make/install PDF.
+- Do not install tigrc, this is handled via CONF_FILES by pkgsrc.
+
+--- Makefile.orig      2020-04-08 16:17:38.000000000 +0000
++++ Makefile
+@@ -51,7 +51,7 @@ TOOLS        = test/tools/test-graph tools/doc-
+ TXTDOC        = doc/tig.1.adoc doc/tigrc.5.adoc doc/manual.adoc NEWS.adoc README.adoc INSTALL.adoc test/API.adoc
+ MANDOC        = doc/tig.1 doc/tigrc.5 doc/tigmanual.7
+ HTMLDOC = doc/tig.1.html doc/tigrc.5.html doc/manual.html README.html INSTALL.html NEWS.html
+-ALLDOC        = $(MANDOC) $(HTMLDOC) doc/manual.html-chunked doc/manual.pdf
++ALLDOC        = $(MANDOC) $(HTMLDOC) doc/manual.html-chunked
+ 
+ # Never include the release number in the tarname for tagged
+ # versions.
+@@ -96,7 +96,6 @@ export sysconfdir
+ 
+ install: all
+       $(QUIET_INSTALL)tools/install.sh bin $(EXE) "$(DESTDIR)$(bindir)"
+-      $(QUIET_INSTALL)tools/install.sh data tigrc "$(DESTDIR)$(sysconfdir)"
+ 
+ install-doc-man: doc-man
+       $(Q)$(foreach doc, $(filter %.1, $(MANDOC)), \
diff -r 1570b616399f -r 465216576999 devel/tig/patches/patch-aa
--- a/devel/tig/patches/patch-aa        Tue Jan 26 13:32:25 2021 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,23 +0,0 @@
-$NetBSD: patch-aa,v 1.6 2014/04/04 21:00:24 ryoon Exp $
-
-Don't make/install PDF.
-
---- Makefile.orig      2013-09-18 01:13:35.000000000 +0000
-+++ Makefile
-@@ -44,7 +44,7 @@ TESTS        = test-graph
- TXTDOC        = doc/tig.1.asciidoc doc/tigrc.5.asciidoc doc/manual.asciidoc NEWS README INSTALL BUGS
- MANDOC        = doc/tig.1 doc/tigrc.5 doc/tigmanual.7
- HTMLDOC = doc/tig.1.html doc/tigrc.5.html doc/manual.html README.html INSTALL.html NEWS.html
--ALLDOC        = $(MANDOC) $(HTMLDOC) doc/manual.html-chunked doc/manual.pdf
-+ALLDOC        = $(MANDOC) $(HTMLDOC) doc/manual.html-chunked
- 
- # Never include the release number in the tarname for tagged
- # versions.
-@@ -72,6 +72,7 @@ doc-html: $(HTMLDOC)
- install: all
-       @mkdir -p $(DESTDIR)$(bindir)
-       install -p -m 0755 $(EXE) "$(DESTDIR)$(bindir)"
-+      install -p -m 0755 $(TESTS) "$(DESTDIR)$(bindir)"
- 
- install-doc-man: doc-man
-       mkdir -p $(DESTDIR)$(mandir)/man1 \
diff -r 1570b616399f -r 465216576999 devel/tig/patches/patch-contrib_config.make-Darwin
--- a/devel/tig/patches/patch-contrib_config.make-Darwin        Tue Jan 26 13:32:25 2021 +0000
+++ b/devel/tig/patches/patch-contrib_config.make-Darwin        Tue Jan 26 14:11:02 2021 +0000
@@ -1,9 +1,9 @@
-$NetBSD: patch-contrib_config.make-Darwin,v 1.1 2014/05/15 01:14:44 pho Exp $
+$NetBSD: patch-contrib_config.make-Darwin,v 1.2 2021/01/26 14:11:03 fcambus Exp $
 
 Do not override XML_CATALOG_FILES on Darwin. That will only make
 xmllint try to find a wrong catalog.
 
---- contrib/config.make-Darwin.orig    2013-08-24 14:42:16.000000000 +0000
+--- contrib/config.make-Darwin.orig    2020-04-08 16:17:38.000000000 +0000
 +++ contrib/config.make-Darwin
 @@ -1,8 +1,5 @@
  # Example configuration for Darwin / Mac OS X.
@@ -11,6 +11,6 @@
 -# Work-around for Homebrew-based xmlto.
 -export XML_CATALOG_FILES=/usr/local/etc/xml/catalog
 -
- LDLIBS = -lcurses -liconv
- CPPFLAGS = -DHAVE_CURSES_H
+ TIG_CFLAGS += -DHAVE_EXECINFO_H
+ TIG_LDLIBS = -liconv
  
diff -r 1570b616399f -r 465216576999 devel/tig/patches/patch-include_tig_tig.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/tig/patches/patch-include_tig_tig.h Tue Jan 26 14:11:02 2021 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-include_tig_tig.h,v 1.1 2021/01/26 14:11:03 fcambus Exp $
+
+Macro safety fix.
+
+--- include/tig/tig.h.orig     2020-04-08 16:17:38.000000000 +0000
++++ include/tig/tig.h
+@@ -119,7 +119,7 @@
+ #define MIN(x, y)     ((x) < (y) ? (x) :  (y))
+ #define MAX(x, y)     ((x) > (y) ? (x) :  (y))
+ 
+-#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
++#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
+ #define STRING_SIZE(x)        (sizeof(x) - 1)
+ 
+ #define SIZEOF_STR    1024    /* Default string size. */
diff -r 1570b616399f -r 465216576999 devel/tig/patches/patch-tig_c
--- a/devel/tig/patches/patch-tig_c     Tue Jan 26 13:32:25 2021 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,32 +0,0 @@
-$NetBSD: patch-tig_c,v 1.4 2014/04/04 21:00:24 ryoon Exp $
-
---- tig.c.orig 2013-08-24 14:42:16.000000000 +0000
-+++ tig.c
-@@ -2669,20 +2669,20 @@ redraw_display(bool clear)
-  */
- 
- #define TOGGLE_MENU \
--      TOGGLE_(LINENO,    '.', "line numbers",      &opt_line_number, NULL) \
-+      TOGGLE_(LINENO,    '.', "line numbers",      &opt_line_number, (struct enum_map *)NULL) \
-       TOGGLE_(DATE,      'D', "dates",             &opt_date, date_map) \
-       TOGGLE_(AUTHOR,    'A', "author",            &opt_author, author_map) \
-       TOGGLE_(GRAPHIC,   '~', "graphics",          &opt_line_graphics, graphic_map) \
--      TOGGLE_(REV_GRAPH, 'g', "revision graph",    &opt_rev_graph, NULL) \
-+      TOGGLE_(REV_GRAPH, 'g', "revision graph",    &opt_rev_graph, (struct enum_map *)NULL) \
-       TOGGLE_(FILENAME,  '#', "file names",        &opt_filename, filename_map) \
-       TOGGLE_(FILE_SIZE, '*', "file sizes",        &opt_file_size, file_size_map) \
-       TOGGLE_(IGNORE_SPACE, 'W', "space changes",  &opt_ignore_space, ignore_space_map) \
-       TOGGLE_(COMMIT_ORDER, 'l', "commit order",   &opt_commit_order, commit_order_map) \
--      TOGGLE_(REFS,      'F', "reference display", &opt_show_refs, NULL) \
--      TOGGLE_(CHANGES,   'C', "local change display", &opt_show_changes, NULL) \
--      TOGGLE_(ID,        'X', "commit ID display", &opt_show_id, NULL) \
--      TOGGLE_(FILES,     '%', "file filtering",    &opt_file_filter, NULL) \
--      TOGGLE_(TITLE_OVERFLOW, '$', "commit title overflow display", &opt_show_title_overflow, NULL) \
-+      TOGGLE_(REFS,      'F', "reference display", &opt_show_refs, (struct enum_map *)NULL) \
-+      TOGGLE_(CHANGES,   'C', "local change display", &opt_show_changes, (struct enum_map *)NULL) \
-+      TOGGLE_(ID,        'X', "commit ID display", &opt_show_id, (struct enum_map *)NULL) \
-+      TOGGLE_(FILES,     '%', "file filtering",    &opt_file_filter, (struct enum_map *)NULL) \
-+      TOGGLE_(TITLE_OVERFLOW, '$', "commit title overflow display", &opt_show_title_overflow, (struct enum_map *)NULL) \
- 
- static bool
- toggle_option(struct view *view, enum request request, char msg[SIZEOF_STR])
diff -r 1570b616399f -r 465216576999 devel/tig/patches/patch-tig_h
--- a/devel/tig/patches/patch-tig_h     Tue Jan 26 13:32:25 2021 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-$NetBSD: patch-tig_h,v 1.3 2013/08/23 05:09:28 schmonz Exp $
-
---- tig.h.orig 2013-08-10 14:27:10.000000000 +0000
-+++ tig.h
-@@ -93,7 +93,7 @@
- #define MIN(x, y)     ((x) < (y) ? (x) :  (y))
- #define MAX(x, y)     ((x) > (y) ? (x) :  (y))
- 
--#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
-+#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
- #define STRING_SIZE(x)        (sizeof(x) - 1)
- 
- #define SIZEOF_STR    1024    /* Default string size. */




Home | Main Index | Thread Index | Old Index