Re: Undocumented git-diff syntax
- From
- Santi Béjar <santi@agolina.net>
- Date
- Oct 11, 2010, 13:59 UTC
- Message-ID
- <AANLkTinqPiGf1nbo0oOvDD5edgLBdO8xZfjGeFC4q0MU@mail.gmail.com>
- In-Reply-To
- <20101011150342.292ad725@chalon.bertin.fr>
On Mon, Oct 11, 2010 at 3:03 PM, Yann Dirson <dirson@bertin.fr> wrote: [...]
Show 5 quoted lines
> > 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.
Are you talking about "git diff --no-index"?
HTH, Santi