<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: git code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Thu, 24 Jul 2008 20:05:46 GMT</pubDate>
    <description>DZone Snippets: git code</description>
    <item>
      <title>Alias to a Nice Default Gitk</title>
      <link>http://snippets.dzone.com/posts/show/4992</link>
      <description>Just a really quick and easy shell alias for my preferred defaults for Git's repository and branch viewer, Gitk.&lt;br /&gt;&lt;br /&gt;This runs "gitk"...&lt;br /&gt;...including all branches,&lt;br /&gt;...outputting errors to the black hole,&lt;br /&gt;...and any extra command-line arguments.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;# Run like this&lt;br /&gt;# gitk --since="2 days ago" &amp;&lt;br /&gt;&lt;br /&gt;alias gitk="gitk --all $1 2&gt;/dev/null"&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 17 Jan 2008 04:44:18 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4992</guid>
      <author>justinwr (Justin R)</author>
    </item>
    <item>
      <title>Git-diff last two commits through TextMate</title>
      <link>http://snippets.dzone.com/posts/show/4866</link>
      <description>I believe this is how svn diff operates... but anyway, this alias will allow you to diff the last two commits in Git through TextMate. If you have a theme that supports Diff's then you'll see the differences clearly. Remove the last pipe statement (the mate part) to expose your diff in the console.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;alias gitdiff='git log|grep commit|cut -d " " -f2|head -n 2|xargs -n 2 git diff -R|mate'&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Sun, 09 Dec 2007 04:52:30 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4866</guid>
      <author>justinwr (Justin R)</author>
    </item>
  </channel>
</rss>
