Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adds option for no logging, doesn't rely on remote

  • Loading branch information...
commit 31998d59728bb122086f1167145c645c6645b5d0 1 parent dc6cf30
@goatslacker authored
Showing with 12 additions and 6 deletions.
  1. +9 −3 bin/git-stats
  2. +2 −2 git.js
  3. +1 −1  package.json
View
12 bin/git-stats
@@ -1,6 +1,12 @@
#!/bin/bash
-if [ $1 != "--conf" ]
+LOG=false
+if [ $1 == "--do-not-log" ]
then
- git "$@"
+ shift
+ LOG=true
+fi
+git "$@"
+if [ $LOG == true ]
+ then
+ nohup bin/js "$@" > /dev/null 2>&1 &
fi
-nohup bin/js "$@" > /dev/null 2>&1 &
View
4 git.js
@@ -61,9 +61,9 @@ gist.on('error:credentials', function () {
throw new Error("Credentials are required: GitHub username and token.");
});
-// If the gist doesn't exist, create a new one.
+// If the gist doesn't exist, keep it local.
gist.on('error:gist_id', function () {
- gist.create(JSON.stringify([log]), "git-stats");
+// gist.create(JSON.stringify([log]), "git-stats");
});
// When new gist is created, notify user and
View
2  package.json
@@ -1,6 +1,6 @@
{
"name": "git-stats",
- "version": "0.0.2",
+ "version": "0.0.3",
"author": {
"name": "Josh Perez",
"email": "josh@goatslacker.com",
Please sign in to comment.
Something went wrong with that request. Please try again.