From: Sebastian Harl Date: Sun, 23 Nov 2014 16:24:44 +0000 (+0100) Subject: patches: Removed bts757692-topo-order: included upstream. X-Git-Tag: tig-2.0.3-1~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=98452084b63e7e6afaeef7f151a94e79434a71f9;p=pkg-tig.git patches: Removed bts757692-topo-order: included upstream. --- diff --git a/debian/changelog b/debian/changelog index 69bbb3f..24b3e66 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,8 +5,10 @@ tig (2.0.3-1) unstable; urgency=medium reporting this (Closes: #757692). * debian/rules: - Manually clean doc/manual.tex. + * debian/patches: + - Removed bts757692-topo-order: included upstream. - -- Sebastian Harl Tue, 04 Nov 2014 21:58:35 +0100 + -- Sebastian Harl Sun, 23 Nov 2014 17:24:40 +0100 tig (2.0.2-2) unstable; urgency=medium diff --git a/debian/patches/bts757692-topo-order b/debian/patches/bts757692-topo-order deleted file mode 100644 index 53b86e0..0000000 --- a/debian/patches/bts757692-topo-order +++ /dev/null @@ -1,104 +0,0 @@ -Description: Force --topo-order when graph is enabled and no commit order is set - This is what `git log --graph` does to ensure that parent commits comes - before child commits. -Author: Jonas Fonseca -Origin: upstream -Bug: https://github.com/jonas/tig/issues/238 -Applied-Upstream: https://github.com/jonas/tig/commit/adb362b ---- a/doc/tigrc.5.adoc -+++ b/doc/tigrc.5.adoc -@@ -234,6 +234,8 @@ - Commit ordering using the default (chronological reverse) order, - topological order, date order or reverse order. The default order is - used when the option is set to false, and topo order when set to true. -+ Note that topological order is automatically used in the main view when -+ the commit graph is enabled and the commit order is set to the default. - - 'ignore-case' (bool):: - ---- a/include/tig/options.h -+++ b/include/tig/options.h -@@ -167,6 +167,7 @@ - - const char *ignore_space_arg(); - const char *commit_order_arg(); -+const char *commit_order_arg_with_graph(bool with_graph); - const char *diff_context_arg(); - const char *show_notes_arg(); - ---- a/src/main.c -+++ b/src/main.c -@@ -181,33 +181,43 @@ - return with_reflog; - } - -+main_with_graph(struct view *view, enum open_flags flags) -+{ -+ struct view_column *column = get_view_column(view, VIEW_COLUMN_COMMIT_TITLE); -+ -+ if (open_in_pager_mode(flags)) -+ return FALSE; -+ -+ return column && column->opt.commit_title.graph && -+ opt_commit_order != COMMIT_ORDER_REVERSE; -+} -+ - static bool - main_open(struct view *view, enum open_flags flags) - { -+ bool with_graph = main_with_graph(view, flags); - const char *pretty_custom_argv[] = { -- GIT_MAIN_LOG_CUSTOM(encoding_arg, commit_order_arg(), "%(cmdlineargs)", "%(revargs)", "%(fileargs)") -+ GIT_MAIN_LOG_CUSTOM(encoding_arg, commit_order_arg_with_graph(with_graph), -+ "%(cmdlineargs)", "%(revargs)", "%(fileargs)") - }; - const char *pretty_raw_argv[] = { -- GIT_MAIN_LOG_RAW(encoding_arg, commit_order_arg(), "%(cmdlineargs)", "%(revargs)", "%(fileargs)") -+ GIT_MAIN_LOG_RAW(encoding_arg, commit_order_arg_with_graph(with_graph), -+ "%(cmdlineargs)", "%(revargs)", "%(fileargs)") - }; - struct main_state *state = view->private; - const char **main_argv = pretty_custom_argv; -- struct view_column *column; - enum watch_trigger changes_triggers = WATCH_NONE; - - if (opt_show_changes && repo.is_inside_work_tree) - changes_triggers |= WATCH_INDEX; - -- column = get_view_column(view, VIEW_COLUMN_COMMIT_TITLE); -- state->with_graph = column && column->opt.commit_title.graph && -- opt_commit_order != COMMIT_ORDER_REVERSE; -+ state->with_graph = with_graph; - - if (opt_rev_argv && main_check_argv(view, opt_rev_argv)) - main_argv = pretty_raw_argv; - - if (open_in_pager_mode(flags)) { - changes_triggers = WATCH_NONE; -- state->with_graph = FALSE; - } - - /* This calls reset_view() so must be before adding changes commits. */ ---- a/src/options.c -+++ b/src/options.c -@@ -128,6 +128,20 @@ - return commit_order_arg_map[opt_commit_order].name; - } - -+const char * -+commit_order_arg_with_graph(bool with_graph) -+{ -+ enum commit_order commit_order = opt_commit_order; -+ -+ if (with_graph && -+ commit_order != COMMIT_ORDER_TOPO && -+ commit_order != COMMIT_ORDER_DATE && -+ commit_order != COMMIT_ORDER_AUTHOR_DATE) -+ commit_order = COMMIT_ORDER_TOPO; -+ -+ return commit_order_arg_map[commit_order].name; -+} -+ - /* Use --show-notes to support Git >= 1.7.6 */ - #define NOTES_ARG "--show-notes" - #define NOTES_EQ_ARG NOTES_ARG "=" diff --git a/debian/patches/series b/debian/patches/series deleted file mode 100644 index 47fd381..0000000 --- a/debian/patches/series +++ /dev/null @@ -1 +0,0 @@ -bts757692-topo-order