silverjam/cozyreview — pull request #1 by silverjam (2013-08-14 23:07:42+00:00)
Title: An example PR

``` diff
From c7973c2bb5d7e3ee2739318be109422d695c7d16 Mon Sep 17 00:00:00 2001
From: Jason Mobarak
Date: Wed, 14 Aug 2013 12:52:33 -0700
Subject: [PATCH 1/2] install PyGithub if needed

---
install.sh | 12 ++++++++++++
1 file changed, 12 insertions(+)

diff --git a/install.sh b/install.sh
index 6be8bc5..780395a 100755
--- a/install.sh
+++ b/install.sh
@@ -106,3 +106,15 @@ if [[ $install_hub =~ [Yy] ]]; then
_popd
rm -rf $install_dir
fi
+
+pygithub_url=https://github.com/jacquev6/PyGithub
+install_pygithub=
+
+if ! Q python -c "import github"; then
+ cecho "Looks like the 'github' Python library is missing ($pygithub_url)..." $yellow
+ install_pygithub=y
+fi
+
+if [[ $install_pygithub =~ [Yy] ]]; then
+ echo_eval sudo pip install PyGithub
+fi
--
1.7.10.4

From 9ad82b8ec9add9f966ee3b6a5888f5a7507ddc73 Mon Sep 17 00:00:00 2001
From: Jason Mobarak
Date: Wed, 14 Aug 2013 15:59:59 -0700
Subject: [PATCH 2/2] install git python module too

---
install.sh | 12 ++++++++++++
1 file changed, 12 insertions(+)

diff --git a/install.sh b/install.sh
index 780395a..0cb08d8 100755
--- a/install.sh
+++ b/install.sh
@@ -118,3 +118,15 @@ fi
if [[ $install_pygithub =~ [Yy] ]]; then
echo_eval sudo pip install PyGithub
fi
+
+pygit_url=https://github.com/gitpython-developers/GitPython
+install_pygit=
+
+if ! Q python -c "import git"; then
+ cecho "Looks like the 'git' Python library is missing ($pygit_url)..." $yellow
+ install_pygit=y
+fi
+
+if [[ $install_pygit =~ [Yy] ]]; then
+ echo_eval sudo pip install GitPython
+fi
--
1.7.10.4

```