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

Meta data available to filters?

From
Peter Krefting <peter@softwolves.pp.se>
Date
Aug 12, 2009, 06:59 UTC
Message-ID
<alpine.DEB.2.00.0908120755050.30907@ds9.cixit.se>
Hi!

If I set up a filter, is there a way from my filter script to know the name or identity of the file that I am processing?

I get the data on standard in and output the changed data on standard out, but is there any way to get access to meta data?

I find the documentation on filters a bit terse. Once I figure out how they actually work, I may be inclined to send a documentation patch. A minimum would be to document their existence on the git-config manual page (with reference to gitattributes), it took me some time to find it :-)

-- 
\\// Peter - http://www.softwolves.pp.se/
Message 1 of 1 in “Meta data available to filters?”
  1. Peter KreftingAug 12, 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.