Use this little tool to upload your patches and diffs very easily to patchbin, thus endowing them with awesome code-review and commenting functionality that your fellow hackers will love. Now you just say:
git diff | patchbin
svn diff | patchbin
cat awesomefeature.patch | patchbin
That's it! And you'll get a link that you can use.
Currently, there's no major "released" version of the script. However, you can fetch the latest version of the script from the "production" branch of my git repo.
wget http://github.com/ninjagod/patchbin/raw/production/tools/patchbin.py
chmod +x patchbin.py
sudo ln -s `pwd`/patchbin.py /usr/bin/patchbin
Just enter a command which would normally print the diff into stdout. This may be "
git diff", "
svn diff", "
diff file1 file2" or the command for $YOUR_FAVORITE_VCS, and pipe it to the 'patchbin', which will work only if the link is present in your path.
- Ubuntu ppa
- Better way of storing name, email and entering description
Known bugs:
- Sometimes, unicode in the diff causes the python urlencode to choke (or it's a problem with my code). If a patch doesn't upload properly, please email me a copy of the patch.
Please report on
Github Issues, or email me ("anirudh@ani" + "rudhsanje" + "ev.org")