git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Undocumented git-diff syntax
@ 2010-10-11 13:03 Yann Dirson
  2010-10-11 13:59 ` Santi Béjar
  0 siblings, 1 reply; 15+ messages in thread
From: Yann Dirson @ 2010-10-11 13:03 UTC (permalink / raw)
  To: git

When trying "just to see it it would work", I noticed that the
following syntax appears to do what it looks like it should do.

git diff v1.7.3-rc0:Documentation/RelNotes-1.7.3.txt v1.7.3:Documentation/RelNotes/1.7.3.txt

It is a useful thing, but I could not find described in the manpage.  I have not dig this
part of diff yet, and maybe someone would have already a description of it (does it simply allow
to diff two arbitrary blobs ?).  Is it here just by some magic side-effect ? :)

Another thought: if we can already compare arbitrary blobs, maybe it would not be so hard to
extend it to take arbitrary contents that are not stored as blobs yet ?  (a quick hack would be to
insert an object for them, but that does not look too clean...).  As a use-case, I'm often found generating diffs from within custom scripts, from contents derived from a git repo, but can't use all the bells and whistles (--color, --color-words, etc), just because I have to use plain diff;
that makes the output of those scripts very inconsistent with native git commands.

Would there be any objections to moving into that direction ?

-- 
Yann Dirson - Bertin Technologies

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2010-10-13 22:40 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-11 13:03 Undocumented git-diff syntax Yann Dirson
2010-10-11 13:59 ` Santi Béjar
2010-10-11 14:17   ` Yann Dirson
2010-10-11 14:52     ` Santi Béjar
2010-10-11 16:02     ` [PATCH 0/4] " Jonathan Nieder
2010-10-11 16:03       ` [PATCH 1/5] Documentation: gitrevisions is in section 7 Jonathan Nieder
2010-10-11 20:49         ` Sverre Rabbelier
2010-10-11 16:04       ` [PATCH 2/4] Documentation: diff can compare blobs Jonathan Nieder
2010-10-11 16:05       ` [PATCH 3/4] Documentation: expand 'git diff' SEE ALSO section Jonathan Nieder
2010-10-11 16:06       ` [PATCH 4/4] Documentation: update "git diff --no-index" description Jonathan Nieder
2010-10-11 16:07       ` [RFC/PATCH 5/4] Documentation: flesh out diff --no-index description Jonathan Nieder
2010-10-13 22:40         ` Junio C Hamano
2010-10-11 18:52       ` [PATCH 0/4] Re: Undocumented git-diff syntax Yann Dirson
2010-10-11 20:56       ` Sverre Rabbelier
2010-10-11 16:57     ` Jakub Narebski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).