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
-
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