Thread (32 messages) flat view 32 messages, 17 authors, 2016-06-15

Re: [ANNOUNCE] git-pasky-0.6.2 && heads-up on upcoming changes

From: Linus Torvalds <torvalds@osdl.org>
Date: 2016-06-15 22:41:53


Pasky,
 what do you think about this change to "git log"?

It makes it a _lot_ easier to parse the result, as it indents all the
comments by two spaces, meaning that the header is clearly marked, and you
can then do various 'sed'/'grep' things with nice normal regular
expressions like '^parent' without having to worry about there being a 
line that starts with "parent" in the free-form part..

I also think the end result is more readable from a human standpoint, with 
indentation as the way to distinguish the headers from the commentary, 
and less ugly ASCII barfic's with "------" etc.

I'm doing a 2.6.12-rc3 release, so I care more than usual about the 
changelog ;)

		Linus

---
gitlog.sh: a496a864f9586e47a4d7bd3ae0af0b3e07b7deb8
--- a/gitlog.sh
+++ b/gitlog.sh
@@ -28,7 +28,7 @@ rev-tree $base | sort -rn | while read t
 				fi
 				;;
 			"")
-				echo; cat
+				echo; sed 's/^/  /'
 				;;
 			*)
 				echo $key $rest
@@ -36,5 +36,5 @@ rev-tree $base | sort -rn | while read t
 			esac
 
 		done
-	echo -e "\n--------------------------"
+	echo
 done
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help