vendor/libgit2/include/git2/revwalk.h in rugged-0.27.10.1 vs vendor/libgit2/include/git2/revwalk.h in rugged-0.28.0

- old
+ new

@@ -23,19 +23,19 @@ /** * Flags to specify the sorting which a revwalk should perform. */ typedef enum { /** - * Sort the output with the same default time-order method from git. - * This is the default sorting for new walkers. + * Sort the output with the same default method from `git`: reverse + * chronological order. This is the default sorting for new walkers. */ GIT_SORT_NONE = 0, /** - * Sort the repository contents in topological order (parents before - * children); this sorting mode can be combined with time sorting to - * produce git's "time-order". + * Sort the repository contents in topological order (no parents before + * all of its children are shown); this sorting mode can be combined + * with time sorting to produce `git`'s `--date-order``. */ GIT_SORT_TOPOLOGICAL = 1 << 0, /** * Sort the repository contents by commit time; @@ -272,15 +272,15 @@ * then this commit and its parents will be hidden. * * @param commit_id oid of Commit * @param payload User-specified pointer to data to be passed as data payload */ -typedef int(*git_revwalk_hide_cb)( +typedef int GIT_CALLBACK(git_revwalk_hide_cb)( const git_oid *commit_id, void *payload); /** - * Adds a callback function to hide a commit and its parents + * Adds, changes or removes a callback function to hide a commit and its parents * * @param walk the revision walker * @param hide_cb callback function to hide a commit and its parents * @param payload data payload to be passed to callback function */