Move get_temp_dir to io module
[tig.git] / NEWS
blob97d7bd3371640060b99499f62f024985970f2ce8
1 Release notes
2 =============
4 master
5 ------
7 Improvements:
9  - User-defined commands no longer needs to always be prefixed with '!'.
10  - Add auto-configuration for Cygwin (OS name: CYGWIN_NT-6.1). (GH #92)
11  - Add toggling for display files of untracked directories.
12  - Add main view pager mode that reads git-log's '--pretty=raw' data
13    from stdin, e.g. `git reflog --pretty=raw | tig --pretty=raw`.
14  - Document the Git commands supported by the pager mode.  (GH #1)
16 Bug fixes:
18  - Fix stash diff display when reloading the stash view after a deleting.
19  - Correctly identify and highlight the remote branch tracked by HEAD.
20  - Pass --no-color after user defined arguments to ensure that colors do not
21    break the output parsing. (GH #191)
22  - Close stdin when pager mode is not supported.
24 tig-1.2.1
25 ---------
27 Incompatibilities:
29  - Move manual and man pages to doc/ directory and rename AsciiDoc files
30    to have .asciidoc as the extension to make them render on GitHub.
32 Improvements:
34  - Show blob sizes in the tree view either as bytes or using binary unit
35    prefixes. Example: `set show-file-size = units`. (GH #163)
36  - Reduce main view memory usage and startup time, especially when revision
37    graph rendering is disabled. (GH #160)
39 Bug fixes:
41  - Fix submodule-related setup to check for non-zero return value from
42    setenv(). (GH #188)
44 tig-1.2
45 -------
47  - Tig now has its own tag on Stack Overflow, where users are invited to
48    ask questions: http://stackoverflow.com/questions/tagged/tig
50 Improvements:
52  - Prompt commands can be bound to keys. For example:
53    `bind diff F :set diff-options = --full-diff`. (GH #69, #116)
54  - Add a diff-options setting for specifying default diff options.
55    Example: `set diff-options = --patience`. (GH #116)
56  - Options in diff-options and blame-options matching Tig browsing state
57    variables are replaced.
58  - Show diff stats as wide as the terminal. (GH #109)
59  - Show line numbers in the branch view. (GH #135)
60  - Add toggles for showing author email or email user names. (GH #115)
61  - Open editor at the selected line by prefixing the file argument with
62    `+<lineno>`. Tested in vi, Vim, Emacs, Nano, Gedit, Geany. Disable
63    by adding `set editor-line-number = no` to ~/.tigrc. (GH #118, #119)
64  - Add toggle-files to control whether to show full commit diff or only
65    the diff concerning the currently selected file, e.g. for blame.
66  - Optionally highlight exceeding characters in long commit titles.
67    The default title max width is 50 characters. Customize using:
68    `set title-overflow = 50` (GH #125)
69  - Add +ESC key bindings. Example: `bind generic ^[v move-page-up` (GH #120)
70  - Create temporary files in TMPDIR, TEMP, or TMP before defaulting to /tmp.
71  - Reenable `tig log` as a subcommand. (GH #146)
72  - Enable tilde expansion in ~/.tigrc "source" commands. (GH #168)
73  - Introduce the stash view, bound to the 'y' keybinding. (GH #169, #174)
75 Bug fixes:
77  - Fix blame and status to work in directories starting with a dot. (GH #172)
78  - Reload current branch name when reloading the status view. (GH #93)
79  - Fix compile errors on old Solaris. (GH #97)
80  - Reload HEAD info when reloading the stage view. (GH #104, #93)
81  - Fix disappearing branch labels after external commands. (GH #148)
82  - Fix diff view display for staged/unstaged changes when using 'd'.
83  - Fix display of status messages when toggling view options. (GH #111)
84  - Fix illegal memory access. (GH #98)
85  - Fix display of all branches label in repos with short branch names.
86  - Fix rendering glitch for branch names.
87  - Do not apply diff styling to untracked files in the stage view. (GH #153)
88  - Fix tree indentation for entries containing combining characters. (GH #170)
89  - Ignore unrepresentable characters when transliterating text for rendering.
90  - Transliterate text to output encoding before trimming it to avoid
91    misalignment. (GH #86)
92  - Introduce a more natural context-sensitive log display. (GH #155)
94 tig-1.1
95 -------
97 Incompatibilities:
99  - Disable diff move/copy detection by default, boosting diff
100    performance on larger projects. Use git config 'diff.renames' option
101    (Git-wide) to set your preferred behavior. Environment variable
102    TIG_DIFF_OPTS can be used to restore the old behavior.
103  - Fix manual keybinding for stage-single-line. (GH #108)
104  - Values set for author-width and filename-width will result in widths
105    one character bigger than previously.
107 Improvements:
109  - Typing a text in the prompt will be interpreted as a Tig command.
110    Prefixing the command with a '!' will execute this system command in
111    an external pager. Entering a single key will execute the
112    corresponding key binding.
113  - Basic support for wrapping long line in pager, diff, and stage views.
114    Enable using: `set wrap-lines = yes`. (GH #2)
115  - User-defined commands prefixed with a '?' means prompt before
116    execution. Example: `bind main B !?git rebase -i %(commit)`.
117  - User-defined commands prefixed with a '<' means exit after execution.
118    Example: `bind main C !<git commit`. (GH #66)
119  - User-defined commands are executed unquoted to support shell commands.
120    Example: `bind generic I !@sh -c "echo -n %(commit) | xclip -selection c"`.
121    (GH #65)
122  - Configure case-insensitive searches using: `set ignore-case = yes`.
123  - Add "deleted mode" line type for better diff coloring.
124  - Open editor when requesting edit action from within a file diff.
125  - Update AX_WITH_CURSES to build under Cygwin.
126  - Improve tigrc(5) documentation. (Debian #682766)
127  - Allow to build on Mac OS 10.7 without the configure script. (GH #25)
128  - Add option to split the view vertically instead of horizontally.
129    Example: `set vertical-split = yes'. (GH #76)
130  - Add 'show-id' and 'id-width' options to configure the display of
131    commit IDs in the main view and ID width in the blame view. (GH #77)
132  - Allow to override Git based encoding to UTF-8 by setting
133    'i18n.commitencoding' or 'gui.encoding'.
134  - Improve autobuild support to track generated files and work with
135    autoreconf 2.61.
136  - Commit IDs are read from stdin when --stdin is given; works for main
137    and diff view, e.g. `tig --no-walk --stdin < cherry-picks.txt`.
138  - Add option to disable focusing of the child view when it's opened.
139    Disable using: `set focus-child = no`. (GH #83)
140  - Allow to open blob related with added content in a diff. (GH #91)
142 Bug fixes:
144  - Fix commit graph regression when a path spec is specified. (GH #53)
145  - Main view: only show staged/unstaged changes for the current branch.
146  - Support submodules created with current version of git. (GH #54)
147  - Fix diff status message for file diffs with no content changes.
148  - Fix parent blaming when Tig is launched in subdirectory. (GH #70)
149  - Do not show deleted branch when reloading the branch view.
151 tig-1.0
152 -------
154 The master repository is git://github.com/jonas/tig.git, and the old
155 master repository (http://jonas.nitro.dk/tig/tig.git) will be retired.
157 Improvements:
159  - Use git-log(1)s default commit ordering. The old behavior can be
160    restored by adding `set commit-order = topo` to ~/.tigrc.
161  - Support staging of single lines. Bound to '1' default. (GH #21)
162  - Use +<lineno> to open the initial view at an arbitrary line. (GH #20)
163  - Add show-notes ~/.tigrc option. Notes are displayed by default.
164  - Support jumping to specific SHAs in the main view.
165  - Decorate replaced commits.
166  - Display line numbers in main view.
167  - Colorize binary diff stats. (GH #17)
168  - Custom colorization of lines matching a string prefix (GH #16).
169    Example configuration: color "Reported-by:" green default
170  - Use Git's color settings for the main, status and diff views.
171    Put `set read-git-colors = no` in ~/.tigrc to disable.
172  - Handle editor options with multiple arguments. (GH #12)
173  - Show filename when running tig blame with copy detection. (GH #19)
174  - Use 'source <path>' command to load additional files from ~/.tigrc
175  - User-defined commands prefixed with '@' are run with no console
176    output, e.g.
178         bind generic 3 !@rm sys$command
180  - Make display of space changes togglable in the diff and stage view.
181    Bound to 'W' by default.
182  - Use per-file encoding specified in gitattributes(5) for blobs and
183    unstaged files.
184  - Obsolete commit-encoding option and pass --encoding=UTF-8 to revision
185    commands.
186  - Main view: show uncommitted changes as staged/unstaged commits.
187    Can be disabled by putting `set show-changes = no` in ~/.tigrc.
188  - Add %(prompt) external command variable, which will prompt for the
189    argument value.
190  - Log information about Git commands when the TIG_TRACE environment
191    variable is set. Example: `TIG_TRACE=/tmp/tig.log tig`
192  - Branch view: Show the title of the last commit.
193  - Increase the author auto-abbreviation threshold to 10. (GH #49)
194  - For old commits show number of years in relative dates. (GH #50)
196 Bug fixes:
198  - Fix navigation behavior when going from branch to main view. (GH #38)
199  - Fix segfault when sorting the tree view by author name.
200  - Fix diff stat navigation for unmodified files with stat changes.
201  - Show branches/refs which names are a substring of the current branch.
202  - Stage view: fix off-by-one error when jumping to a file in a diff
203    with only one file.
204  - Fix diff-header colorization. (GH #15)
205   
206 tig-0.18
207 --------
209 Incompatibilities:
211  - Remove support for the deprecated TIG_{MAIN,DIFF,LOG,TREE,BLOB}_CMD
212    environment variables.
214 Improvements:
216  - Pressing enter on diff stat file lines will jump to file's diff.
217  - Naïvely color blame IDs to distinguish lines.
218  - Document palette color options used for revision graph and blame IDs.
219  - Add support for blaming diff lines.
220  - Add diff-context option and bindings to increase the diff context in
221    the diff and stage view.
222  - (GH-6) Make blame configurable via extra options passed from the command
223    line and blame-options setting from ~/.tigrc. For example:
224    
225         set blame-options = -C -C -C
227 Bug fixes:
229  - Expand browsing state variables for prompt. (LP #694780, Debian #635546)
230  - Fix segfault when sorting the branch view by author.
231  - Expand %(directory) to . for the root directory. (GH-3)
232  - Accept 'utf-8' for the line-graphics option as indicated in the docs.
233  - Use erasechar() to check for the correct backspace character.
235 tig-0.17
236 --------
238 Improvements:
240  - Start rewrite of the revision graph renderer. Three modes are
241    supported UTF-8, ncurses line graphics, and ASCII. Also, enable
242    revision graph rendering by default.
244 Bug fixes:
246  - Fix ncurses 5.8 issue by passing non-zero column size to newwin().
247  - Fix opening of diffs when browsing branches.
249 tig-0.16.2
250 ----------
252 Bug fixes:
254  - Fix regression causing empty tree view.
255  - Fix set_tabsize() compile error for older versions of ncurses.
257 tig-0.16.1
258 ----------
260 Improvements:
262  - Add scroll-first-col action to jump to the first column. Bound to '|'
263    by default.
264  - Add 'status-untracked-dirs' option to ignore unknown directories
265    contents in the status view. On by default.
267 Bug fixes:
269  - Fix 'tig show <commit>' to show the provided commit.
270  - Fix problem with empty diff views when file specs were passed on the
271    command line.
272  - Fix segfault when starting Tig in pager mode.
274 tig-0.16
275 --------
277 Incompatibilities:
279  - Encode everything internally as UTF-8. This can affect performance,
280    but should in general improve handling of character lengths etc.
281    Also, to properly handle UTF-8 environments use ncurses with wide
282    character support.
283  - The use of TIG_{MAIN,DIFF,LOG,TREE,BLOB}_CMD environment variables
284    has been deprecated. To allow configuration of the diff view,
285    TIG_DIFF_OPTS can be used.
287 Improvements:
289  - Plug several memory leaks.
290  - Command line arguments are split into diff, revision, and file
291    arguments and made available as %(diffargs), %(revargs), and
292    %(fileargs). Diff view will limit diffs using %(fileargs).
293  - Status view: update the file variable when a line is selected so
294    %(file) works as expected.
295  - Branch view: add %(branch) symbol providing access to the selected
296    branch.
297  - Branch view: add entry to browse all branches (uses git-log's --all
298    flag).
299  - Abbreviation of author names can now be configured and toggled.
300  - Mark detached heads with [HEAD].
301  - Add support for displaying dates in local time.
303 Bug fixes:
305  - Status view: fix usage from sub directories, which was broken by the
306    changes made to support blame view from sub directories.
307  - Fix text expansion to not truncate long lines
308  - Fix parsing of boolean show-date values.
309  - Fix relative date.
310  - Fix unbind to behave as if the keybinding was never defined.
311  - Fix unbind to also cover built-in run requests.
312  - Fix parsing of unknown keymap names.
313  - Blame view: fix parent blame to detect renames. It uses "previous"
314    line info from the blame porcelain output added in Git version 1.6.3.
316 tig-0.15
317 --------
319 Incompatibilities:
321  - Setting the cursor color no longer automatically sets the text to
322    bold. The old 'lazy' behavior was a bug.
323  - Remove check for git-repo-config, which was officially deprecated in
324    Git version 1.5.4. The configure script no longer depends on Git
325    being installed.
327 Improvements:
329  - Provide the manual as a man page named tigmanual(7).
330  - Add ability to toggle between showing shorter dates (without time
331    info) and relative dates. Use 'D' to toggle between date formats.
332  - Show the active (instead of the default) keybindings in the help
333    view. Furthermore, honor the keymap when suggesting actions in the
334    help messages.
335  - Add branch view for choosing which branch to display in the main
336    view. Bound to 'H' by default.
337  - Tree view: show entry to parent directory ('..') when running from
338    subdirectory.
339  - Tree view: sort entries by name, date or author. Toggling is bound to
340    'i' by default, with 'I' controlling whether or not to sort in
341    ascending order.
342  - Make height of the lower view in a split view configurable by setting
343    the 'split-view-height' variable to a number or a percentage.
344    Defaults to 2/3 of the total view height.
345  - Allow multiple text attributes for color commands:
347         color cursor white blue underline bold
349 Bug fixes:
351  - Blame view: fix loading of blame data when opened from the tree view
352    and CWD is not the repo root. (Debian bug 540766)
353  - Tree view: fix searching.
355 tig-0.14.1
356 ----------
358 Improvements:
360  - Status view: improve "on branch" information inspired by the prompt
361    code in Git's bash completion script.
362  - Colors for 256-capable terminals can be specified as colorN.
363  - Entering a number in the prompt will jump to that line number.
364  - Handle core.worktree by setting GIT_DIR and GIT_WORK_TREE.
365  - Make behavior of horizontal scrolling configurable by setting the
366    'horizontal-scroll' variable to a number or a percentage. Defaults to
367    scrolling 50% of the view width.
369 Bug fixes:
371  - Status view: show error when failing to open a file.
372  - Status view: report failures to update a file.
373  - Blame view: fix problem with uninitialized variable.
374  - Blame view: use line number information when loading blame for
375    specific commit.
376  - Fix handling of quoted strings in the config file.
377  - Fix horizontal scrolling glitches.
379 tig-0.14
380 --------
382 Incompatibilities:
384  - The screen-resize action has been deprecated. It had no real use for
385    users and was never meant to be exposed.
386  - The "tree-parent" action was renamed to "parent". Warnings will be
387    emitted for transition.
388  - Remove parsing of deprecated option -S and subcommands log and diff.
389  - The "author" color replaces "main-author". Setting the latter will
390    now set the "author" color.
392 Improvements:
394  - Horizontal scrolling. Bound to Left/Right by default.
395  - Read tigrc(5) options from Git configuration files using the syntax:
397         [tig] show-rev-graph = true
398         [tig "color"] cursor = yellow red bold 
399         [tig "bind"] generic = P parent
401  - Tree view: avoid flickering when updating.
402  - Tree view: annotate entries with commit information.
403  - Tree & blob view: open any blob in an editor.
404  - Stage & main view: restore view position when reloading.
405  - Blame view: load blame for parent commit. For merge commits the parent
406    is queried. Bound to ',' by default via the existing "parent" action.
407  - Abbreviate author names to initials when the width of the author column
408    is below 6 characters.
410 Bug fixes:
412  - Tree view: fix memory corruption bug when updating.
413  - Tree view: improve handling of empty trees.
414  - Status view: fix reverting of unmerged files.
415  - Fix regression for non-UTF-8 locales corrupting the view data.
416  - Fix regression parsing multiple spaces in ~/.tigrc.
418 tig-0.13
419 --------
421 Incompatibilities:
423  - Commands from the environment (e.g. TIG_MAIN_CMD) will no longer have
424    access to shell features, such as subshells and variable expansion.
425    The easiest way to upgrade your configuration is to put such commands
426    in a script file or as a Git alias.
428 Improvements:
430  - Display repository references in the sorted order: tags, heads,
431    tracked remotes, remotes.
432  - Add bash completion for blame.
433  - Tree view: edit files of the current branch.
434  - Run requests: new identifiers %(directory), %(file), and %(ref)
435  - Improve responsiveness and view loading speed by using select(2).
437 Bug fixes:
439  - Separate blame revision and file argument by "--" to avoid problems.
440  - Main view: fix redrawing of the last commit wrt. the revision graph.
441  - Fix waiting for input after executing a run request in pager mode.
442  - Status & stage view: refuse to open directories and deleted files.
443  - Tree view: show error when requesting blame for all non-file entries.
444  - Do not draw loading views, which are not displayed.
445  - Fix launching of mergetool from a subdirectory.
447 tig-0.12.1
448 ----------
450 Improvements:
452  - Status view: revert uncommitted diff chunks and unstaged files with
453    changes. Bound to '!' by default.
454  - Main view: use --topo-order also when rev-list arguments are given on
455    the command line.
456  - Log view: support for refreshing.
458 Bug fixes:
460  - Status view: use ls-files' --exclude-standard so user specific ignore
461    rules are effective. The option was added in Git version 1.5.4.
462  - Stage view: fix assertion failure triggered when updating while
463    status view is not displayed.
464  - Help view: avoid confusion by showing "(no key)" instead of "'?'" for
465    unbound requests.
466  - Reload repository references when refreshing the main (and log) view.
467  - Do not maximize views when refreshing.
469 tig-0.12
470 --------
472 Improvements:
474  - F5 also refreshes the current view.
475  - Allow line graphics to be disabled with new line-graphics option.
476  - Main view: also include the reference names when searching.
477  - Main view: support for refreshing.
478  - Main view: disable boundary commits by default. Use --boundary when
479    they should be shown. (Debian bug 498628)
480  - Stage view: add stage-next action to jump to next diff chunk that can
481    be staged. By default bound to '@'.
482  - Configure: check for the ncurses header files.
483  - Add author-width option to customize the width of the author column.
484    For example, put the following in ~/.tigrc: set author-width = 10
486 Bug fixes:
488  - Fix regression when staging all diff chunks in a section.
489  - Bind the maximize view action to 'O'; it conflicted with the
490    keybinding to launch the merge tool in the status view.
491  - Fix problem with $(cmd) usage in shell code. Some shells (jsh)
492    installed as /bin/sh does not support it.
493  - Do not show incomplete boundary commits when --no-walk is used.
494  - Documentation: Rename gitlink macro to support AsciiDoc 8.2.3.
495  - Ignore pipe reads with errno "Success" reported after a signals,
496    for example when refreshing doing background loading.
498 tig-0.11
499 --------
501 Incompatibilities:
503  - Remove parsing of deprecated options: -g, -l, -d.
504  - The first seen '--' will stop option parsing and is passed to Git
505    instead of breaking out of Tig's option parsing.
507 New features:
509  - Blame view; bound to 'B' by default, reachable from the command line
510    and the tree, status, and stage views.
511  - Blame/main view: allow display of date, author, and references to be
512    toggled on/off. Bound to 'D', 'A', and 'F' respectively.
513  - Add action to maximize the current view.
515 Improvements:
517  - Show the current branch in the status view.
518  - Show local/light-weight tags.
520 Bug fixes:
522  - Fix regressions for the pager mode.
523  - Fix refreshing of the index with working directory info.
525 tig-0.10.1
526 ----------
528 Improvements:
530  - Status view: detect renamed files and show them with 'R'.
531  - Status view: refresh the index to avoid "empty diffs".
532  - Diff view: make diff headers more verbose to include e.g. committer.
533  - Configure: check for the ncursesw library.
535 Bug fixes:
537  - Fix UTF-8 handling for tag names and commit messages.
538  - Fix the check for git-config(1) in configure to handle the case when
539    Git has been installed using a libexecdir which is not in the path.
540  - Fix replacing of SYSCONFDIR when installing from released tarballs.
542 tig-0.10
543 ---------
545 Incompatibilities:
547  - Deprecate most Tig specific command line options to make Tig more
548    compatible with gitk. The deprecated options are: -g, -l, -d, and -S.
549    Use of any of them will result in a warning being printed to stderr.
550    Instead of '-S', use the new 'status' subcommand.
551  - Make man page building depend on DocBook XSL version >= 1.72.0.
552  - Install man pages in $(prefix)/share/man.
553  - Implement the cherry pick action (bound to 'C') using new support for
554    running external commands. This obsoletes the TIG_CHEERY_PICK
555    environment variable
557 New features:
559  - Add support for binding keys to external commands. To bind '.' to
560    running git-commit(1), add the line: "bind generic . !git commit" to
561    your ~/.tigrc. Each command can have replacement string such as
562    %(commit), %(head), and %(blob), which are substituted before the
563    command is run.
564  - Add system-wide configuration file defaulting to $(prefix)/etc/tigrc.
565  - Add the environment variables TIGRC_USER and TIGRC_SYSTEM to change
566    user and system-wide configuration files, respectively.
568 Improvements:
570  - Main view: color the revision graph.
571  - Main view: show boundary commits; they are marked with '^' in the
572    revision graph.
573  - Tree view: add tree-parent action to jump to view of the parent tree.
574    Bound to ',' by default.
575  - Allow the default terminal colors to be overwritten. To use black
576    text on white, add the line "color default white black" to your
577    ~/.tigrc.
578  - Misc. documentation improvements.
580 Bug fixes:
582  - Use git-diff-index(1) and git-diff-files(1) instead of git-diff(1) to
583    avoid running external diff drivers.
584  - Use --no-color when calling git-log(1).
585  - Fix crash when opening mergetool for lines that are not unmerged.
587 tig-0.9.1
588 ---------
590 Incompatibilities:
592  - Make the clean rule to never remove generated documentation files.
593    Use the distclean rule for accomplishing this.
595 New features:
597  - Add support for cherry-picking commits in the main view to the
598    current branch. Bound to 'C' by default.
600 Improvements:
602  - Add support for launching git-mergetool(1) from the status view.
603    Bound to 'M' by default.
604  - Add support for refreshing/reloading the status view
605  - Detect working trees and disable the status view when it is missing.
607 Bug fixes:
609  - Fix iconv() checking in configure.
610  - Fix editor invocation to make paths relative to the project root.
611  - Fix out-of-range current line when reloading the status view.
612  - Include autoconf files in the tarball generated by `make dist`.
614 tig-0.9
615 -------
617 New features:
619  - Add bash completion script for Tig (contrib/tig-completion.bash).
620  - Add optional autoconf-based build infrastructure.
621  - Add stage view for showing changes in the working tree and add
622    support for staging individual diff chunks for commit.
624 Improvements:
626  - Status view: allow all files in a section to be staged for commit.
627  - Status view: Add support for opening files in an editor. Bound to 'e'
628    by default.
629  - Tree view: use a stack for remembering the lines for parent tree.