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

Ignoring svn custom id lines on merge

From
RBRenato Botelho <rbgarga@gmail.com>
Date
May 22, 2009, 20:30 UTC
Message-ID
<747dc8f30905221330r691dc58cwf21a0070e9652aaf@mail.gmail.com>
Hello,

I'm starting tests to move from cvs to git, and i got just one problem on all my tests.

We maintain a custom copy of FreeBSD sources, so, on cvs we did follow when new FreeBSD version is released:

1. Import new freebsd src as a vendor branch
2. Merge changes on HEAD

I tried to do the same with git, and it worked, but since almost all FreeBSD files has a custom Id like this:

$FreeBSD: release/7.0.0/COPYRIGHT 175036 2008-01-01 09:36:30Z imp $

These lines always change, because the place they stay on svn repository (release/7.0.0, 7.1.0, 7.2.0) and git generated a lot of conflicts to fix manually.

I would like to know if there is a way to configure git to just ignore diffs on these lines and use the new one without ask.

I can do it with diff command ignoring those lines, like this:
diff -q -I'[$]FreeBSD:.*$'
Thank you in advance
-- 
Renato Botelho
Message 1 of 1 in “Ignoring svn custom id lines on merge”
  1. Renato BotelhoMay 22, 2009

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.