Re: [PATCH] shrink git-shell by avoiding redundant dependencies
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:50
Dmitry Potapov [off-list ref] writes:
On Fri, Jun 27, 2008 at 02:55:32PM -0700, Junio C Hamano wrote:quoted
Dmitry Potapov [off-list ref] writes:quoted
diff --git a/abspath.c b/abspath.c new file mode 100644 index 0000000..4becedf --- /dev/null +++ b/abspath.c@@ -0,0 +1,80 @@ +/* + * I'm tired of doing "vsnprintf()" etc just to open a + * file, so here's a "return static buffer with printf" + * interface for paths. + * + * It's obviously not thread-safe. Sue me. But it's quite + * useful for doing things like + * + * f = open(mkpath("%s/%s.git", base, name), O_RDONLY); + * + * which is what it's designed for. + */This is not a comment you would want to move to the resulting file that contains only make_absolute_path().I am sorry... I removed this comment. Here is the corrected patch.
No need to say nor be sorry. The rest looks sane from a quick glance, except that we may want to have a separate clean-up patch that consolidates MAXDEPTH in many places that limits our manual symlink resolution.