git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v8 1/5] Introduce bulk-move detection in diffcore.

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Nov 25, 2010, 17:19 UTC
Message-ID
<AANLkTimGOkv7db2YW_+-V_oJEheuwBiUW-3fFpHBOt4v@mail.gmail.com>
In-Reply-To
<20101125150218.GA16049@burratino>
On Thu, Nov 25, 2010 at 16:02, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 18 quoted lines
> Ævar Arnfjörð Bjarmason wrote:
>> On Fri, Oct 29, 2010 at 00:08, Yann Dirson <ydirson@altern.org> wrote:
>
>>> +       slash = memrchr(src, '/', len);
>>
>> I can't compile pu now on Solaris due to this bit. Are you planning on
>> picking up the patch / configure / Makefile detection discussed in the
>> "[PATCH] compat: add memrchr()" thread? Just wondering what the
>> progress was on that.
>
> BTW, remember that the configure / Makefile detection is only an extra
> nicety.  [1] teaches git to rely on the system memrchr on glibc
> systems only; on other systems (unless they define memrchr as a macro,
> which would be a strange thing to do), gitmemrchr is used.
>
> Upshot: it should be safe to use [1] without the configure / Makefile
> support.  Later, an interested person can write a patch for improved
> memrchr[2] on *BSD and Plan 9.

Sure. It's just a bit of a hack since we already have a standard-ish way of doing this. Which is to optionally have configure.ac support, then add platform-specific stuff to the Makefile & drop something in compat/memrchr.c.

Doing it that way and actually detecting it means we use e.g. the native memrchr on FreeBSD. I just don't see a reason to do it like the [1] patch when it's just as easy to do it the "proper way", where it's more extendable.

Anyway, it's a very minor issue. I'll probably do a patch for this series like I did for that other thing that needed autoconf detection recently. Thanks everyone.

Previous: Jonathan NiederNext: Yann Dirson
Message 10 of 15 in “Detection of directory renames”
  1. Detection of directory renamesYann Dirson, Oct 28, 2010
  2. 1/5 Introduce bulk-move detection in diffcore.Yann Dirson, Oct 28, 2010
  3. Jonathan NiederOct 29, 2010
  4. Yann DirsonOct 29, 2010
  5. Jonathan NiederOct 30, 2010
  6. Yann DirsonNov 4, 2010
  7. Introduce bulk-move detection in diffcore.Yann Dirson, Nov 4, 2010
  8. Ævar Arnfjörð BjarmasonNov 25, 2010
  9. Jonathan NiederNov 25, 2010
  10. Ævar Arnfjörð BjarmasonNov 25, 2010
  11. 2/5 Raw diff output format for bulk moves.Yann Dirson, Oct 28, 2010
  12. 3/5 Add testcases for the --detect-bulk-moves diffcore flag.Yann Dirson, Oct 28, 2010
  13. 4/5 Unified diff output format for bulk moves.Yann Dirson, Oct 28, 2010
  14. 5/5 [WIP] Allow hiding renames of individual files involved in a directory rename.Yann Dirson, Oct 28, 2010
  15. Jonathan NiederOct 29, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.