Re: deprecating more
- From
Junio C Hamano <junkio@cox.net>
- Date
- Sep 17, 2005, 05:28 UTC
- Message-ID
- <7vfys4e003.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.58.0509161938580.26803@g5.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
Show 8 quoted lines
> On Fri, 16 Sep 2005, Junio C Hamano wrote: > >> What do you think about the other commands I mentioned? > > I think they can all go. I think some old scripts migth still use > git-rev-tree, but it really is clearly inferior in every way to > git-rev-list that such scripts should be fixed anyway. Fixing them should > be pretty easy.
I found one in our source. Tony, is the following change acceptable to you?
------------ [PATCH] Use git-rev-list not git-rev-tree where appropriate.
Signed-off-by: Junio C Hamano <junkio@cox.net> ---
diff --git a/Documentation/howto/using-topic-branches.txt b/Documentation/howto/using-topic-branches.txt --- a/Documentation/howto/using-topic-branches.txt +++ b/Documentation/howto/using-topic-branches.txt @@ -245,7 +245,7 @@ gb=$(tput setab 2) rb=$(tput setab 1) restore=$(tput setab 9) -if [ `git-rev-tree release ^test | wc -c` -gt 0 ] +if [ `git-rev-list release ^test | wc -c` -gt 0 ] then echo $rb Warning: commits in release that are not in test $restore git-whatchanged release ^test @@ -262,7 +262,7 @@ do status= for ref in test release linus do - if [ `git-rev-tree $branch ^$ref | wc -c` -gt 0 ] + if [ `git-rev-list $branch ^$ref | wc -c` -gt 0 ] then status=$status${ref:0:1} fi