Added the patch as file.

** Patch added: "revision-view-no-color.patch"
   http://launchpadlibrarian.net/45510077/revision-view-no-color.patch

** Description changed:

  Binary package hint: gitg
  
  Since I've got "ui = always" in the [color]-section in my .gitconfig all
  output contains terminal control sequencies and therefore screws up the
  revision diff view.
  
- To fix this, apply the following patch:
- 
- --- old-revision-view.c       2010-04-26 15:22:23.000000000 +0200
- +++ gitg-revision-view.c      2010-04-26 15:06:42.000000000 +0200
- @@ -714,19 +714,19 @@
-               case 't':
-                       gitg_repository_run_commandv(self->priv->repository, 
self->priv->diff_runner, NULL,
-                                                       "diff", "--cached", 
"-M", "--pretty=format:%s%n%n%b",
- -                                                     "--encoding=UTF-8", 
NULL);
- +                                                     "--encoding=UTF-8", 
"--no-color", NULL);
-               break;
-               case 'u':
-                       gitg_repository_run_commandv(self->priv->repository, 
self->priv->diff_runner, NULL,
-                                                       "diff", "-M", 
"--pretty=format:%s%n%n%b",
- -                                                     "--encoding=UTF-8", 
NULL);
- +                                                     "--encoding=UTF-8", 
"--no-color", NULL);
-               break;
-               default:
-               {
-                       gchar *hash = 
gitg_revision_get_sha1(self->priv->revision);
-                       gitg_repository_run_commandv(self->priv->repository, 
self->priv->diff_runner, NULL,
-                                                       "show", "-M", 
"--pretty=format:%s%n%n%b", 
- -                                                     "--encoding=UTF-8", 
hash, NULL);
- +                                                     "--encoding=UTF-8", 
"--no-color", hash, NULL);
-  
-                       g_free(hash);
-               }
+ To fix this, apply the attached patch.

** Description changed:

  Binary package hint: gitg
  
  Since I've got "ui = always" in the [color]-section in my .gitconfig all
  output contains terminal control sequencies and therefore screws up the
  revision diff view.
  
- To fix this, apply the attached patch.
+ A fix is attached.

** Tags added: git gitgd gnome

** Tags added: gitg
** Tags removed: gitgd

-- 
Colored diff in git config screws up diff view
https://bugs.launchpad.net/bugs/570152
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to