Git development
 help / color / mirror / Atom feed
* Make git-rev-tree obsolete
@ 2005-08-09  0:23 Johannes Schindelin
  2005-08-09  2:09 ` Linus Torvalds
  2005-08-09  2:49 ` Junio C Hamano
  0 siblings, 2 replies; 6+ messages in thread
From: Johannes Schindelin @ 2005-08-09  0:23 UTC (permalink / raw)
  To: git

Hi,

Junio remarked that Jeff's git-changes-script still uses git-rev-tree, and 
therefore it should not be removed. This patch changes git-changes-script 
over to git-rev-list:

--- git-changes-script.orig	Tue Aug  9 02:21:36 2005
+++ git-changes-script	Tue Aug  9 02:20:53 2005
@@ -85,14 +85,14 @@
 	base=$(cat .git/HEAD) || exit 1
 fi
 
-git-rev-tree $base | sort -rn  > ${tmpfile}.base
+git-rev-list $base > ${tmpfile}.base
 if [ -n "$remote" ]; then
 	[ -d $remote/.git ] || exit 1
 	if [ -z "$tobase" ]; then
 		tobase=$(cat $remote/.git/HEAD) || exit 1
 	fi
 	pushd $remote > /dev/null
-	git-rev-tree $tobase | sort -rn > ${tmpfile}.remote
+	git-rev-list $tobase > ${tmpfile}.remote
 	diff -u ${tmpfile}.base ${tmpfile}.remote | grep "^${diffsearch}[^${diffsearch}]" | cut -c 1- > ${tmpfile}.diff
 	rm -f ${tmpfile}.base ${tmpfile}.remote
 	mv ${tmpfile}.diff ${tmpfile}.base
@@ -103,7 +103,7 @@
 
 [ -s "${tmpfile}.base" ] || exit 0
 
-cat ${tmpfile}.base | while read time commit parents; do
+cat ${tmpfile}.base | while read commit; do
 	showcommit $commit
 	echo -e "\n--------------------------"
 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-08-11 22:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-09  0:23 Make git-rev-tree obsolete Johannes Schindelin
2005-08-09  2:09 ` Linus Torvalds
2005-08-09  2:49 ` Junio C Hamano
2005-08-09  4:48   ` Jeff Garzik
2005-08-09 10:18   ` Johannes Schindelin
2005-08-11 22:22   ` Petr Baudis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox