kblincoe / VisualGit_SE701_2019_1

1 stars 0 forks source link

Closes #17 - Add line numbers to viewing code changes #141

Closed Jess-Alcantara closed 5 years ago

Jess-Alcantara commented 5 years ago

Issue

Closes #17

Description

Added line number for viewing code changes. View changes by opening a repository and selecting a file to view differences made locally.

Screen Shot 2019-03-27 at 12 15 19 PM

Design Decisions

Decided to only show new line numbers so that finding where they made the changes are easier to find. Deleted lines, i.e. those without line numbers, display a "-" instead of a number. Added lines show with the new line number. NOTE: modifications to existing lines currently show as a deletion then addition

Tests

No automated tests yet as the test suite has not been set up. Manual tests: select a file and view if...


Jess-Alcantara commented 5 years ago

Thanks for having a look! I just had a try at reproducing the issue you've said and it seems to happen when you make an addition or deletion to the end of the file. It should not be saying the stuff after line 288, will look at providing checks to remove it.

Jess-Alcantara commented 5 years ago

Also realised that spaces between the line number and code should be consistent, so will work on a fix for that too.

Jess-Alcantara commented 5 years ago

Rebased off master and pushed my new fixes - not sure why these other commits showed up though or why I had to merge my own branch into my own branch. Took a while to figure out how to work with the callbacks but it now: