Paulo Bu
a481fad7ca
Remove timestamps from filenames in unified diffs
2016-10-25 13:48:00 +02:00
Rodrigo Fernandes
2a18c91e70
Add another way to recognize binary file names
2016-10-08 15:55:30 +01:00
Rodrigo Fernandes
ed8d33930d
Fix git diff with renames and hunk headers
...
When we have the file names we consider that the file is already past
the hunk header (@@) and since the renames were setting the names
before the diff was confused.
To fix this I kind of hacked a solution that only uses the rename
file paths if there is no hunk header comming.
We need to find a better way to decide when to start new hunk, finish
files etc
2016-09-02 17:45:35 +01:00
Rodrigo Fernandes
e9e3d928ea
Only log failed hunk header parse if line starts with @@
2016-07-12 18:44:09 +01:00
Rodrigo Fernandes
9bbc87ae89
Fix parsing of binary files
2016-07-12 16:18:42 +01:00
Rodrigo Fernandes
2f53bf777e
Use ESLint instead of JSCS
2016-07-12 13:47:29 +01:00
Rodrigo Fernandes
f2858f6c45
Fix parsing in cases where body lines can be confused with header lines
2016-06-28 22:15:03 +01:00
Rodrigo Fernandes
7c79cc32db
Fix parsing body lines starting with --- and +++
2016-06-27 21:13:25 +01:00
Rodrigo Fernandes
3cba36f959
Fix tests in node 0.12
2016-05-06 23:11:00 +01:00
Rodrigo Fernandes
cb145eddf6
Add support for parsing unified diffs
...
* Refactor code to separate parser parts
* Add test for unified example
2016-05-06 23:02:05 +01:00
Rodrigo Fernandes
e35b80a478
Add more tests for line by line diff generation
2016-04-25 16:51:27 +01:00
Rodrigo Fernandes
3fd5eb86bb
Fix parsing of line numbers
2016-04-25 16:20:40 +01:00
Rodrigo Fernandes
374265354e
Add more tests and fix index parsing
2016-04-25 12:17:04 +01:00
Rodrigo Fernandes
465dde689a
Fix repeated variable name in same scope (thanks Codacy)
2016-02-24 00:13:43 +00:00
Rodrigo Fernandes
9205e5e0a1
Fix filename parsing on filenames with tabs
...
* Why would someone create files with tabs?
2016-02-23 21:40:56 +00:00
Rodrigo Fernandes
e44b2a2885
Fix filename parsing with special characters and prefixes
...
* Add support for diffs with prefixes through configuration
* Fix parsing of filenames with special chars
2016-02-23 18:21:34 +00:00
Rodrigo Fernandes
269a6268c4
Fix parsing on Windows
...
Replace windows EOL by Unix EOL
2016-02-06 18:50:47 +00:00
Rafael Cortês
f7bc1552e5
Fix line count when EOF is added to file
...
Removes '\\ No newline at end of file' information from the diff lines.
The test case is based on Bitbucket's diff attached to issue #49 .
2016-01-16 21:53:54 +00:00
Rodrigo Fernandes
8d86a15d69
Clean code and force code style
...
Since more people are contributing to the code Codacy will help
keep it consistent and easy to maintain, by suggesting improvements
2015-12-20 22:55:09 +00:00
Wolfgang Illmeyer
8c059d30da
Add changetype constant, fix css color for changes
2015-12-06 22:45:58 +01:00
Paulo Bu
c1ea2cb3b2
Extracts variables out of a loop
2015-10-20 10:55:22 +02:00
Paulo Bu
a6efdd0f6a
Better regexp to handle unified diff header
2015-10-05 20:45:40 +02:00
Rodrigo Fernandes
861459931b
fix new and delete line identification
...
* add different prefixes for simple and combined diffs
2015-08-08 01:56:50 +01:00
Rodrigo Fernandes
de13e9506c
use webpack for the browser
...
* add webpack bundling
* clean bower dependencies since we are using webpack
* add jscs node style support
2015-08-08 01:11:35 +01:00
Rodrigo Fernandes
6514ac7477
clean project, better module exposing and documentation
...
* use native JS in example instead of jQuery
* better module exposing now using exports, module.export, self, window, global and this
* add example link to bower and npm definition
* add documentation on how to highlight
2015-07-19 22:08:17 +01:00
Rodrigo Fernandes
d64f8a2d79
diff parser rules matching beginning of line
...
* diffs inside the diff where matching random line types
2015-07-11 23:38:08 +01:00
Rodrigo Fernandes
89b9b3926d
copy, rename and friends
2015-04-20 00:24:19 +01:00
Rodrigo Fernandes
0662960fae
compatibility with node code
2015-04-12 02:59:54 +01:00
Rodrigo Fernandes
2015436448
major refactor with classes
2015-04-12 00:09:05 +01:00