22 Commits

Author SHA1 Message Date
Nico von Geyso
d8bb184a31 diff refactorization 2013-03-11 18:10:29 +01:00
Nico von Geyso
86b063fbd0 fixed assert for diff.find_similiar test 2013-03-04 19:32:12 +01:00
Nico von Geyso
da4abb78cb added test data for diff.find_similiar 2013-03-04 18:37:45 +01:00
Nico von Geyso
204fbd9cbb diff - use generator instead of list 2013-03-04 16:37:59 +01:00
Nico von Geyso
a19a3d2515 diff - use old fashioned iterators instead of callback based ones 2013-03-04 10:39:44 +01:00
J. David Ibáñez
29ce23c0d5 Update copyright 2013-03-02 12:16:16 +01:00
J. David Ibáñez
a96d494747 Coding style
Including:

- Lines longer than 79 chars
- Spaces at the end of line
- Wrong indentation
- Comma not followed by an space
- C++ style comments: //
2013-03-02 11:40:42 +01:00
delanne
0406841533 - thanks to Martin R. Hufsky for the patch for git_diff_find_similar
- I updated the unittest (they failed with the patch), and added a short unittest which emulates --find-copies-harder
2012-11-26 12:18:57 +01:00
delanne
783025d327 Fix: "The opt variable is not used in the loop" 2012-11-09 14:55:20 +01:00
delanne
0b537bf780 - add option flags for tree.diff
- add a testcase test_diff_tree_opts
 - update testrepo.git
 - update existing testcases
2012-10-31 12:11:18 +01:00
W. Trevor King
477e48ef6c test_diff: hunk.old_lines should be 1 in test_diff_tree and test_diff_merge.
In both cases, the file contents change from 'X contents\n' to 'X
contents 2\n' (where 'X' is 'a' or 'b').  This means were removing one
line and adding another.

I'm not sure how this test was passing against libgit2 v0.17.0, so I
may be missing something important.
2012-09-13 16:30:21 -04:00
Carlos Martín Nieto
f3dab28082 diff: add old and new OID values to Hunk
These can be important, and are necessary to create a patch from this
data.
2012-08-15 20:37:43 +02:00
Carlos Martín Nieto
11d0c9a30f diff: expose the hunk header
We can rebuild it from the data we already have, but this will allow
us to get the function headers in it once the library supports it.
2012-08-15 20:07:49 +02:00
J. David Ibáñez
edcd803e7e Remove the __authors__ var from py files 2012-07-18 12:12:04 +02:00
J. David Ibáñez
6195491596 Add/update copyright header of each file
And update my email address.
2012-07-18 12:07:17 +02:00
J. David Ibáñez
ec8047a8c5 Fix errors detected by pyflakes 2012-06-18 11:36:27 -03:00
Christian Boos
38d5bf03ad tests: new fancy asserts are for Python 2.7 only 2012-06-06 15:58:07 +02:00
Petr Hosek
d054788d19 Synchronized with upstream 2012-05-30 20:43:26 +01:00
Nico von Geyso
ade2e5812c support for diff against workdir or index
Added missing support for a diff against workdir or an index.
The latter one differs from `git diff HEAD` because git itself
does a merge of workdir and index (see docs of git_diff_workdir_to_tree).
2012-05-30 07:58:31 +02:00
Petr Hosek
c06e10e67e Support for diff merge operation added 2012-05-29 17:41:07 +01:00
Nico von Geyso
3bb00107d2 added old and new file path for hunks 2012-05-25 10:35:39 +02:00
Nico von Geyso
2a49eadc57 added some tests for diff 2012-05-24 19:10:00 +02:00