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

Re: Integrating with hooks

From
TJTodd A. Jacobs <nospam@codegnome.org>
Date
Nov 15, 2007, 01:18 UTC
Message-ID
<20071115011837.GD32746@penguin.codegnome.org>
In-Reply-To
<fhdane$kfs$1@ger.gmane.org>
On Wed, Nov 14, 2007 at 12:07:29AM +0100, Jakub Narebski wrote:
> Take a look at gitattributes(5), namely 'filter' attribute.

Thanks, I took a look at the man page you suggested. The "ident" feature almost does what I want, but doesn't seem to take any sort of format string. So, I thought I'd explore "filter," but can't really find any examples of how to implement the smudge and clean commands, which seem to be what I'm really trying to do here.

Is there an example somewhere that you can point me to? The man page doesn't really show any examples of how to implement the filter attribute, so I'm a little unsure how to proceed.

-- 
"Oh, look: rocks!"
	-- Doctor Who, "Destiny of the Daleks"
Previous: Jakub NarebskiNext: Jakub Narebski
Message 3 of 6 in “Integrating with hooks”
  1. Todd A. JacobsNov 13, 2007
  2. Jakub NarebskiNov 13, 2007
  3. Todd A. JacobsNov 15, 2007
  4. Jakub NarebskiNov 15, 2007
  5. Johannes SchindelinNov 15, 2007
  6. Johannes SixtNov 15, 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.