Patch Viewer

Name Patch Viewer
Version 0.9.0
Product Versions 3.8
Author(s) Brock Janiczak
Homepage  
Price Free
License BSD
Download JAR PatchView-0.9.0.jar
Download Source PatchView-0.9.0.zip

Description

The patch viewer plugin allows you to view unified-diff attachments (patches) as a colour coded side by side differences instead of a stream of changed lines. This plugin was inspired by the attachment viewer in Bugzilla.

Usage

Click on the 'Patch' tab on the issue detail screen to review the list of patches attached to an issue. This panel will only be visible if there is at least one patch attached to the issue. The panel will then show the list of patches and the user that attached them to the issue. Clicking on the attachment's name will open the patch viewer. The plugin will scan each attachment on the issue with a 'text' mime type to determine if it is a patch, or a plain text file. This calculation will only be done once and then stored against the attachment.

The patch viewer shows you the contents of the patch in a pretty side by side format. The screen is split into sections based on the file and the change region (change hunk) in the file. Each line in the change hunk will be coloured to indicate the type of change:

  • Blue the line was changed
  • Green the line was added
  • Red the line was deleted

The entire change hunk will be shown in green/red if it was added/deleted and there will be no 'other side'.

Lines that are for context only will be displayed with a white background

Version History

0.9.0 Initial Version

TODO

  • re-implement the patch viewer as a servlet
  • Use CSS instead of inline styles

Screenshots

Labels

codegeist_2007_jira codegeist_2007_jira Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.