From 1ba0f04099bdd06804daf0e850f23558b742b17441536e7928a6d4d68ab779f0 Mon Sep 17 00:00:00 2001 From: Pascal Bleser Date: Fri, 11 May 2012 20:49:56 +0000 Subject: [PATCH] 1.0 OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/tig?expand=0&rev=19 --- tig-0.18.tar.bz2 | 3 --- tig-1.0.tar.gz | 3 +++ tig-remove_build_timestamp.patch | 20 ++++++++++++++ tig.changes | 46 ++++++++++++++++++++++++++++++++ tig.spec | 8 +++--- 5 files changed, 74 insertions(+), 6 deletions(-) delete mode 100644 tig-0.18.tar.bz2 create mode 100644 tig-1.0.tar.gz create mode 100644 tig-remove_build_timestamp.patch diff --git a/tig-0.18.tar.bz2 b/tig-0.18.tar.bz2 deleted file mode 100644 index e0ea9d9..0000000 --- a/tig-0.18.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2eb8b2fef985b4a543e38bd39ce96882f07ee29fa35959d5cd52aa5126e19efd -size 130730 diff --git a/tig-1.0.tar.gz b/tig-1.0.tar.gz new file mode 100644 index 0000000..9ca12db --- /dev/null +++ b/tig-1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1ecadef82027a94a6489e84a5c02fd5c0d4977bcb13ba2df0a52cca05ad6f71 +size 188543 diff --git a/tig-remove_build_timestamp.patch b/tig-remove_build_timestamp.patch new file mode 100644 index 0000000..5b761b7 --- /dev/null +++ b/tig-remove_build_timestamp.patch @@ -0,0 +1,20 @@ +--- tig.c.orig 2012-05-11 22:47:39.111556938 +0200 ++++ tig.c 2012-05-11 22:47:58.362556253 +0200 +@@ -3399,7 +3399,7 @@ + break; + + case REQ_SHOW_VERSION: +- report("tig-%s (built %s)", TIG_VERSION, __DATE__); ++ report("tig-%s", TIG_VERSION); + return TRUE; + + case REQ_SCREEN_REDRAW: +@@ -7682,7 +7682,7 @@ + */ + + static const char usage[] = +-"tig " TIG_VERSION " (" __DATE__ ")\n" ++"tig " TIG_VERSION "\n" + "\n" + "Usage: tig [options] [revs] [--] [paths]\n" + " or: tig show [options] [revs] [--] [paths]\n" diff --git a/tig.changes b/tig.changes index 7129a7e..bb33e12 100644 --- a/tig.changes +++ b/tig.changes @@ -1,3 +1,49 @@ +------------------------------------------------------------------- +Fri May 11 20:46:32 UTC 2012 - pascal.bleser@opensuse.org + +- add patch to remove build timestamps +- update to 1.0: + * Use git-log(1)s default commit ordering. The old behavior can be + restored by adding `set commit-order = topo` to ~/.tigrc. + * Support staging of single lines. Bound to '1' default. (GH #21) + * Use + to open the initial view at an arbitrary line. (GH #20) + * Add show-notes ~/.tigrc option. Notes are displayed by default. + * Support jumping to specific SHAs in the main view. + * Decorate replaced commits. + * Display line numbers in main view. + * Colorize binary diff stats. (GH #17) + * Custom colorization of lines matching a string prefix (GH #16). + Example configuration: color "Reported-by:" green default + * Use git's color settings for the main, status and diff views. + Put `set read-git-colors = no` in ~/.tigrc to disable. + * Handle editor options with multiple arguments. (GH #12) + * Show filename when running tig blame with copy detection. (GH #19) + * Use 'source ' command to load additional files from ~/.tigrc + * User-defined commands prefixed with '@' are run with no console + output, e.g. bind generic 3 !@rm sys$command + * Make display of space changes togglable in the diff and stage view. + Bound to 'W' by default. + * Use per-file encoding specified in gitattributes(5) for blobs and + unstaged files. + * Obsolete commit-encoding option and pass --encoding=UTF-8 to revision + commands. + * Main view: show uncommitted changes as staged/unstaged commits. + Can be disabled by putting `set show-changes = no` in ~/.tigrc. + * Add %(prompt) external command variable, which will prompt for the + argument value. + * Log information about git commands when the TIG_TRACE environment + variable is set. Example: `TIG_TRACE=/tmp/tig.log tig` + * Branch view: Show the title of the last commit. + * Increase the author auto-abbreviation threshold to 10. (GH #49) + * For old commits show number of years in relative dates. (GH #50) + * Fix navigation behavior when going from branch to main view. (GH #38) + * Fix segfault when sorting the tree view by author name. + * Fix diff stat navigation for unmodified files with stat changes. + * Show branches/refs which names are a substring of the current branch. + * Stage view: fix off-by-one error when jumping to a file in a diff + with only one file. + * Fix diff-header colorization. (GH #15) + ------------------------------------------------------------------- Thu Feb 16 13:24:36 UTC 2012 - saschpe@suse.de diff --git a/tig.spec b/tig.spec index 01c5b53..b039749 100644 --- a/tig.spec +++ b/tig.spec @@ -17,14 +17,15 @@ Name: tig -Version: 0.18 +Version: 1.0 Release: 0 Summary: An ncurses-based text-mode interface for git License: GPL-2.0+ Group: Development/Tools/Version Control Url: http://jonas.nitro.dk/tig/ -Source0: tig-%{version}.tar.bz2 +Source0: http://jonas.nitro.dk/tig/releases/tig-%{version}.tar.gz Patch0: tig-fix-build.diff +Patch1: tig-remove_build_timestamp.patch BuildRequires: ncurses-devel Requires: git-core BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -42,6 +43,7 @@ showing the commit with the log message, diffstat, and the diff. %prep %setup -q %patch0 +%patch1 %build CC=gcc @@ -57,7 +59,7 @@ install -D -m0644 tigmanual.7 "%{buildroot}/%{_mandir}/man7/tigmanual.7" %files %defattr(-,root,root) -%doc BUGS COPYING NEWS README TODO +%doc BUGS COPYING NEWS README %{_bindir}/tig %doc %{_mandir}/man1/tig.1%{ext_man} %doc %{_mandir}/man5/tigrc.5%{ext_man}