Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package tig for openSUSE:Factory checked in at 2024-05-13 17:58:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/tig (Old) and /work/SRC/openSUSE:Factory/.tig.new.1880 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "tig" Mon May 13 17:58:09 2024 rev:54 rq:1173567 version:2.5.10 Changes: -------- --- /work/SRC/openSUSE:Factory/tig/tig.changes 2024-04-02 16:45:16.987302441 +0200 +++ /work/SRC/openSUSE:Factory/.tig.new.1880/tig.changes 2024-05-13 17:58:46.699421682 +0200 @@ -1,0 +2,11 @@ +Sun May 12 19:01:21 UTC 2024 - Andreas Stieger <andreas.stie...@gmx.de> + +- update to 2.5.10: + * Fix stat-* coloring file names in tig status instead of just + markers (regression in 2.5.9) + * Fix keybinding with +[cmd] not triggering view refreshing + * Fix reopening the blame view from the main view + * Fix editing when stdin is redirected + * Make Ctrl-C to kill only the command running in the foreground + +------------------------------------------------------------------- Old: ---- tig-2.5.9.tar.gz New: ---- tig-2.5.10.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ tig.spec ++++++ --- /var/tmp/diff_new_pack.b6b6Xv/_old 2024-05-13 17:58:47.191439633 +0200 +++ /var/tmp/diff_new_pack.b6b6Xv/_new 2024-05-13 17:58:47.191439633 +0200 @@ -17,7 +17,7 @@ Name: tig -Version: 2.5.9 +Version: 2.5.10 Release: 0 Summary: An ncurses-based text-mode interface for git License: GPL-2.0-or-later ++++++ tig-2.5.9.tar.gz -> tig-2.5.10.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tig-2.5.9/INSTALL.adoc new/tig-2.5.10/INSTALL.adoc --- old/tig-2.5.9/INSTALL.adoc 2024-03-29 20:35:54.000000000 +0100 +++ new/tig-2.5.10/INSTALL.adoc 2024-05-10 19:51:24.000000000 +0200 @@ -6,8 +6,8 @@ repository https://github.com/jonas/tig[https://github.com/jonas/tig.git]. The latest version is: -https://github.com/jonas/tig/releases/download/tig-2.5.9/tig-2.5.9.tar.gz[tig-2.5.9] -https://github.com/jonas/tig/releases/download/tig-2.5.9/tig-2.5.9.tar.gz.sha256[(sha256)] +https://github.com/jonas/tig/releases/download/tig-2.5.10/tig-2.5.10.tar.gz[tig-2.5.10] +https://github.com/jonas/tig/releases/download/tig-2.5.10/tig-2.5.10.tar.gz.sha256[(sha256)] *Note:* Do not use the tar.gz file for version 2.0 because it will fail to compile due to issue https://github.com/jonas/tig/pull/283[#283] and diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tig-2.5.9/INSTALL.html new/tig-2.5.10/INSTALL.html --- old/tig-2.5.9/INSTALL.html 2024-03-29 20:35:54.000000000 +0100 +++ new/tig-2.5.10/INSTALL.html 2024-05-10 19:51:24.000000000 +0200 @@ -742,8 +742,8 @@ <div class="paragraph"><p>Download a tarball from <a href="https://github.com/jonas/tig/releases">https://github.com/jonas/tig/releases</a> or clone the Tig repository <a href="https://github.com/jonas/tig">https://github.com/jonas/tig.git</a>.</p></div> <div class="paragraph"><p>The latest version is: -<a href="https://github.com/jonas/tig/releases/download/tig-2.5.9/tig-2.5.9.tar.gz">tig-2.5.9</a> -<a href="https://github.com/jonas/tig/releases/download/tig-2.5.9/tig-2.5.9.tar.gz.sha256">(sha256)</a></p></div> +<a href="https://github.com/jonas/tig/releases/download/tig-2.5.10/tig-2.5.10.tar.gz">tig-2.5.10</a> +<a href="https://github.com/jonas/tig/releases/download/tig-2.5.10/tig-2.5.10.tar.gz.sha256">(sha256)</a></p></div> <div class="paragraph"><p><strong>Note:</strong> Do not use the tar.gz file for version 2.0 because it will fail to compile due to issue <a href="https://github.com/jonas/tig/pull/283">#283</a> and <a href="https://github.com/jonas/tig/issues/337">#337</a></p></div> @@ -1044,7 +1044,7 @@ <div id="footer"> <div id="footer-text"> Last updated - 2024-03-29 20:35:47 CET + 2024-05-10 19:51:19 CEST </div> </div> </body> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tig-2.5.9/Makefile new/tig-2.5.10/Makefile --- old/tig-2.5.9/Makefile 2024-03-29 20:35:54.000000000 +0100 +++ new/tig-2.5.10/Makefile 2024-05-10 19:51:24.000000000 +0200 @@ -2,7 +2,7 @@ # The last tagged version. Can be overridden either by the version from # git or from the value of the DIST_VERSION environment variable. -VERSION = 2.5.9 +VERSION = 2.5.10 all: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tig-2.5.9/NEWS.adoc new/tig-2.5.10/NEWS.adoc --- old/tig-2.5.9/NEWS.adoc 2024-03-29 20:35:54.000000000 +0100 +++ new/tig-2.5.10/NEWS.adoc 2024-05-10 19:51:24.000000000 +0200 @@ -1,6 +1,19 @@ Release notes ============= +tig-2.5.10 +---------- + +Bug fixes: + + - Fix `stat-*` coloring file names in `tig status` instead of just + markers (regression in 2.5.9). (#1326) + - Fix keybinding with +[cmd] not triggering view refreshing. (#1324) + - Fix reopening the blame view from the main view. + - Fix editing when stdin is redirected. (#1330) + - Fix compilation warnings with ncurses 6.5. + - Make `Ctrl-C` to kill only the command running in the foreground. (#1331) + tig-2.5.9 --------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tig-2.5.9/NEWS.html new/tig-2.5.10/NEWS.html --- old/tig-2.5.9/NEWS.html 2024-03-29 20:35:54.000000000 +0100 +++ new/tig-2.5.10/NEWS.html 2024-05-10 19:51:24.000000000 +0200 @@ -738,6 +738,45 @@ </div> <div id="content"> <div class="sect1"> +<h2 id="_tig_2_5_10">tig-2.5.10</h2> +<div class="sectionbody"> +<div class="paragraph"><p>Bug fixes:</p></div> +<div class="ulist"><ul> +<li> +<p> +Fix <code>stat-*</code> coloring file names in <code>tig status</code> instead of just + markers (regression in 2.5.9). (#1326) +</p> +</li> +<li> +<p> +Fix keybinding with +[cmd] not triggering view refreshing. (#1324) +</p> +</li> +<li> +<p> +Fix reopening the blame view from the main view. +</p> +</li> +<li> +<p> +Fix editing when stdin is redirected. (#1330) +</p> +</li> +<li> +<p> +Fix compilation warnings with ncurses 6.5. +</p> +</li> +<li> +<p> +Make <code>Ctrl-C</code> to kill only the command running in the foreground. (#1331) +</p> +</li> +</ul></div> +</div> +</div> +<div class="sect1"> <h2 id="_tig_2_5_9">tig-2.5.9</h2> <div class="sectionbody"> <div class="paragraph"><p>Improvements:</p></div> @@ -5137,7 +5176,7 @@ <div id="footer"> <div id="footer-text"> Last updated - 2024-03-29 20:35:47 CET + 2024-05-10 19:51:19 CEST </div> </div> </body> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tig-2.5.9/doc/manual.html new/tig-2.5.10/doc/manual.html --- old/tig-2.5.9/doc/manual.html 2024-03-29 20:35:54.000000000 +0100 +++ new/tig-2.5.10/doc/manual.html 2024-05-10 19:51:24.000000000 +0200 @@ -2104,7 +2104,7 @@ <div id="footer"> <div id="footer-text"> Last updated - 2024-03-29 20:35:47 CET + 2024-05-09 23:39:08 CEST </div> </div> </body> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tig-2.5.9/doc/tig.1 new/tig-2.5.10/doc/tig.1 --- old/tig-2.5.9/doc/tig.1 2024-03-29 20:35:54.000000000 +0100 +++ new/tig-2.5.10/doc/tig.1 2024-05-10 19:51:24.000000000 +0200 @@ -2,12 +2,12 @@ .\" Title: tig .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author] .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/> -.\" Date: 03/29/2024 +.\" Date: 05/10/2024 .\" Manual: Tig Manual -.\" Source: Tig 2.5.9 +.\" Source: Tig 2.5.10 .\" Language: English .\" -.TH "TIG" "1" "03/29/2024" "Tig 2\&.5\&.9" "Tig Manual" +.TH "TIG" "1" "05/10/2024" "Tig 2\&.5\&.10" "Tig Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tig-2.5.9/doc/tig.1.html new/tig-2.5.10/doc/tig.1.html --- old/tig-2.5.9/doc/tig.1.html 2024-03-29 20:35:54.000000000 +0100 +++ new/tig-2.5.10/doc/tig.1.html 2024-05-10 19:51:24.000000000 +0200 @@ -1206,7 +1206,7 @@ <div id="footer"> <div id="footer-text"> Last updated - 2024-03-29 20:35:47 CET + 2024-05-09 23:39:08 CEST </div> </div> </body> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tig-2.5.9/doc/tigmanual.7 new/tig-2.5.10/doc/tigmanual.7 --- old/tig-2.5.9/doc/tigmanual.7 2024-03-29 20:35:54.000000000 +0100 +++ new/tig-2.5.10/doc/tigmanual.7 2024-05-10 19:51:24.000000000 +0200 @@ -2,12 +2,12 @@ .\" Title: tigmanual .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author] .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/> -.\" Date: 03/29/2024 +.\" Date: 05/10/2024 .\" Manual: Tig Manual -.\" Source: Tig 2.5.9 +.\" Source: Tig 2.5.10 .\" Language: English .\" -.TH "TIGMANUAL" "7" "03/29/2024" "Tig 2\&.5\&.9" "Tig Manual" +.TH "TIGMANUAL" "7" "05/10/2024" "Tig 2\&.5\&.10" "Tig Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tig-2.5.9/doc/tigrc.5 new/tig-2.5.10/doc/tigrc.5 --- old/tig-2.5.9/doc/tigrc.5 2024-03-29 20:35:54.000000000 +0100 +++ new/tig-2.5.10/doc/tigrc.5 2024-05-10 19:51:24.000000000 +0200 @@ -2,12 +2,12 @@ .\" Title: tigrc .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author] .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/> -.\" Date: 03/29/2024 +.\" Date: 05/10/2024 .\" Manual: Tig Manual -.\" Source: Tig 2.5.9 +.\" Source: Tig 2.5.10 .\" Language: English .\" -.TH "TIGRC" "5" "03/29/2024" "Tig 2\&.5\&.9" "Tig Manual" +.TH "TIGRC" "5" "05/10/2024" "Tig 2\&.5\&.10" "Tig Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tig-2.5.9/doc/tigrc.5.html new/tig-2.5.10/doc/tigrc.5.html --- old/tig-2.5.9/doc/tigrc.5.html 2024-03-29 20:35:54.000000000 +0100 +++ new/tig-2.5.10/doc/tigrc.5.html 2024-05-10 19:51:24.000000000 +0200 @@ -2942,7 +2942,7 @@ <div id="footer"> <div id="footer-text"> Last updated - 2024-03-29 20:35:47 CET + 2024-05-09 23:39:08 CEST </div> </div> </body> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tig-2.5.9/include/tig/io.h new/tig-2.5.10/include/tig/io.h --- old/tig-2.5.9/include/tig/io.h 2024-03-29 20:35:54.000000000 +0100 +++ new/tig-2.5.10/include/tig/io.h 2024-05-10 19:51:24.000000000 +0200 @@ -87,7 +87,7 @@ bool io_exec(struct io *io, enum io_type type, const char *dir, char * const env[], const char *argv[], int custom); bool io_run(struct io *io, enum io_type type, const char *dir, char * const env[], const char *argv[]); bool io_run_bg(const char **argv, const char *dir); -bool io_run_fg(const char **argv, const char *dir); +bool io_run_fg(const char **argv, const char *dir, int fd); bool io_run_append(const char **argv, int fd); bool io_eof(struct io *io); int io_error(struct io *io); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tig-2.5.9/include/tig/tig.h new/tig-2.5.10/include/tig/tig.h --- old/tig-2.5.9/include/tig/tig.h 2024-03-29 20:35:54.000000000 +0100 +++ new/tig-2.5.10/include/tig/tig.h 2024-05-10 19:51:24.000000000 +0200 @@ -39,10 +39,12 @@ #endif /* necessary on Snow Leopard to use WINDOW struct */ +#if defined(NCURSES_VERSION_PATCH) && NCURSES_VERSION_PATCH < 20110226 #ifdef NCURSES_OPAQUE #undef NCURSES_OPAQUE #endif #define NCURSES_OPAQUE 0 +#endif #include <assert.h> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tig-2.5.9/src/blame.c new/tig-2.5.10/src/blame.c --- old/tig-2.5.9/src/blame.c 2024-03-29 20:35:54.000000000 +0100 +++ new/tig-2.5.10/src/blame.c 2024-05-10 19:51:24.000000000 +0200 @@ -128,7 +128,7 @@ if (!view->env->file[0] && opt_file_args && !opt_file_args[1]) { const char *ls_tree_argv[] = { - "git", "ls-tree", "-d", "-z", *view->env->ref ? view->env->ref : view->env->commit, opt_file_args[0], NULL + "git", "ls-tree", "-d", "-z", *view->env->ref ? view->env->ref : "HEAD", opt_file_args[0], NULL }; char buf[SIZEOF_STR] = ""; @@ -457,6 +457,10 @@ open_main_view(view, OPEN_RELOAD); break; + case REQ_VIEW_BLOB: + string_ncopy(view->env->file, blame->commit->filename, strlen(blame->commit->filename)); + return request; + default: return request; } @@ -482,7 +486,10 @@ string_format(view->ref, "%s changed %s", commit->id, commit->filename); } - string_ncopy(view->env->file, commit->filename, strlen(commit->filename)); + if (strcmp(commit->filename, view->env->file)) + string_format(view->env->file_old, "%s", commit->filename); + else + view->env->file_old[0] = '\0'; view->env->lineno = view->pos.lineno + 1; string_ncopy(view->env->text, text, strlen(text)); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tig-2.5.9/src/display.c new/tig-2.5.10/src/display.c --- old/tig-2.5.9/src/display.c 2024-03-29 20:35:54.000000000 +0100 +++ new/tig-2.5.10/src/display.c 2024-05-10 19:51:24.000000000 +0200 @@ -73,25 +73,23 @@ bool ok; if (echo) { + struct io io; char buf[SIZEOF_STR] = ""; - io_run_buf(argv, buf, sizeof(buf), dir, false); - if (*buf) { + ok = io_exec(&io, IO_RD, dir, NULL, argv, IO_RD_WITH_STDERR) && io_read_buf(&io, buf, sizeof(buf), true); + if (*buf) report("%s", buf); - return true; - } else { - report("No output"); - return false; - } + } else if (silent || is_script_executing()) { ok = io_run_bg(argv, dir); } else { + signal(SIGINT, SIG_IGN); clear(); refresh(); endwin(); /* restore original tty modes */ tcsetattr(opt_tty.fd, TCSAFLUSH, opt_tty.attr); - ok = io_run_fg(argv, dir); + ok = io_run_fg(argv, dir, opt_tty.fd); if (confirm || !ok) { if (!ok && *notice) fprintf(stderr, "%s", notice); @@ -104,6 +102,7 @@ fseek(opt_tty.file, 0, SEEK_END); tcsetattr(opt_tty.fd, TCSAFLUSH, opt_tty.attr); set_terminal_modes(); + signal(SIGINT, SIG_DFL); } if (watch_update(WATCH_EVENT_AFTER_COMMAND) && do_refresh) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tig-2.5.9/src/draw.c new/tig-2.5.10/src/draw.c --- old/tig-2.5.9/src/draw.c 2024-03-29 20:35:54.000000000 +0100 +++ new/tig-2.5.10/src/draw.c 2024-05-10 19:51:24.000000000 +0200 @@ -276,10 +276,12 @@ } static bool -draw_filename(struct view *view, struct view_column *column, enum line_type type, const char *filename) +draw_filename(struct view *view, struct view_column *column, const char *filename, mode_t mode) { size_t width = filename ? utf8_width(filename) : 0; bool trim = width >= column->width; + /* Note, type for filename field is independent from line->type. */ + enum line_type type = S_ISDIR(mode) ? LINE_DIRECTORY : LINE_FILE; int column_width = column->width ? column->width : width; if (column->opt.file_name.display == FILENAME_NO) @@ -289,9 +291,9 @@ } static bool -draw_file_size(struct view *view, struct view_column *column, enum line_type type, unsigned long size) +draw_file_size(struct view *view, struct view_column *column, unsigned long size, mode_t mode) { - const char *str = type == LINE_FILE ? mkfilesize(size, column->opt.file_size.display) : NULL; + const char *str = S_ISREG(mode) ? mkfilesize(size, column->opt.file_size.display) : NULL; if (!column->width || column->opt.file_size.display == FILE_SIZE_NO) return false; @@ -517,7 +519,7 @@ continue; case VIEW_COLUMN_FILE_SIZE: - if (draw_file_size(view, column, line->type, column_data.file_size ? *column_data.file_size : 0)) + if (draw_file_size(view, column, column_data.file_size ? *column_data.file_size : 0, mode)) return true; continue; @@ -528,7 +530,7 @@ continue; case VIEW_COLUMN_FILE_NAME: - if (draw_filename(view, column, line->type, column_data.file_name)) + if (draw_filename(view, column, column_data.file_name, mode)) return true; continue; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tig-2.5.9/src/io.c new/tig-2.5.10/src/io.c --- old/tig-2.5.9/src/io.c 2024-03-29 20:35:54.000000000 +0100 +++ new/tig-2.5.10/src/io.c 2024-05-10 19:51:24.000000000 +0200 @@ -340,7 +340,7 @@ bool io_trace(const char *fmt, ...) { - static FILE *trace_out; /* Intensionally leaked. */ + static FILE *trace_out; /* Intentionally leaked. */ va_list args; int retval; @@ -418,6 +418,11 @@ close(pipefds[0]); if (pipefds[1] != -1) close(pipefds[1]); + } else { + if (custom != -1) { + dup2(custom, STDIN_FILENO); + close(custom); + } } if (dir && *dir && chdir(dir) == -1) @@ -431,6 +436,13 @@ putenv(env[i]); } + signal(SIGHUP, SIG_DFL); + signal(SIGINT, SIG_DFL); + signal(SIGPIPE, SIG_DFL); +#ifdef DEBUG + signal(SIGSEGV, SIG_DFL); +#endif + execvp(argv[0], (char *const*) argv); close(STDOUT_FILENO); @@ -463,9 +475,9 @@ } bool -io_run_fg(const char **argv, const char *dir) +io_run_fg(const char **argv, const char *dir, int fd) { - return io_complete(IO_FG, argv, dir, -1); + return io_complete(IO_FG, argv, dir, fd); } bool diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tig-2.5.9/src/main.c new/tig-2.5.10/src/main.c --- old/tig-2.5.9/src/main.c 2024-03-29 20:35:54.000000000 +0100 +++ new/tig-2.5.10/src/main.c 2024-05-10 19:51:24.000000000 +0200 @@ -548,6 +548,7 @@ line->type == LINE_STAT_STAGED || line->type == LINE_STAT_UNTRACKED)) ? OPEN_SPLIT : OPEN_DEFAULT; + struct commit *commit = line->data; switch (request) { case REQ_VIEW_DIFF: @@ -576,6 +577,13 @@ return request; break; + case REQ_VIEW_BLAME: + if (string_rev_is_null(commit->id)) + view->env->ref[0] = 0; + else + string_copy_rev(view->env->ref, commit->id); + return request; + case REQ_REFRESH: load_refs(true); refresh_view(view); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tig-2.5.9/src/status.c new/tig-2.5.10/src/status.c --- old/tig-2.5.9/src/status.c 2024-03-29 20:35:54.000000000 +0100 +++ new/tig-2.5.10/src/status.c 2024-05-10 19:51:24.000000000 +0200 @@ -691,13 +691,13 @@ reset_argv[4] = NULL; } - if (!io_run_fg(reset_argv, repo.exec_dir)) + if (!io_run_fg(reset_argv, repo.exec_dir, -1)) return false; if (status->old.mode == 0 && status->new.mode == 0) return true; } - return io_run_fg(checkout_argv, repo.exec_dir); + return io_run_fg(checkout_argv, repo.exec_dir, -1); } return false; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tig-2.5.9/src/tree.c new/tig-2.5.10/src/tree.c --- old/tig-2.5.9/src/tree.c 2024-03-29 20:35:54.000000000 +0100 +++ new/tig-2.5.10/src/tree.c 2024-05-10 19:51:24.000000000 +0200 @@ -212,7 +212,8 @@ struct tree_state *state = view->private; struct tree_entry *data; struct line *entry, *line; - enum line_type type; + /* Note, type computed here is only used for sorting, not for drawing. */ + enum line_type type = LINE_DEFAULT; char *pos; char *mode; char *id; @@ -238,8 +239,6 @@ type = LINE_FILE; else if (!strncmp(pos, "tree", STRING_SIZE("tree"))) type = LINE_DIRECTORY; - else - type = LINE_DEFAULT; /* 95925677ca47beb0b8cce7c0e0011bcc3f61470f */ id = strchr(pos, ' '); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tig-2.5.9/src/view.c new/tig-2.5.10/src/view.c --- old/tig-2.5.9/src/view.c 2024-03-29 20:35:54.000000000 +0100 +++ new/tig-2.5.10/src/view.c 2024-05-10 19:51:24.000000000 +0200 @@ -851,9 +851,10 @@ * the screen. */ werase(view->win); /* Do not clear the position if it is the first view. */ - if (view->prev && !(flags & (OPEN_RELOAD | OPEN_REFRESH))) + if (view->prev && !(flags & (OPEN_RELOAD | OPEN_REFRESH))) { clear_position(&view->prev_pos); - report_clear(); + report_clear(); + } } else if (view_is_displayed(view)) { redraw_view(view); report_clear(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tig-2.5.9/tig.spec new/tig-2.5.10/tig.spec --- old/tig-2.5.9/tig.spec 2024-03-29 20:35:54.000000000 +0100 +++ new/tig-2.5.10/tig.spec 2024-05-10 19:51:24.000000000 +0200 @@ -3,7 +3,7 @@ Summary: Tig: text-mode interface for git Name: tig -Version: 2.5.9 +Version: 2.5.10 Release: 0%{?dist} License: GPLv2+ Group: Development/Tools