On Wed, 20 Apr 2005, Linus Torvalds wrote:
> Pasky,
>  what do you think about this change to "git log"?

Here's a slightly updated version.

It's identical to the previous one, except that it also feeds the result 
through "| ${PAGER:-less}" which makes it a lot more useful, in my 

If you redirect the output to a non-tty, both "less" and "more" do the 
right thing and just feed the output straight through. But if the output 
is a tty, this makes "git log" a lot more friendly than a quickly 
scrolling mess..


gitlog.sh: a496a864f9586e47a4d7bd3ae0af0b3e07b7deb8
--- a/gitlog.sh
+++ b/gitlog.sh
@@ -28,7 +28,7 @@ rev-tree $base | sort -rn | while read t
-                               echo; cat
+                               echo; sed 's/^/  /'
                                echo $key $rest
@@ -36,5 +36,5 @@ rev-tree $base | sort -rn | while read t
-       echo -e "\n--------------------------"
+       echo
+done | ${PAGER:-less}
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to