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

Re: git with custom diff for commits

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Dec 17, 2007, 23:11 UTC
Message-ID
<Pine.LNX.4.64.0712172310090.9446@racer.site>
In-Reply-To
<vpq1w9kaphg.fsf@bauges.imag.fr>
Hi,
On Tue, 18 Dec 2007, Matthieu Moy wrote:
Show 17 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> 
> > On Mon, 17 Dec 2007, Gerald Gutierrez wrote:
> >
> >> I've tried to set up an external diff script that runs diff -I "<<sql 
> >> timestamp comment>>" that effectively ignores the timestamp. While 
> >> this works with "git diff", it seems when git commits, it still sees 
> >> the differences.
> >> 
> >> How do I properly teach git to ignore these types of differences?
> >
> > You might be interested in reading Documentation/gitattributes.txt, 
> > look for "diff driver".
> 
> It will show an empty output for "git diff", but I doubt thit will 
> change anything at commit time. Probably the "filter" thing on the same 
> file (also "man gitattributes") can help though.

Ah, right. I completely missed that you were talking about git-commit, not git-log on git commits.

Yes, setting up a "clean" filter that removes the timestamps is probably the reasonable thing to do here.

Sorry for the noise, Dscho

Previous: Matthieu MoyNext: Junio C Hamano
Message 4 of 24 in “git with custom diff for commits”
  1. Gerald GutierrezDec 17, 2007
  2. Johannes SchindelinDec 17, 2007
  3. Matthieu MoyDec 17, 2007
  4. Johannes SchindelinDec 17, 2007
  5. Junio C HamanoDec 17, 2007
  6. Matthieu MoyDec 18, 2007
  7. Junio C HamanoDec 18, 2007
  8. Gerald GutierrezDec 18, 2007
  9. Junio C HamanoDec 18, 2007
  10. Gerald GutierrezDec 18, 2007
  11. Johannes SchindelinDec 18, 2007
  12. Gerald GutierrezDec 18, 2007
  13. Johannes SchindelinDec 18, 2007
  14. Junio C HamanoDec 18, 2007
  15. Matthieu MoyDec 18, 2007
  16. Gerald GutierrezDec 18, 2007
  17. Johannes SchindelinDec 18, 2007
  18. Martin LanghoffDec 18, 2007
  19. Matthieu MoyDec 19, 2007
  20. Johannes SchindelinDec 19, 2007
  21. Matthieu MoyDec 19, 2007
  22. Matthieu MoyDec 19, 2007
  23. Gerald GutierrezDec 18, 2007
  24. Gerald GutierrezDec 17, 2007

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.