Store all restore information in view.prev_pos
[tig.git] / NEWS
blobf2e7ac648bf0971ac41787332100c51f1a360eb6
1 Release notes
2 =============
4 master
5 ------
7 The master repository is git://github.com/jonas/tig.git, and the old
8 master repository (http://jonas.nitro.dk/tig/tig.git) will be retired.
10 Improvements:
12  - Use git-log(1)s default commit ordering. The old behavior can be
13    restored by adding `set commit-order = topo` to ~/.tigrc.
14  - Support staging of single lines. Bound to '1' default. (GH #21)
15  - Use +<lineno> to open the initial view at an arbitrary line. (GH #20)
16  - Add show-notes ~/.tigrc option. Notes are displayed by default.
17  - Support jumping to specific SHAs in the main view.
18  - Decorate replaced commits.
19  - Display line numbers in main view.
20  - Colorize binary diff stats. (GH #17)
21  - Custom colorization of lines matching a string prefix (GH #16).
22    Example configuration: color "Reported-by:" green default
23  - Use git's color settings for the main, status and diff views.
24    Put `set read-git-colors = no` in ~/.tigrc to disable.
25  - Handle editor options with multiple arguments. (GH #12)
26  - Show filename when running tig blame with copy detection. (GH #19)
27  - Use 'source <path>' command to load additional files from ~/.tigrc
28  - User-defined commands prefixed with '@' are run with no console
29    output, e.g.
31         bind generic 3 !@rm sys$command
33  - Make display of space changes togglable in the diff and stage view.
34    Bound to 'W' by default.
35  - Use per-file encoding specified in gitattributes(5) for blobs and
36    unstaged files.
37  - Obsolete commit-encoding option and pass --encoding=UTF-8 to revision
38    commands.
39  - Main view: show uncommitted changes as staged/unstaged commits.
40    Can be disabled by putting `set show-changes = no` in ~/.tigrc.
41  - Add %(prompt) external command variable, which will prompt for the
42    argument value.
43  - Log information about git commands when the TIG_TRACE environment
44    variable is set. Example: `TIG_TRACE=/tmp/tig.log tig`
46 Bug fixes:
48  - Fix navigation behavior when going from branch to main view. (GH #38)
49  - Fix segfault when sorting the tree view by author name.
50  - Show branches/refs which names are a substring of the current branch.
51  - Stage view: fix off-by-one error when jumping to a file in a diff
52    with only one file.
53  - Fix diff-header colorization. (GH #15)
54   
55 tig-0.18
56 --------
58 Incompatibilities:
60  - Remove support for the deprecated TIG_{MAIN,DIFF,LOG,TREE,BLOB}_CMD
61    environment variables.
63 Improvements:
65  - Pressing enter on diff stat file lines will jump to file's diff.
66  - Naïvely color blame IDs to distinguish lines.
67  - Document palette color options used for revision graph and blame IDs.
68  - Add support for blaming diff lines.
69  - Add diff-context option and bindings to increase the diff context in
70    the diff and stage view.
71  - (GH-6) Make blame configurable via extra options passed from the command
72    line and blame-options setting from ~/.tigrc. For example:
73    
74         set blame-options = -C -C -C
76 Bug fixes:
78  - Expand browsing state variables for prompt. (LP #694780, Debian #635546)
79  - Fix segfault when sorting the branch view by author.
80  - Expand %(directory) to . for the root directory. (GH-3)
81  - Accept 'utf-8' for the line-graphics option as indicated in the docs.
82  - Use erasechar() to check for the correct backspace character.
84 tig-0.17
85 --------
87 Improvements:
89  - Start rewrite of the revision graph renderer. Three modes are
90    supported UTF-8, ncurses line graphics, and ASCII. Also, enable
91    revision graph rendering by default.
93 Bug fixes:
95  - Fix ncurses 5.8 issue by passing non-zero column size to newwin().
96  - Fix opening of diffs when browsing branches.
98 tig-0.16.2
99 ----------
101 Bug fixes:
103  - Fix regression causing empty tree view.
104  - Fix set_tabsize() compile error for older versions of ncurses.
106 tig-0.16.1
107 ----------
109 Improvements:
111  - Add scroll-first-col action to jump to the first column. Bound to '|'
112    by default.
113  - Add 'status-untracked-dirs' option to ignore unknown directories
114    contents in the status view. On by default.
116 Bug fixes:
118  - Fix 'tig show <commit>' to show the provided commit.
119  - Fix problem with empty diff views when file specs were passed on the
120    command line.
121  - Fix segfault when starting tig in pager mode.
123 tig-0.16
124 --------
126 Incompatibilities:
128  - Encode everything internally as UTF-8. This can affect performance,
129    but should in general improve handling of character lengths etc.
130    Also, to properly handle UTF-8 environments use ncurses with wide
131    character support.
132  - The use of TIG_{MAIN,DIFF,LOG,TREE,BLOB}_CMD environment variables
133    has been deprecated. To allow configuration of the diff view,
134    TIG_DIFF_OPTS can be used.
136 Improvements:
138  - Plug several memory leaks.
139  - Command line arguments are split into diff, revision, and file
140    arguments and made available as %(diffargs), %(revargs), and
141    %(fileargs). Diff view will limit diffs using %(fileargs).
142  - Status view: update the file variable when a line is selected so
143    %(file) works as expected.
144  - Branch view: add %(branch) symbol providing access to the selected
145    branch.
146  - Branch view: add entry to browse all branches (uses git-log's --all
147    flag).
148  - Abbreviation of author names can now be configured and toggled.
149  - Mark detached heads with [HEAD].
150  - Add support for displaying dates in local time.
152 Bug fixes:
154  - Status view: fix usage from sub directories, which was broken by the
155    changes made to support blame view from sub directories.
156  - Fix text expansion to not truncate long lines
157  - Fix parsing of boolean show-date values.
158  - Fix relative date.
159  - Fix unbind to behave as if the keybinding was never defined.
160  - Fix unbind to also cover built-in run requests.
161  - Fix parsing of unknown keymap names.
162  - Blame view: fix parent blame to detect renames. It uses "previous"
163    line info from the blame porcelain output added in git version 1.6.3.
165 tig-0.15
166 --------
168 Incompatibilities:
170  - Setting the cursor color no longer automatically sets the text to
171    bold. The old 'lazy' behavior was a bug.
172  - Remove check for git-repo-config, which was officially deprecated in
173    git version 1.5.4. The configure script no longer depends on git
174    being installed.
176 Improvements:
178  - Provide the manual as a man page named tigmanual(7).
179  - Add ability to toggle between showing shorter dates (without time
180    info) and relative dates. Use 'D' to toggle between date formats.
181  - Show the active (instead of the default) keybindings in the help
182    view. Furthermore, honor the keymap when suggesting actions in the
183    help messages.
184  - Add branch view for choosing which branch to display in the main
185    view. Bound to 'H' by default.
186  - Tree view: show entry to parent directory ('..') when running from
187    subdirectory.
188  - Tree view: sort entries by name, date or author. Toggling is bound to
189    'i' by default, with 'I' controlling whether or not to sort in
190    ascending order.
191  - Make height of the lower view in a split view configurable by setting
192    the 'split-view-height' variable to a number or a percentage.
193    Defaults to 2/3 of the total view height.
194  - Allow multiple text attributes for color commands:
196         color cursor white blue underline bold
198 Bug fixes:
200  - Blame view: fix loading of blame data when opened from the tree view
201    and CWD is not the repo root. (Debian bug 540766)
202  - Tree view: fix searching.
204 tig-0.14.1
205 ----------
207 Improvements:
209  - Status view: improve "on branch" information inspired by the prompt
210    code in git's bash completion script.
211  - Colors for 256-capable terminals can be specified as colorN.
212  - Entering a number in the prompt will jump to that line number.
213  - Handle core.worktree by setting GIT_DIR and GIT_WORK_TREE.
214  - Make behavior of horizontal scrolling configurable by setting the
215    'horizontal-scroll' variable to a number or a percentage. Defaults to
216    scrolling 50% of the view width.
218 Bug fixes:
220  - Status view: show error when failing to open a file.
221  - Status view: report failures to update a file.
222  - Blame view: fix problem with uninitialized variable.
223  - Blame view: use line number information when loading blame for
224    specific commit.
225  - Fix handling of quoted strings in the config file.
226  - Fix horizontal scrolling glitches.
228 tig-0.14
229 --------
231 Incompatibilities:
233  - The screen-resize action has been deprecated. It had no real use for
234    users and was never meant to be exposed.
235  - The "tree-parent" action was renamed to "parent". Warnings will be
236    emitted for transition.
237  - Remove parsing of deprecated option -S and subcommands log and diff.
238  - The "author" color replaces "main-author". Setting the latter will
239    now set the "author" color.
241 Improvements:
243  - Horizontal scrolling. Bound to Left/Right by default.
244  - Read tigrc(5) options from git configuration files using the syntax:
246         [tig] show-rev-graph = true
247         [tig "color"] cursor = yellow red bold 
248         [tig "bind"] generic = P parent
250  - Tree view: avoid flickering when updating.
251  - Tree view: annotate entries with commit information.
252  - Tree & blob view: open any blob in an editor.
253  - Stage & main view: restore view position when reloading.
254  - Blame view: load blame for parent commit. For merge commits the parent
255    is queried. Bound to ',' by default via the existing "parent" action.
256  - Abbreviate author names to initials when the width of the author column
257    is below 6 characters.
259 Bug fixes:
261  - Tree view: fix memory corruption bug when updating.
262  - Tree view: improve handling of empty trees.
263  - Status view: fix reverting of unmerged files.
264  - Fix regression for non-UTF-8 locales corrupting the view data.
265  - Fix regression parsing multiple spaces in ~/.tigrc.
267 tig-0.13
268 --------
270 Incompatibilities:
272  - Commands from the environment (e.g. TIG_MAIN_CMD) will no longer have
273    access to shell features, such as subshells and variable expansion.
274    The easiest way to upgrade your configuration is to put such commands
275    in a script file or as a git alias.
277 Improvements:
279  - Display repository references in the sorted order: tags, heads,
280    tracked remotes, remotes.
281  - Add bash completion for blame.
282  - Tree view: edit files of the current branch.
283  - Run requests: new identifiers %(directory), %(file), and %(ref)
284  - Improve responsiveness and view loading speed by using select(2).
286 Bug fixes:
288  - Separate blame revision and file argument by "--" to avoid problems.
289  - Main view: fix redrawing of the last commit wrt. the revision graph.
290  - Fix waiting for input after executing a run request in pager mode.
291  - Status & stage view: refuse to open directories and deleted files.
292  - Tree view: show error when requesting blame for all non-file entries.
293  - Do not draw loading views, which are not displayed.
294  - Fix launching of mergetool from a subdirectory.
296 tig-0.12.1
297 ----------
299 Improvements:
301  - Status view: revert uncommitted diff chunks and unstaged files with
302    changes. Bound to '!' by default.
303  - Main view: use --topo-order also when rev-list arguments are given on
304    the command line.
305  - Log view: support for refreshing.
307 Bug fixes:
309  - Status view: use ls-files' --exclude-standard so user specific ignore
310    rules are effective. The option was added in git version 1.5.4.
311  - Stage view: fix assertion failure triggered when updating while
312    status view is not displayed.
313  - Help view: avoid confusion by showing "(no key)" instead of "'?'" for
314    unbound requests.
315  - Reload repository references when refreshing the main (and log) view.
316  - Do not maximize views when refreshing.
318 tig-0.12
319 --------
321 Improvements:
323  - F5 also refreshes the current view.
324  - Allow line graphics to be disabled with new line-graphics option.
325  - Main view: also include the reference names when searching.
326  - Main view: support for refreshing.
327  - Main view: disable boundary commits by default. Use --boundary when
328    they should be shown. (Debian bug 498628)
329  - Stage view: add stage-next action to jump to next diff chunk that can
330    be staged. By default bound to '@'.
331  - Configure: check for the ncurses header files.
332  - Add author-width option to customize the width of the author column.
333    For example, put the following in ~/.tigrc: set author-width = 10
335 Bug fixes:
337  - Fix regression when staging all diff chunks in a section.
338  - Bind the maximize view action to 'O'; it conflicted with the
339    keybinding to launch the merge tool in the status view.
340  - Fix problem with $(cmd) usage in shell code. Some shells (jsh)
341    installed as /bin/sh does not support it.
342  - Do not show incomplete boundary commits when --no-walk is used.
343  - Documentation: Rename gitlink macro to support AsciiDoc 8.2.3.
344  - Ignore pipe reads with errno "Success" reported after a signals,
345    for example when refreshing doing background loading.
347 tig-0.11
348 --------
350 Incompatibilities:
352  - Remove parsing of deprecated options: -g, -l, -d.
353  - The first seen '--' will stop option parsing and is passed to git
354    instead of breaking out of tig's option parsing.
356 New features:
358  - Blame view; bound to 'B' by default, reachable from the command line
359    and the tree, status, and stage views.
360  - Blame/main view: allow display of date, author, and references to be
361    toggled on/off. Bound to 'D', 'A', and 'F' respectively.
362  - Add action to maximize the current view.
364 Improvements:
366  - Show the current branch in the status view.
367  - Show local/light-weight tags.
369 Bug fixes:
371  - Fix regressions for the pager mode.
372  - Fix refreshing of the index with working directory info.
374 tig-0.10.1
375 ----------
377 Improvements:
379  - Status view: detect renamed files and show them with 'R'.
380  - Status view: refresh the index to avoid "empty diffs".
381  - Diff view: make diff headers more verbose to include e.g. committer.
382  - Configure: check for the ncursesw library.
384 Bug fixes:
386  - Fix UTF-8 handling for tag names and commit messages.
387  - Fix the check for git-config(1) in configure to handle the case when
388    git has been installed using a libexecdir which is not in the path.
389  - Fix replacing of SYSCONFDIR when installing from released tarballs.
391 tig-0.10
392 ---------
394 Incompatibilities:
396  - Deprecate most tig specific command line options to make tig more
397    compatible with gitk. The deprecated options are: -g, -l, -d, and -S.
398    Use of any of them will result in a warning being printed to stderr.
399    Instead of '-S', use the new 'status' subcommand.
400  - Make man page building depend on DocBook XSL version >= 1.72.0.
401  - Install man pages in $(prefix)/share/man.
402  - Implement the cherry pick action (bound to 'C') using new support for
403    running external commands. This obsoletes the TIG_CHEERY_PICK
404    environment variable
406 New features:
408  - Add support for binding keys to external commands. To bind '.' to
409    running git-commit(1), add the line: "bind generic . !git commit" to
410    your ~/.tigrc. Each command can have replacement string such as
411    %(commit), %(head), and %(blob), which are substituted before the
412    command is run.
413  - Add system-wide configuration file defaulting to $(prefix)/etc/tigrc.
414  - Add the environment variables TIGRC_USER and TIGRC_SYSTEM to change
415    user and system-wide configuration files, respectively.
417 Improvements:
419  - Main view: color the revision graph.
420  - Main view: show boundary commits; they are marked with '^' in the
421    revision graph.
422  - Tree view: add tree-parent action to jump to view of the parent tree.
423    Bound to ',' by default.
424  - Allow the default terminal colors to be overwritten. To use black
425    text on white, add the line "color default white black" to your
426    ~/.tigrc.
427  - Misc. documentation improvements.
429 Bug fixes:
431  - Use git-diff-index(1) and git-diff-files(1) instead of git-diff(1) to
432    avoid running external diff drivers.
433  - Use --no-color when calling git-log(1).
434  - Fix crash when opening mergetool for lines that are not unmerged.
436 tig-0.9.1
437 ---------
439 Incompatibilities:
441  - Make the clean rule to never remove generated documentation files.
442    Use the distclean rule for accomplishing this.
444 New features:
446  - Add support for cherry-picking commits in the main view to the
447    current branch. Bound to 'C' by default.
449 Improvements:
451  - Add support for launching git-mergetool(1) from the status view.
452    Bound to 'M' by default.
453  - Add support for refreshing/reloading the status view
454  - Detect working trees and disable the status view when it is missing.
456 Bug fixes:
458  - Fix iconv() checking in configure.
459  - Fix editor invocation to make paths relative to the project root.
460  - Fix out-of-range current line when reloading the status view.
461  - Include autoconf files in the tarball generated by `make dist`.
463 tig-0.9
464 -------
466 New features:
468  - Add bash completion script for tig (contrib/tig-completion.bash).
469  - Add optional autoconf-based build infrastructure.
470  - Add stage view for showing changes in the working tree and add
471    support for staging individual diff chunks for commit.
473 Improvements:
475  - Status view: allow all files in a section to be staged for commit.
476  - Status view: Add support for opening files in an editor. Bound to 'e'
477    by default.
478  - Tree view: use a stack for remembering the lines for parent tree.