From: Ramkumar Ramachandra <artagnon@gmail.com>
To: Git List <git@vger.kernel.org>
Cc: Daniel Barkalow <barkalow@iabervon.org>,
Jonathan Nieder <jrnieder@gmail.com>,
Junio C Hamano <gitster@pobox.com>
Subject: [PATCH v4 0/2] Libify rerere: clear and gc
Date: Sun, 8 May 2011 13:00:49 +0530 [thread overview]
Message-ID: <1304839851-6477-1-git-send-email-artagnon@gmail.com> (raw)
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
next prev parent reply other threads:[~2011-05-08 7:31 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-11 8:51 [PATCH] rerere: Expose an API corresponding to 'clear' functionality Ramkumar Ramachandra
2011-04-11 18:36 ` Junio C Hamano
2011-04-13 13:18 ` [PATCH v2] " Ramkumar Ramachandra
2011-04-13 20:38 ` Jonathan Nieder
2011-05-06 6:36 ` [PATCH v3] " Ramkumar Ramachandra
2011-05-06 16:51 ` Junio C Hamano
2011-05-07 13:17 ` Ramkumar Ramachandra
2011-05-08 7:30 ` Ramkumar Ramachandra [this message]
2011-05-08 7:30 ` [PATCH v4 1/2] usage: Introduce error_errno corresponding to die_errno Ramkumar Ramachandra
2011-05-08 9:46 ` Ramkumar Ramachandra
2011-05-08 18:10 ` Junio C Hamano
2011-05-08 7:30 ` [PATCH v4 2/2] rerere: Libify "rerere clear" and "rerere gc" Ramkumar Ramachandra
2011-05-08 20:06 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1304839851-6477-1-git-send-email-artagnon@gmail.com \
--to=artagnon@gmail.com \
--cc=barkalow@iabervon.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=jrnieder@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).