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