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

Re: [PATCH 4/8] diff: support reading a file from stdin via "-"

From
Junio C Hamano <junkio@cox.net>
Date
Feb 26, 2007, 00:03 UTC
Message-ID
<7vejodrdi4.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<7virdprejh.fsf@assigned-by-dhcp.cox.net>

Another hack just occurred to me... get_pathspec() could translate '-' to /dev/stdin while leaving './-' to '-'.

It could be rather too ugly to the taste of some people. Myself, I dunno...

Previous: Junio C HamanoNext: Johannes Schindelin
Message 5 of 6 in “diff: support reading a file from stdin via "-"”
  1. 4/8 diff: support reading a file from stdin via "-"Johannes Schindelin, Feb 25, 2007
  2. Junio C HamanoFeb 25, 2007
  3. Johannes SchindelinFeb 25, 2007
  4. Junio C HamanoFeb 25, 2007
  5. Junio C HamanoFeb 26, 2007
  6. Johannes SchindelinFeb 26, 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.