summaryrefslogtreecommitdiff
path: root/src/revwalk.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2014-03-25 10:33:18 -0700
committerEdward Thomson <ethomson@edwardthomson.com>2014-03-25 10:33:18 -0700
commit451aaf866af2d974380a2d141626f450212f40f2 (patch)
tree780c2db94ab7f589c646fa3fb05375031bdc830c /src/revwalk.h
parentf210cb5b1442f82e2f930909d8430f7cc6661c5f (diff)
parent34ffe22344d32d1574dc33d3c3d20556fdb152a7 (diff)
downloadlibgit2-451aaf866af2d974380a2d141626f450212f40f2.tar.gz
Merge pull request #2181 from anuraggup/hide_cb
Callback function to hide commit and its parents in revision walker
Diffstat (limited to 'src/revwalk.h')
-rw-r--r--src/revwalk.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/revwalk.h b/src/revwalk.h
index a0ce1ae86..a0654f3e5 100644
--- a/src/revwalk.h
+++ b/src/revwalk.h
@@ -39,6 +39,10 @@ struct git_revwalk {
/* merge base calculation */
git_commit_list_node *one;
git_vector twos;
+
+ /* hide callback */
+ git_revwalk_hide_cb hide_cb;
+ void *hide_cb_payload;
};
git_commit_list_node *git_revwalk__commit_lookup(git_revwalk *walk, const git_oid *oid);