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

Re: [PATCH] compat/regex: fix compilation on Windows

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
May 13, 2017, 18:30 UTC
Message-ID
<alpine.DEB.2.21.1.1705131251260.146734@virtualbox>
In-Reply-To
<CACBZZX4UUwzRQmyH8joYaqHnuVTjVtGBHp+iZKcnAnwoM_ZJhg@mail.gmail.com>
Hi Ævar,

I originally replied in a very verbose manner, going step by step through the "one-liner", but decided to rephrase everything.

So here goes.
On Sat, 13 May 2017, Ævar Arnfjörð Bjarmason wrote:
> Let's drop this current gawk import series.

Well, the reason why you imported the current gawk regex is that we (you?) decided originally that it'd be easier to go with that one rather than with the gnulib one (which they friendly-forked). If you switch to gnulib, I would like to see (in the commit message) the original reason we picked gawk (which forked gnulib's regex code, after all), and why that reason no longer applies.

I also would strongly prefer a *non* one-liner, in a commit message that adds the relevant source code from gawk or gnulib *verbatim*, followed by patches that adjust the code to Git's needs. That way, a future update can repeat the commands outlined in the first commit message and then cherry-pick the subsequent patches.

And remember that you do not need to clone the entire repository. You can
1) fetch into the current one, and 2) use a shallow fetch. Example:
	git fetch --depth 1 http://git.savannah.gnu.org/r/gawk.git \
		gawk-4.1.4
The next commands could be something like
	git read-tree --prefix=compat/regex/ FETCH_HEAD:
	git clean -dfx -- compat/regex/

Oh, and please do not use `master`. If Git is any indication, a tagged release will most often be a bit more robust than any in-between commit.

Thanks, Dscho

Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 8 of 10 in “compat/regex: fix compilation on Windows”
  1. compat/regex: fix compilation on WindowsJohannes Schindelin, May 11, 2017
  2. Ævar Arnfjörð BjarmasonMay 11, 2017
  3. Junio C HamanoMay 12, 2017
  4. Johannes SchindelinMay 12, 2017
  5. Ramsay JonesMay 12, 2017
  6. Junio C HamanoMay 12, 2017
  7. Ævar Arnfjörð BjarmasonMay 12, 2017
  8. Johannes SchindelinMay 13, 2017
  9. Ævar Arnfjörð BjarmasonMay 13, 2017
  10. Junio C HamanoMay 15, 2017

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.