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