From: Ramkumar Ramachandra Date: Sun, 08 May 2011 07:30:49 GMT Subject: [PATCH v4 0/2] Libify rerere: clear and gc Message-ID: <1304839851-6477-1-git-send-email-artagnon@gmail.com> In-Reply-To: <7vr58b22ny.fsf@alter.siamese.dyndns.org> 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