Changeset 25885 in project


Ignore:
Timestamp:
02/10/12 07:16:08 (9 years ago)
Author:
evhan
Message:

git: update for libgit2 v0.16.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/git

    r25867 r25885  
    99Bindings to the [[http://libgit2.github.com|libgit2]] library.
    1010
    11 This library has been written and tested against Chicken 4.6 & 4.7 and libgit2
    12 0.15.0. If you encounter problems, check your versions.
     11This library has been written and tested against Chicken 4.7 and libgit2
     120.16.0. If you encounter problems, check your versions.
    1313
    1414The source for this egg is available at [[http://github.com/evhan/chicken-git]].
     
    447447Writes the {{tree-builder}}'s tree to the given {{repository}}, modifying the
    448448on-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
     455A {{tree-diff}} is the difference of a single file across two Git {{tree}}s.
     456Each tree-diff has a path, status, and a pair of {{oid}}s and Unix file
     457attributes (for the older & newer file, respectively).
     458
     459<procedure>(tree-diff tree1 tree2) => list</procedure>
     460
     461Compares two {{tree}}s, returning a list of {{tree-diff}} objects for every
     462difference between them.
     463
     464<procedure>(tree-diff-path tree-diff)</procedure>
     465
     466Returns the path of the given {{tree-diff}}, relative to the repository's
     467root.
     468
     469<procedure>(tree-diff-status tree-diff) => symbol</procedure>
     470
     471Returns a symbol representing the diff status of a {{tree-diff}}, which will be
     472one 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
     477Returns 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
     482Returns the older or newer Unix file attributes of the given {{tree-diff}}.
    449483
    450484==== Status
     
    469503is both {{index/modified}} and {{worktree/modified}}) this function will return
    470504the empty list.
     505
     506<procedure>(file-ignored? repository path) => boolean</procedure>
     507
     508Returns a boolean indicating whether the given {{path}} in {{repository}} is
     509ignored by Git or not.
    471510
    472511==== Index
Note: See TracChangeset for help on using the changeset viewer.