Re: [PATCH] Remove use of git-rev-parse and replace git-rev-list --pretty with git-log
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Mar 2, 2007, 20:48 UTC
- Message-ID
- <Pine.LNX.4.64.0703021246480.3953@woody.linux-foundation.org>
- In-Reply-To
- <200703021929.20969.andyparkins@gmail.com>
On Fri, 2 Mar 2007, Andy Parkins wrote:
> # Commit with a parent > - for rev in $(git-rev-parse --not --all | git-rev-list --stdin $newrev ^$baserev) > + for rev in $(git-rev-list $newrev ^$baserev --not --all)
Looks fine, and I don't think it's worth changing, but you can avoid the extra caret by just moving "$baserev" to after the "--not", ie writing the thing as
git-rev-list $newrev --not $baserev --all
instead if you want to.
> - git-rev-parse --not --all | > - git-rev-list --stdin --pretty $newrev ^$baserev > + git log $newrev ^$baserev --not --all
And that's true here too.
Linus