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