Re: [RFC] get_sha1() shorthands for blob/tree objects
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Apr 19, 2006, 04:04 UTC
- Message-ID
- <Pine.LNX.4.64.0604182101360.3701@g5.osdl.org>
- In-Reply-To
- <Pine.LNX.4.64.0604182056390.3701@g5.osdl.org>
On Tue, 18 Apr 2006, Linus Torvalds wrote:
> > And no, I didn't actually test it. But it really _should_ work with that > trivial diff, including with the "a..b" format.
Ok, tested and verified.
On the kernel:
git diff v2.6.13:drivers/block/..HEAD:block/ -- ll_rw_blk.c
actually does the right thing - it shows the diff for ll_rw_blk.c which got moved from drivers/block/ into block/ between 2.6.13 and current.
Note that the "--" is required, since ll_rw_blk.c doesn't exist in the top-level directory where we run the command (but does exist in the git trees that we have specified manually with the new shorthand).
Linus