<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Ruben Causyn - Medium]]></title>
        <description><![CDATA[Personal blog of Ruben Causyn - Medium]]></description>
        <link>https://medium.com/ruben-causyn?source=rss----e406b369af31---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Ruben Causyn - Medium</title>
            <link>https://medium.com/ruben-causyn?source=rss----e406b369af31---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 08:09:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/ruben-causyn" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Quick stats on a git repo.]]></title>
            <link>https://medium.com/ruben-causyn/quick-stats-on-a-git-repo-d2b82d04e503?source=rss----e406b369af31---4</link>
            <guid isPermaLink="false">https://medium.com/p/d2b82d04e503</guid>
            <dc:creator><![CDATA[Ruben Causyn]]></dc:creator>
            <pubDate>Tue, 28 May 2013 17:41:48 GMT</pubDate>
            <atom:updated>2024-02-29T22:00:53.946Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>git log — author=”” — pretty=tformat: — numstat | gawk ‘{ add += $1 ; subs += $2 ; loc += $1 — $2 } END \<br>{ printf “added lines: %s removed lines: %s total lines: %s\n”,add,subs,loc }’ -</blockquote><p>This code snippet helps you <strong>quickly understand the overall changes made to a codebase</strong>. It does this by:</p><ol><li><strong>Gathering information:</strong> It uses git log to view the history of changes in the codebase, filtering to include changes made by any author (--author=&quot;&quot;). It also formats the output (--pretty=tformat: --numstat) to show only the number of added and removed lines for each modification.</li><li><strong>Analyzing the data:</strong> The output from git log is then piped (|) to gawk, a tool used for processing text data. Here, gawk performs calculations on the numbers it receives:<br>It keeps track of the total lines added (add), removed (subs), and the overall change (loc), which is calculated by subtracting removed lines from added lines.</li><li><strong>Presenting the results:</strong> Finally, gawk uses printf to create a human-readable report, displaying the total number of added lines, removed lines, and the net change in lines of code.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2b82d04e503" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ruben-causyn/quick-stats-on-a-git-repo-d2b82d04e503">Quick stats on a git repo.</a> was originally published in <a href="https://medium.com/ruben-causyn">Ruben Causyn</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>