Git development
 help / color / mirror / Atom feed
From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: Ray Chuan <rctay89@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: PATCH] http-push: refactor request url creation
Date: Sat, 24 Jan 2009 18:03:34 +0100 (CET)	[thread overview]
Message-ID: <alpine.DEB.1.00.0901241758200.13232@racer> (raw)
In-Reply-To: <be6fef0d0901240816r25e6a9c9q2d437d413a524362@mail.gmail.com>

Hi,

On Sun, 25 Jan 2009, Ray Chuan wrote:

> 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 a function that
> returns a URL: either the object's 2-digit hex directory (eg.
> /objects/a1/) or the complete object location (eg. /objects/a1/b2).
> 
> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>

Make that an Acked-by: okay?

> diff --git a/http-push.c b/http-push.c
> index cb5bf95..715954e 100644
> --- a/http-push.c
> +++ b/http-push.c
> @@ -177,6 +177,16 @@ struct remote_ls_ctx
>  	struct remote_ls_ctx *parent;
>  };
> 
> +static char *get_remote_object_url(const char *url, const char *hex,
> int only_two_digit_postfix) {

It is actually a prefix.

Ciao,
Dscho

      reply	other threads:[~2009-01-24 17:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-24 16:16 PATCH] http-push: refactor request url creation Ray Chuan
2009-01-24 17:03 ` Johannes Schindelin [this message]

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=alpine.DEB.1.00.0901241758200.13232@racer \
    --to=johannes.schindelin@gmx.de \
    --cc=git@vger.kernel.org \
    --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