From: Junio C Hamano Date: Sat, 17 Sep 2005 05:28:28 GMT Subject: Re: deprecating more Message-ID: <7vfys4e003.fsf@assigned-by-dhcp.cox.net> In-Reply-To: Linus Torvalds writes: > 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 --- 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