Changeset 25885 in project
- Timestamp:
- 02/10/12 07:16:08 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wiki/eggref/4/git
r25867 r25885 9 9 Bindings to the [[http://libgit2.github.com|libgit2]] library. 10 10 11 This library has been written and tested against Chicken 4. 6 & 4.7 and libgit212 0.1 5.0. If you encounter problems, check your versions.11 This library has been written and tested against Chicken 4.7 and libgit2 12 0.16.0. If you encounter problems, check your versions. 13 13 14 14 The source for this egg is available at [[http://github.com/evhan/chicken-git]]. … … 447 447 Writes the {{tree-builder}}'s tree to the given {{repository}}, modifying the 448 448 on-disk repository on success. The resulting {{tree}} is returned. 449 450 ==== Tree Diff 451 452 <record>tree-diff</record> 453 <procedure>(tree-diff? obj) => boolean</procedure> 454 455 A {{tree-diff}} is the difference of a single file across two Git {{tree}}s. 456 Each tree-diff has a path, status, and a pair of {{oid}}s and Unix file 457 attributes (for the older & newer file, respectively). 458 459 <procedure>(tree-diff tree1 tree2) => list</procedure> 460 461 Compares two {{tree}}s, returning a list of {{tree-diff}} objects for every 462 difference between them. 463 464 <procedure>(tree-diff-path tree-diff)</procedure> 465 466 Returns the path of the given {{tree-diff}}, relative to the repository's 467 root. 468 469 <procedure>(tree-diff-status tree-diff) => symbol</procedure> 470 471 Returns a symbol representing the diff status of a {{tree-diff}}, which will be 472 one of {{added}}, {{deleted}}, or {{modified}}. 473 474 <procedure>(tree-diff-old-oid tree-diff) => oid</procedure> 475 <procedure>(tree-diff-new-oid tree-diff) => oid</procedure> 476 477 Returns the older or newer {{oid}} of the given {{tree-diff}}. 478 479 <procedure>(tree-diff-old-attr tree-diff) => int</procedure> 480 <procedure>(tree-diff-new-attr tree-diff) => int</procedure> 481 482 Returns the older or newer Unix file attributes of the given {{tree-diff}}. 449 483 450 484 ==== Status … … 469 503 is both {{index/modified}} and {{worktree/modified}}) this function will return 470 504 the empty list. 505 506 <procedure>(file-ignored? repository path) => boolean</procedure> 507 508 Returns a boolean indicating whether the given {{path}} in {{repository}} is 509 ignored by Git or not. 471 510 472 511 ==== Index
Note: See TracChangeset
for help on using the changeset viewer.