[Bug 1856246] [NEW] gitk's "Markup words" and "Color words" modes incorrectly display patches that contains angle brackets

Nils Schimmelmann 1856246 at bugs.launchpad.net
Thu Dec 12 21:30:22 UTC 2019


Public bug reported:


How to reproduce the bug, first create a patch with the following "git diff --word-diff=plain" diff.

    --- a/bug.txt
    +++ b/bug.txt
    @@ -1,2 +1,2 @@
    [-x-]{+z+} < 1
    [-y-]{+w+} > 2

Use gitk and switch into "Markup words" or "Color words" mode (e.g.
"gitk --color-words -- bug.txt"), and then select one of the radio
buttons. You will see:

  * "Diff" shows bogus removal on 1st line and bogus addition on 2nd line.
  * "Old version" cuts off at right angle bracket.
  * "New Version" cuts off at left angle bracket.

** Affects: git (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: gitk

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to git in Ubuntu.
https://bugs.launchpad.net/bugs/1856246

Title:
  gitk's "Markup words" and "Color words" modes incorrectly display
  patches that contains angle brackets

Status in git package in Ubuntu:
  New

Bug description:
  
  How to reproduce the bug, first create a patch with the following "git diff --word-diff=plain" diff.

      --- a/bug.txt
      +++ b/bug.txt
      @@ -1,2 +1,2 @@
      [-x-]{+z+} < 1
      [-y-]{+w+} > 2

  Use gitk and switch into "Markup words" or "Color words" mode (e.g.
  "gitk --color-words -- bug.txt"), and then select one of the radio
  buttons. You will see:

    * "Diff" shows bogus removal on 1st line and bogus addition on 2nd line.
    * "Old version" cuts off at right angle bracket.
    * "New Version" cuts off at left angle bracket.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/git/+bug/1856246/+subscriptions



More information about the foundations-bugs mailing list