From: Johannes Sixt <j6t@kdbg.org>
To: Junio C Hamano <gitster@pobox.com>
Cc: karsten.blees@dcon.de, kusmabite@gmail.com, git@vger.kernel.org,
Johannes Schindelin <Johannes.Schindelin@gmx.de>,
msysGit <msysgit@googlegroups.com>,
Pat Thoyts <patthoyts@gmail.com>,
Stefan Naewe <stefan.naewe@gmail.com>
Subject: Re: [msysGit] [PATCH] fix deletion of .git/objects sub-directories in git-prune/repack
Date: Tue, 06 Mar 2012 22:19:10 +0100 [thread overview]
Message-ID: <4F567F4E.5020501@kdbg.org> (raw)
In-Reply-To: <7v4nu1scsl.fsf@alter.siamese.dyndns.org>
Am 06.03.2012 21:19, schrieb Junio C Hamano:
> Johannes Sixt <j6t@kdbg.org> writes:
>
>>> diff --git a/builtin/prune-packed.c b/builtin/prune-packed.c
>>> index f9463de..a834417 100644
>>> --- a/builtin/prune-packed.c
>>> +++ b/builtin/prune-packed.c
>>> @@ -36,7 +36,6 @@ static void prune_dir(int i, DIR *dir, char *pathname,
>>> int len, int opts)
>>> display_progress(progress, i + 1);
>>> }
>>> pathname[len] = 0;
>>> - rmdir(pathname);
>>
>> After moving the rmdir() away from prune_dir(), the truncation of the
>> pathname does not logically belong here anymore. It should be moved with
>> the rmdir(). Looks good otherwise.
>
> I agree that it is better to have the NUL termination close to where
> it actually matters.
>
> Do you want me to take it after locally fixing it up, or do you
> prefer to feed this as part of msysgit related updates to me later?
This patch is fairly independent from other topics that are queued in
msysgit, IIRC. Please take it with the mentioned fixup.
Thanks,
-- Hannes
next prev parent reply other threads:[~2012-03-06 21:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CABPQNSbo5yEosEid_SKoiCS4c8eYAaOHy4skSOBJsef+E6H6Sw@mail.gmail.com>
2012-03-06 9:18 ` [PATCH] fix deletion of .git/objects sub-directories in git-prune/repack karsten.blees
2012-03-06 18:32 ` [msysGit] " Johannes Sixt
2012-03-06 20:19 ` Junio C Hamano
2012-03-06 21:19 ` Johannes Sixt [this message]
2012-03-06 21:30 ` karsten.blees
2012-03-06 21:49 ` Junio C Hamano
2012-03-07 10:50 ` karsten.blees
2012-03-06 21:57 ` Junio C Hamano
2012-03-06 21:47 ` karsten.blees
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=4F567F4E.5020501@kdbg.org \
--to=j6t@kdbg.org \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=karsten.blees@dcon.de \
--cc=kusmabite@gmail.com \
--cc=msysgit@googlegroups.com \
--cc=patthoyts@gmail.com \
--cc=stefan.naewe@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.