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

Re: git-diff-files -z output

From
Junio C Hamano <junkio@cox.net>
Date
May 22, 2005, 17:49 UTC
Message-ID
<7vwtprduc7.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20050522173243.GA18500@cip.informatik.uni-erlangen.de>
>>>>> "TG" == Thomas Glanzmann <sithglan@stud.uni-erlangen.de> writes:
I do not do Porcelain, but...
TG> this is better (it strips the colon from the first mode):

I think you are also stripping the colon at the beginning of the filename if I am not mistaken. Also posting only this part is not very useful because I cannot tell what parameter this sub is being fed. I am presuming that you are either feeding a single line from DIFF_FORMAT_HUMAN format output, or three lines (unless dealing with 'U' entry in which case you have to do only a single line) from DIFF_FORMAT_MACHINE format output. When in doubt, seeing what diff-helper does would help.

Previous: Thomas Glanzmann
Message 6 of 6 in “git-diff-files -z output”
  1. Thomas GlanzmannMay 22, 2005
  2. Junio C HamanoMay 22, 2005
  3. Thomas GlanzmannMay 22, 2005
  4. Thomas GlanzmannMay 22, 2005
  5. Thomas GlanzmannMay 22, 2005
  6. Junio C HamanoMay 22, 2005

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.