Hi, This is an alternate version of the v3 patch: Instead of exposing unlink_rr_item, I have chosen to libify "rerere gc" in order to libify "rerere clear", and it may be argued that this is a pleasant side-effect. I've also included another patch to replace the "die_errno" call with a new "error_errno" call, and I hope this will be used in other places as well. Note one more subtle change: I've chosen to pass "flags" as an argument to both functions for the sake of consistency; if and when rerere grows more command-line options, "flags" can be replaced by a struct containing those parsed options. Cons: This patch is much larger than v3. Thanks to: Junio and Jonathan. Ramkumar Ramachandra (2): usage: Introduce error_errno corresponding to die_errno rerere: Libify "rerere clear" and "rerere gc" builtin/rerere.c | 81 ++----------------------------------------- git-compat-util.h | 1 + rerere.c | 99 +++++++++++++++++++++++++++++++++++++++++++++++++++++ rerere.h | 2 + usage.c | 10 +++++ 5 files changed, 116 insertions(+), 77 deletions(-) -- 1.7.5.GIT -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html