Code

patches: Removed bts757692-topo-order: included upstream.
authorSebastian Harl <sh@tokkee.org>
Sun, 23 Nov 2014 16:24:44 +0000 (17:24 +0100)
committerSebastian Harl <sh@tokkee.org>
Sun, 23 Nov 2014 16:24:44 +0000 (17:24 +0100)
debian/changelog
debian/patches/bts757692-topo-order [deleted file]
debian/patches/series [deleted file]

index 69bbb3fab273d61960148721ba86040da9611537..24b3e663cff06db5f4432e07a4c2b5a8e6ce84aa 100644 (file)
@@ -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 <tokkee@debian.org>  Tue, 04 Nov 2014 21:58:35 +0100
+ -- Sebastian Harl <tokkee@debian.org>  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 (file)
index 53b86e0..0000000
+++ /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 <jonas.fonseca@gmail.com>
-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 (file)
index 47fd381..0000000
+++ /dev/null
@@ -1 +0,0 @@
-bts757692-topo-order