Commit d64b9ce
authored
patch: tidy object data (briandfoy#945)
* The original options hash from the Patch object is blessed again as Patch::Context (or other subclass)
* Storing the same data again in $self->{options} is not useful, and $self->{options} was not being accessed
* The comment about $self->{o_pos} indicates it's also dead code, and I don't see any references to it
* As a regression test I processed a "normal" diff with "perl patch -n a.file a.diff"1 parent 493a57e commit d64b9ce
1 file changed
+1
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
| 360 | + | |
364 | 361 | | |
365 | 362 | | |
366 | | - | |
367 | 363 | | |
368 | 364 | | |
369 | 365 | | |
| |||
0 commit comments