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

git-diff between /dev/null and blob

From
Jakub Narebski <jnareb@gmail.com>
Date
Jul 31, 2006, 01:07 UTC
Message-ID
<eajl4r$b7o$1@sea.gmane.org>
Currently, due to artifact of git-diff argument parsing you can get diff 
of two arbitrary blobs given by their sha1 id, e.g.
  git diff ab8050ceb4e43522e858768cc2c02fcb91839370 fd05278808d458602587bb024a48726018d30926
but you cannot use git-diff to create diff between two files, or a file
and blob. 

In particular, I couldn't make "creation" patch, i.e. patch between /dev/null and specified blob. If it would be possible, we could lose gitweb.cgi dependency on diff.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Next: Junio C Hamano
Message 1 of 5 in “git-diff between /dev/null and blob”
  1. Jakub NarebskiJul 31, 2006
  2. Junio C HamanoJul 31, 2006
  3. Jakub NarebskiAug 6, 2006
  4. Junio C HamanoAug 6, 2006
  5. Jakub NarebskiAug 7, 2006

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.