Re: [PATCH] Change "refs/" references to symbolic constants

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andy Parkins <andyparkins@...>
Cc: <git@...>
Date: Tuesday, October 2, 2007 - 3:11 pm

On Tue, Oct 02, 2007 at 07:16:43PM +0100, Andy Parkins wrote:


I've manually inspected the patch. Comments are below.


This slightly changes the message (extra "/"), but I don't think that is
a big deal...


...but here it's not immediately obvious if the extra trailing "/" is
OK. Looks like the path just gets handed off to system calls trhough
safe_create_dir, and they are happy with the trailing slash. But it is a
behavior change.


And of course ditto here.


I find the 'PATH_REFS_TAGS "%s"' (with a space) you used earlier a
little easier to read.


I imagine this was one of the times you mentioned before where prefixcmp
would be more readable. I would agree.


should be posn += 1 + STRLEN_PATH_OBJECTS ?


The '56' is still quite hard to verify as correct ("/" + "pack/pack-" +
".idx" + "\0"). But I wonder if trying to fix that will just make it
harder to read (perhaps a comment is in order?).

Or maybe using a strbuf here would be much more obviously correct?


Also a potential strbuf. Ther are more of this same form, but I'm not
going to bother pointing out each one.


Man that was tedious. But I think every other change is purely
syntactic, so there shouldn't be any bugs.

-Peff
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] Change "refs/" references to symbolic constants, Jeff King, (Tue Oct 2, 3:11 pm)