From: Junio C Hamano <gitster@pobox.com>
To: Tay Ray Chuan <rctay89@gmail.com>
Cc: git@vger.kernel.org, Johannes Schindelin <johannes.schindelin@gmx.de>
Subject: Re: [PATCH] http-push: refactor request url creation
Date: Sat, 31 Jan 2009 16:55:49 -0800 [thread overview]
Message-ID: <7vmyd72cx6.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: 4983929B.2010901@gmail.com
Tay Ray Chuan <rctay89@gmail.com> writes:
> Currently, functions that deal with objects on the remote repository
> have to allocate and do strcpys to generate the URL.
>
> This patch saves them this trouble, by providing two functions,
> "append_remote_object_url" and "get_remote_object_url".
>
> Both generate a URL, with either the object's 2-digit hex directory
> (eg. /objects/a1/), or the complete object location (eg.
> /objects/a1/b2).
>
> However, they differ in that "append_remote_object_url" appends this
> URL to a strbuf, while "get_remote_object_url" wraps around the former
> and returns the URL directly in char*. Users usually would use
> "get_remote_object_url", but may find "append_remote_object_url"
> useful if they require further string operations on the URL.
>
> Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
> Acked-by: Junio C Hamano <gitster@pobox.com>
Thanks, I'll queue this to 'pu' for now, but please stop randomly adding
"Acked-by" from other people, unless you conferred with them on the
exact version of your patch you are submitting.
If somebody said "The version that I reviewed looked sensible", it becomes
irrelevant after you changed your patch in response to people's comments,
exactly because what you are sending is different from what they reviewed.
It is up to them, not you, to see if the issues raised in their comments
are addressed in the new patch to their satisfaction.
next prev parent reply other threads:[~2009-02-01 0:57 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-30 23:51 [PATCH] http-push: refactor request url creation Tay Ray Chuan
2009-02-01 0:55 ` Junio C Hamano [this message]
2009-02-01 22:45 ` Johannes Schindelin
-- strict thread matches above, loose matches on Subject: below --
2009-01-28 22:19 Tay Ray Chuan
2009-01-28 22:51 ` Junio C Hamano
2009-01-28 23:06 ` Johannes Schindelin
2009-01-29 11:49 ` Tay Ray Chuan
2009-01-25 6:08 Ray Chuan
2009-01-25 20:35 ` Junio C Hamano
2009-01-26 1:52 ` Ray Chuan
2009-01-26 8:02 ` Daniel Stenberg
2009-01-26 10:41 ` Johannes Schindelin
2009-01-27 4:58 ` 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=7vmyd72cx6.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=johannes.schindelin@gmx.de \
--cc=rctay89@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).