Re: [PATCH 2/5] diff --quiet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Thu, 15 Mar 2007, Alex Riesen wrote:

> On 3/15/07, Johannes Schindelin <Johannes.Schindelin@xxxxxx> wrote:
> > > >         $ git-rev-parse v2.6.16^{tree} v2.6.20^{tree}
> > > >
> > >
> > > Why would I want to benchmark --quiet with rev-parse?
> > 
> > It is not benchmarking, but it is a faster solution: you can see if two
> > trees are different by comparing their SHA-1s.
> 
> Can the same be done for index? (index-tree comparison)

Theoretically, yes. Only that Junio did not accept my short-cut ":dir/" 
notation to mean "take the cache-tree from the index, or if it is dirty, 
construct it". However, in the latter case, it would not be a speed 
improvement, but the opposite.

> > (That, however, works only if you do not want something like "git diff
> > -w"...)
> 
> Why? Can't "git diff -w" quit early?

No, but "-w" means "ignore white space", which means that blobs can be 
deemed equal, even if they differ at the byte-per-byte level.

Ciao,
Dscho

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]