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

Re: Rebase pain on (the) pot

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 19, 2015, 19:43 UTC
Message-ID
<xmqqlhisixhf.fsf@gitster.dls.corp.google.com>
In-Reply-To
<550ADDD3.9070706@warpmail.net>
Michael J Gruber <drmicha@warpmail.net> writes:
> Do we have a merge driver or something for the l10n files?

I haven't heard of any, but given that these can be added back by running xgettext and the result will have the up-to-date line numbers, it wouldn't be wrong to define a script that roughly does:

    * find a run of lines that match "^#: .*$" and replace it with a
      single line with "#:" in original, ours and theirs.
    * feed these three files to 'merge' from RCS suite.

and use that as a merge driver. The merged result would lose the line number information, so if you really care, you could run "make pot" at each step to update it but I do not think it matters as long as you do so at the very end once, even as a follow-up "fix-up" patch that says "we deliberately lost the line number information during the series to avoid unnecessary merge conflicts, and this commit puts it back".

Previous: Michael J Gruber
Message 2 of 2 in “Rebase pain on (the) pot”
  1. Michael J GruberMar 19, 2015
  2. Junio C HamanoMar 19, 2015

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.