From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: "René Scharfe" <rene.scharfe@lsrfire.ath.cx>
Cc: Junio C Hamano <junkio@cox.net>, Git Mailing List <git@vger.kernel.org>
Subject: Re: [PATCH] diff-lib.c: don't strdup twice
Date: Sat, 7 Jul 2007 19:52:35 +0100 (BST) [thread overview]
Message-ID: <Pine.LNX.4.64.0707071951340.4093@racer.site> (raw)
In-Reply-To: <468FD91C.7040506@lsrfire.ath.cx>
Hi,
On Sat, 7 Jul 2007, Ren? Scharfe wrote:
> The static function read_directory in diff-lib.c is only ever called
> with struct path_list lists with .strdup_paths turned on, i.e.
> path_list_insert will strdup the paths for us (again). Let's take
> advantage of that and stop doing it twice.
Indeed.
Acked-by: Johannes E. Schindelin <johannes.schindelin@gmx.de>
Thanks,
Dscho
prev parent reply other threads:[~2007-07-07 18:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-07 18:19 [PATCH] diff-lib.c: don't strdup twice René Scharfe
2007-07-07 18:52 ` 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=Pine.LNX.4.64.0707071951340.4093@racer.site \
--to=johannes.schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
--cc=rene.scharfe@lsrfire.ath.cx \
/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).