Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am srabbelier on github.
  • I am srabbelier (https://keybase.io/srabbelier) on keybase.
  • I have a public key whose fingerprint is 5B81 3F45 86BB D2AA B8D4 37B3 59DC ABD0 8D6D B3AE

To claim this, I am signing this object:

<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="@srabbelier" />
<Content type="html">
<![CDATA[
<a class="twitter-timeline" href="https://twitter.com/srabbelier" data-widget-id="395711841889841152">Tweets by @srabbelier</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
]]>
</Content>
</Module>

These should all be things we can tackle in a day or a weekend with relatively small knowledge of existing Git subsystems.

Is 8 threads optimal for git-grep?

grep.c has this:

#define THREADS 8

Which was added back in

@SRabbelier
SRabbelier / Questions
Created September 6, 2011 07:18
GOTO Amsterdam
Day job: Student, Open Source Hacker
What is your language of choice: python
Open Source contributions: Git, Melange
How do you use GitHub: To host my clone of the git.git repo and to contribute to projects on github
$ git diff git_handler.py
diff --git a/git_handler.py b/git_handler.py
index d734c86..ead4914 100644
--- a/git_handler.py
+++ b/git_handler.py
@@ -76,7 +76,7 @@ class GitHandler(object):
def save_map(self):
file = self.repo.opener(self.mapfile, 'w+', atomictemp=True)
- for gitsha, hgsha in sorted(self._map_git.iteritems()):