User: Password:
Subscribe / Log in / New account

Who wrote 3.5

Who wrote 3.5

Posted Aug 1, 2012 17:27 UTC (Wed) by nevets (subscriber, #11875)
Parent article: Who wrote 3.5

Hmm, I got the top 3 spot for most lines changed due to my libtraceevents library finally making it into the kernel tools directory from trace-cmd and incorporated into perf.

Should we really be posting changes to the tools directory as those that wrote 3.5 kernel?

Hey! I like being at #3, but really, it wasn't for my work in the kernel.

  $ git log -p --author=rostedt v3.4..v3.5 tools |diffstat | tail -1
   43 files changed, 13740 insertions(+), 6963 deletions(-)

  $ git log -p --author=rostedt v3.4..v3.5 arch include kernel |diffstat|tail -1
   27 files changed, 875 insertions(+), 453 deletions(-)

(Log in to post comments)

Who wrote 3.5

Posted Aug 4, 2012 23:37 UTC (Sat) by mathstuf (subscriber, #69389) [Link]

Is there a reason you're piping to diffstat instead of using git log's --stat flag?

Who wrote 3.5

Posted Aug 5, 2012 0:10 UTC (Sun) by nevets (subscriber, #11875) [Link]

How do you get --stat to show all changes? If I do git log ---stat against a bunch of different commits, it shows me only the changes against each commit individually and not a total of all commits. diffstat shows me a total of all changes at the end, which is what the tail -1 showed.

Who wrote 3.5

Posted Aug 5, 2012 0:41 UTC (Sun) by mathstuf (subscriber, #69389) [Link]

Ah, yeah, I see now. I would have done the backbone of your command with 'git diff --stat v3.4..v3.5', but the filter on the author means that log needs to be used which chunks the stat outputs. I rarely filter using log on things other than directory while also looking at --stat, so why it was missing --stat wasn't immediately obvious to me.

Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds