commit b9cd0c94b0815c8b72e4350cbe29d0e59e2354f1
Author: Simon Waton <spw01@protonmail.com>
Date: Tue May 14 21:45:07 2019 -0400
Second commit from sg
diff --git a/.sg/sgLog.txt b/.sg/sgLog.txt
index 75a5b51..d3def5e 100644
--- a/.sg/sgLog.txt
+++ b/.sg/sgLog.txt
@@ -1,475 +1,27 @@
-2019/05/11 13:49:32 INFO Running: which git 2>&1
-2019/05/11 13:49:32 INFO Returned: 0
-2019/05/11 13:49:32 INFO Running: /usr/bin/git status 2>&1
-2019/05/11 13:49:32 INFO Returned: 0
-2019/05/11 14:06:18 INFO Running: which git 2>&1
-2019/05/11 14:06:18 INFO Returned: 0
-2019/05/11 14:06:18 INFO Running: which git 2>&1
-2019/05/11 14:06:18 INFO Returned: 0
-2019/05/11 14:06:18 INFO Running: /usr/bin/git status --porcelain 2>&1
-2019/05/11 14:06:18 INFO Returned: 0
-2019/05/11 14:07:16 INFO Running: which git 2>&1
-2019/05/11 14:07:16 INFO Returned: 0
-2019/05/11 14:07:16 INFO Running: which git 2>&1
-2019/05/11 14:07:16 INFO Returned: 0
-2019/05/11 14:07:16 INFO Running: /usr/bin/git status --porcelain 2>&1
-2019/05/11 14:07:16 INFO Returned: 0
-2019/05/11 14:07:33 INFO Running: which git 2>&1
-2019/05/11 14:07:33 INFO Returned: 0
-2019/05/11 14:07:33 INFO Running: which git 2>&1
-2019/05/11 14:07:33 INFO Returned: 0
-2019/05/11 14:07:33 INFO Running: /usr/bin/git status --porcelain 2>&1
-2019/05/11 14:07:33 INFO Returned: 0
-2019/05/11 14:08:14 INFO Running: which git 2>&1
-2019/05/11 14:08:14 INFO Returned: 0
-2019/05/11 14:08:14 INFO Running: which git 2>&1
-2019/05/11 14:08:14 INFO Returned: 0
-2019/05/11 14:08:14 INFO Running: /usr/bin/git status --porcelain 2>&1
-2019/05/11 14:08:14 INFO Returned: 0
-2019/05/11 14:12:41 INFO Running: which git 2>&1
-2019/05/11 14:12:41 INFO Returned: 0
-2019/05/11 14:12:41 INFO Running: which git 2>&1
-2019/05/11 14:12:41 INFO Returned: 0
-2019/05/11 14:12:41 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 14:12:41 INFO Returned: 0
-2019/05/11 14:13:33 INFO Running: which git 2>&1
-2019/05/11 14:13:33 INFO Returned: 0
-2019/05/11 14:13:33 INFO Running: which git 2>&1
-2019/05/11 14:13:33 INFO Returned: 0
-2019/05/11 14:13:33 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 14:13:33 INFO Returned: 0
-2019/05/11 14:14:16 INFO Running: which git 2>&1
-2019/05/11 14:14:16 INFO Returned: 0
-2019/05/11 14:14:16 INFO Running: which git 2>&1
-2019/05/11 14:14:16 INFO Returned: 0
-2019/05/11 14:14:16 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 14:14:16 INFO Returned: 0
-2019/05/11 14:15:57 INFO Running: which git 2>&1
-2019/05/11 14:15:57 INFO Returned: 0
-2019/05/11 14:15:57 INFO Running: which git 2>&1
-2019/05/11 14:15:57 INFO Returned: 0
-2019/05/11 14:15:57 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 14:15:57 INFO Returned: 0
-2019/05/11 14:17:10 INFO Running: which git 2>&1
-2019/05/11 14:17:10 INFO Returned: 0
-2019/05/11 14:17:10 INFO Running: which git 2>&1
-2019/05/11 14:17:10 INFO Returned: 0
-2019/05/11 14:17:10 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 14:17:10 INFO Returned: 0
-2019/05/11 14:17:43 INFO Running: which git 2>&1
-2019/05/11 14:17:43 INFO Returned: 0
-2019/05/11 14:17:43 INFO Running: which git 2>&1
-2019/05/11 14:17:43 INFO Returned: 0
-2019/05/11 14:17:43 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 14:17:43 INFO Returned: 0
-2019/05/11 14:18:20 INFO Running: which git 2>&1
-2019/05/11 14:18:20 INFO Returned: 0
-2019/05/11 14:18:20 INFO Running: which git 2>&1
-2019/05/11 14:18:20 INFO Returned: 0
-2019/05/11 14:18:20 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 14:18:20 INFO Returned: 0
-2019/05/11 14:18:56 INFO Running: which git 2>&1
-2019/05/11 14:18:56 INFO Returned: 0
-2019/05/11 14:18:56 INFO Running: which git 2>&1
-2019/05/11 14:18:56 INFO Returned: 0
-2019/05/11 14:18:56 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 14:18:56 INFO Returned: 0
-2019/05/11 14:22:02 INFO Running: which git 2>&1
-2019/05/11 14:22:02 INFO Returned: 0
-2019/05/11 14:22:02 INFO Running: which git 2>&1
-2019/05/11 14:22:02 INFO Returned: 0
-2019/05/11 14:22:02 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 14:22:02 INFO Returned: 0
-2019/05/11 14:22:16 INFO Running: which git 2>&1
-2019/05/11 14:22:16 INFO Returned: 0
-2019/05/11 14:22:16 INFO Running: which git 2>&1
-2019/05/11 14:22:16 INFO Returned: 0
-2019/05/11 14:22:16 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 14:22:16 INFO Returned: 0
-2019/05/11 14:22:37 INFO Running: which git 2>&1
-2019/05/11 14:22:37 INFO Returned: 0
-2019/05/11 14:22:37 INFO Running: which git 2>&1
-2019/05/11 14:22:37 INFO Returned: 0
-2019/05/11 14:22:37 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 14:22:37 INFO Returned: 0
-2019/05/11 14:23:25 INFO Running: which git 2>&1
-2019/05/11 14:23:25 INFO Returned: 0
-2019/05/11 14:23:25 INFO Running: which git 2>&1
-2019/05/11 14:23:25 INFO Returned: 0
-2019/05/11 14:23:25 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 14:23:25 INFO Returned: 0
-2019/05/11 14:23:31 INFO Running: which git 2>&1
-2019/05/11 14:23:31 INFO Returned: 0
-2019/05/11 14:23:31 INFO Running: which git 2>&1
-2019/05/11 14:23:31 INFO Returned: 0
-2019/05/11 14:23:31 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 14:23:31 INFO Returned: 0
-2019/05/11 14:23:55 INFO Running: which git 2>&1
-2019/05/11 14:23:55 INFO Returned: 0
-2019/05/11 14:23:55 INFO Running: which git 2>&1
-2019/05/11 14:23:55 INFO Returned: 0
-2019/05/11 14:23:55 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 14:23:55 INFO Returned: 0
-2019/05/11 14:24:09 INFO Running: which git 2>&1
-2019/05/11 14:24:09 INFO Returned: 0
-2019/05/11 14:24:09 INFO Running: which git 2>&1
-2019/05/11 14:24:09 INFO Returned: 0
-2019/05/11 14:24:09 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 14:24:09 INFO Returned: 0
-2019/05/11 14:24:58 INFO Running: which git 2>&1
-2019/05/11 14:24:58 INFO Returned: 0
-2019/05/11 14:24:58 INFO Running: which git 2>&1
-2019/05/11 14:24:58 INFO Returned: 0
-2019/05/11 14:24:58 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 14:24:58 INFO Returned: 0
-2019/05/11 14:25:27 INFO Running: which git 2>&1
-2019/05/11 14:25:27 INFO Returned: 0
-2019/05/11 14:25:27 INFO Running: which git 2>&1
-2019/05/11 14:25:27 INFO Returned: 0
-2019/05/11 14:25:27 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 14:25:27 INFO Returned: 0
-2019/05/11 14:25:34 INFO Running: which git 2>&1
-2019/05/11 14:25:34 INFO Returned: 0
-2019/05/11 14:25:34 INFO Running: which git 2>&1
-2019/05/11 14:25:34 INFO Returned: 0
-2019/05/11 14:25:34 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 14:25:34 INFO Returned: 0
-2019/05/11 14:26:12 INFO Running: which git 2>&1
-2019/05/11 14:26:12 INFO Returned: 0
-2019/05/11 14:26:12 INFO Running: which git 2>&1
-2019/05/11 14:26:12 INFO Returned: 0
-2019/05/11 14:26:12 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 14:26:12 INFO Returned: 0
-2019/05/11 14:28:06 INFO Running: which git 2>&1
-2019/05/11 14:28:06 INFO Returned: 0
-2019/05/11 14:28:06 INFO Running: which git 2>&1
-2019/05/11 14:28:06 INFO Returned: 0
-2019/05/11 14:28:06 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 14:28:06 INFO Returned: 0
-2019/05/11 14:29:18 INFO Running: which git 2>&1
-2019/05/11 14:29:18 INFO Returned: 0
-2019/05/11 14:29:18 INFO Running: which git 2>&1
-2019/05/11 14:29:18 INFO Returned: 0
-2019/05/11 14:29:18 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 14:29:18 INFO Returned: 0
-2019/05/11 14:29:22 INFO Running: which git 2>&1
-2019/05/11 14:29:22 INFO Returned: 0
-2019/05/11 14:29:22 INFO Running: which git 2>&1
-2019/05/11 14:29:22 INFO Returned: 0
-2019/05/11 14:29:22 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 14:29:22 INFO Returned: 0
-2019/05/11 14:37:44 INFO Running: which git 2>&1
-2019/05/11 14:37:44 INFO Returned: 0
-2019/05/11 14:37:44 INFO Running: which git 2>&1
-2019/05/11 14:37:44 INFO Returned: 0
-2019/05/11 14:37:44 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 14:37:44 INFO Returned: 0
-2019/05/11 14:37:47 INFO Running: which git 2>&1
-2019/05/11 14:37:47 INFO Returned: 0
-2019/05/11 14:37:47 INFO Running: which git 2>&1
-2019/05/11 14:37:47 INFO Returned: 0
-2019/05/11 14:37:47 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 14:37:47 INFO Returned: 0
-2019/05/11 14:38:38 INFO Running: which git 2>&1
-2019/05/11 14:38:38 INFO Returned: 0
-2019/05/11 14:38:38 INFO Running: which git 2>&1
-2019/05/11 14:38:38 INFO Returned: 0
-2019/05/11 14:38:38 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 14:38:38 INFO Returned: 0
-2019/05/11 18:36:07 INFO Running: which git 2>&1
-2019/05/11 18:36:07 INFO Returned: 0
-2019/05/11 18:36:07 INFO Running: which git 2>&1
-2019/05/11 18:36:07 INFO Returned: 0
-2019/05/11 18:36:07 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 18:36:07 INFO Returned: 0
-2019/05/11 19:02:57 INFO Running: which git 2>&1
-2019/05/11 19:02:57 INFO Returned: 0
-2019/05/11 19:02:57 INFO Running: which git 2>&1
-2019/05/11 19:02:57 INFO Returned: 0
-2019/05/11 19:02:57 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 19:02:57 INFO Returned: 0
-2019/05/11 19:03:09 INFO Running: which git 2>&1
-2019/05/11 19:03:09 INFO Returned: 0
-2019/05/11 19:03:09 INFO Running: which git 2>&1
-2019/05/11 19:03:09 INFO Returned: 0
-2019/05/11 19:03:09 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 19:03:09 INFO Returned: 0
-2019/05/11 19:14:11 INFO Running: which git 2>&1
-2019/05/11 19:14:11 INFO Returned: 0
-2019/05/11 19:14:11 INFO Running: which git 2>&1
-2019/05/11 19:14:11 INFO Returned: 0
-2019/05/11 19:14:11 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 19:14:11 INFO Returned: 0
-2019/05/11 19:15:45 INFO Running: which git 2>&1
-2019/05/11 19:15:45 INFO Returned: 0
-2019/05/11 19:15:45 INFO Running: which git 2>&1
-2019/05/11 19:15:45 INFO Returned: 0
-2019/05/11 19:15:45 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 19:15:45 INFO Returned: 0
-2019/05/11 19:20:40 INFO Running: which git 2>&1
-2019/05/11 19:20:40 INFO Returned: 0
-2019/05/11 19:20:40 INFO Running: which git 2>&1
-2019/05/11 19:20:40 INFO Returned: 0
-2019/05/11 19:20:40 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 19:20:40 INFO Returned: 0
-2019/05/11 20:48:53 INFO Running: which git 2>&1
-2019/05/11 20:48:53 ERROR Returned: 0
-2019/05/11 20:48:53 INFO Running: which git 2>&1
-2019/05/11 20:48:53 ERROR Returned: 0
-2019/05/11 20:48:53 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 20:48:53 ERROR Returned: 0
-2019/05/11 20:49:07 INFO Running: which git 2>&1
-2019/05/11 20:49:07 ERROR Returned: 0
-2019/05/11 20:49:07 INFO Running: which git 2>&1
-2019/05/11 20:49:07 ERROR Returned: 0
-2019/05/11 20:49:07 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 20:49:07 ERROR Returned: 0
-2019/05/11 20:51:24 INFO Running: which git 2>&1
-2019/05/11 20:51:24 ERROR Returned: 0
-2019/05/11 20:51:24 INFO Running: which git 2>&1
-2019/05/11 20:51:24 ERROR Returned: 0
-2019/05/11 20:51:24 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 20:51:24 ERROR Returned: 0
-2019/05/11 20:51:37 INFO Running: which git 2>&1
-2019/05/11 20:51:37 ERROR Returned: 0
-2019/05/11 20:51:37 INFO Running: /usr/bin/git add install.sh 2>&1
-2019/05/11 20:51:37 ERROR Returned: 0
-2019/05/11 20:51:37 INFO Running: /usr/bin/git add lib/SimplyGit/Git.pm 2>&1
-2019/05/11 20:51:37 ERROR Returned: 0
-2019/05/11 20:51:37 INFO Running: /usr/bin/git add lib/SimplyGit/Shellex.pm 2>&1
-2019/05/11 20:51:37 ERROR Returned: 0
-2019/05/11 20:51:37 INFO Running: /usr/bin/git add sg 2>&1
-2019/05/11 20:51:37 ERROR Returned: 0
-2019/05/11 20:51:37 INFO Running: /usr/bin/git add README.md 2>&1
-2019/05/11 20:51:37 ERROR Returned: 0
-2019/05/11 20:51:42 INFO Running: which git 2>&1
-2019/05/11 20:51:42 ERROR Returned: 0
-2019/05/11 20:51:42 INFO Running: which git 2>&1
-2019/05/11 20:51:42 ERROR Returned: 0
-2019/05/11 20:51:42 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 20:51:42 ERROR Returned: 0
-2019/05/11 20:58:38 INFO Running: which git 2>&1
-2019/05/11 20:58:38 ERROR Returned: 0
-2019/05/11 20:58:38 INFO Running: which git 2>&1
-2019/05/11 20:58:38 ERROR Returned: 0
-2019/05/11 20:58:38 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 20:58:38 ERROR Returned: 0
-2019/05/11 21:01:29 INFO Running: which git 2>&1
-2019/05/11 21:01:29 ERROR Returned: 0
-2019/05/11 21:01:29 INFO Running: which git 2>&1
-2019/05/11 21:01:29 ERROR Returned: 0
-2019/05/11 21:01:29 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/11 21:01:29 ERROR Returned: 0
-2019/05/14 09:56:21 INFO Running: which git 2>&1
-2019/05/14 09:56:21 ERROR Returned: 0
-2019/05/14 09:56:21 INFO Running: which git 2>&1
-2019/05/14 09:56:21 ERROR Returned: 0
-2019/05/14 09:56:21 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 09:56:21 ERROR Returned: 0
-2019/05/14 19:10:23 INFO Running: which git 2>&1
-2019/05/14 19:10:23 ERROR Returned: 0
-2019/05/14 19:10:23 INFO Running: which git 2>&1
-2019/05/14 19:10:23 ERROR Returned: 0
-2019/05/14 19:10:23 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 19:10:23 ERROR Returned: 0
-2019/05/14 19:10:56 INFO Running: which git 2>&1
-2019/05/14 19:10:56 ERROR Returned: 0
-2019/05/14 19:10:56 INFO Running: which git 2>&1
-2019/05/14 19:10:56 ERROR Returned: 0
-2019/05/14 19:10:56 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 19:10:56 ERROR Returned: 0
-2019/05/14 19:11:33 INFO Running: which git 2>&1
-2019/05/14 19:11:33 ERROR Returned: 0
-2019/05/14 19:11:33 INFO Running: which git 2>&1
-2019/05/14 19:11:33 ERROR Returned: 0
-2019/05/14 19:11:33 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 19:11:33 ERROR Returned: 0
-2019/05/14 19:12:49 INFO Running: which git 2>&1
-2019/05/14 19:12:49 ERROR Returned: 0
-2019/05/14 19:12:49 INFO Running: which git 2>&1
-2019/05/14 19:12:49 ERROR Returned: 0
-2019/05/14 19:12:49 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 19:12:49 ERROR Returned: 0
-2019/05/14 19:14:13 INFO Running: which git 2>&1
-2019/05/14 19:14:13 ERROR Returned: 0
-2019/05/14 19:14:13 INFO Running: which git 2>&1
-2019/05/14 19:14:13 ERROR Returned: 0
-2019/05/14 19:14:13 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 19:14:13 ERROR Returned: 0
-2019/05/14 19:16:26 INFO Running: which git 2>&1
-2019/05/14 19:16:26 ERROR Returned: 0
-2019/05/14 19:16:26 INFO Running: which git 2>&1
-2019/05/14 19:16:26 ERROR Returned: 0
-2019/05/14 19:16:26 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 19:16:26 ERROR Returned: 0
-2019/05/14 19:16:31 INFO Running: which git 2>&1
-2019/05/14 19:16:31 ERROR Returned: 0
-2019/05/14 19:16:31 INFO Running: which git 2>&1
-2019/05/14 19:16:31 ERROR Returned: 0
-2019/05/14 19:16:31 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 19:16:31 ERROR Returned: 0
-2019/05/14 19:16:35 INFO Running: which git 2>&1
-2019/05/14 19:16:35 ERROR Returned: 0
-2019/05/14 19:16:35 INFO Running: which git 2>&1
-2019/05/14 19:16:35 ERROR Returned: 0
-2019/05/14 19:16:35 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 19:16:35 ERROR Returned: 0
-2019/05/14 19:28:13 INFO Running: which git 2>&1
-2019/05/14 19:28:13 ERROR Returned: 0
-2019/05/14 19:28:13 INFO Running: which git 2>&1
-2019/05/14 19:28:13 ERROR Returned: 0
-2019/05/14 19:28:13 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 19:28:13 ERROR Returned: 0
-2019/05/14 19:55:34 INFO Running: which git 2>&1
-2019/05/14 19:55:34 ERROR Returned: 0
-2019/05/14 19:55:34 INFO Running: which git 2>&1
-2019/05/14 19:55:34 ERROR Returned: 0
-2019/05/14 19:55:34 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 19:55:34 ERROR Returned: 0
-2019/05/14 20:04:44 INFO Running: which git 2>&1
-2019/05/14 20:04:44 ERROR Returned: 0
-2019/05/14 20:04:44 INFO Running: which git 2>&1
-2019/05/14 20:04:44 ERROR Returned: 0
-2019/05/14 20:04:44 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 20:04:44 ERROR Returned: 0
-2019/05/14 20:11:19 INFO Running: which git 2>&1
-2019/05/14 20:11:19 ERROR Returned: 0
-2019/05/14 20:11:19 INFO Running: which git 2>&1
-2019/05/14 20:11:19 ERROR Returned: 0
-2019/05/14 20:11:19 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 20:11:19 ERROR Returned: 0
-2019/05/14 20:13:10 INFO Running: which git 2>&1
-2019/05/14 20:13:10 ERROR Returned: 0
-2019/05/14 20:13:10 INFO Running: which git 2>&1
-2019/05/14 20:13:10 ERROR Returned: 0
-2019/05/14 20:13:10 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 20:13:10 ERROR Returned: 0
-2019/05/14 20:15:00 INFO Running: which git 2>&1
-2019/05/14 20:15:00 ERROR Returned: 0
-2019/05/14 20:15:00 INFO Running: which git 2>&1
-2019/05/14 20:15:00 ERROR Returned: 0
-2019/05/14 20:15:00 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 20:15:00 ERROR Returned: 0
-2019/05/14 20:17:55 INFO Running: which git 2>&1
-2019/05/14 20:17:55 ERROR Returned: 0
-2019/05/14 20:17:55 INFO Running: which git 2>&1
-2019/05/14 20:17:55 ERROR Returned: 0
-2019/05/14 20:17:55 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 20:17:55 ERROR Returned: 0
-2019/05/14 20:18:40 INFO Running: which git 2>&1
-2019/05/14 20:18:40 ERROR Returned: 0
-2019/05/14 20:18:40 INFO Running: which git 2>&1
-2019/05/14 20:18:40 ERROR Returned: 0
-2019/05/14 20:18:40 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 20:18:40 ERROR Returned: 0
-2019/05/14 20:19:08 INFO Running: which git 2>&1
-2019/05/14 20:19:08 ERROR Returned: 0
-2019/05/14 20:19:08 INFO Running: which git 2>&1
-2019/05/14 20:19:08 ERROR Returned: 0
-2019/05/14 20:19:08 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 20:19:08 ERROR Returned: 0
-2019/05/14 20:26:29 INFO Running: which git 2>&1
-2019/05/14 20:26:29 ERROR Returned: 0
-2019/05/14 20:26:29 INFO Running: which git 2>&1
-2019/05/14 20:26:29 ERROR Returned: 0
-2019/05/14 20:26:29 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 20:26:29 ERROR Returned: 0
-2019/05/14 20:27:38 INFO Running: which git 2>&1
-2019/05/14 20:27:38 ERROR Returned: 0
-2019/05/14 20:27:38 INFO Running: which git 2>&1
-2019/05/14 20:27:38 ERROR Returned: 0
-2019/05/14 20:27:38 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 20:27:38 ERROR Returned: 0
-2019/05/14 20:34:19 INFO Running: which git 2>&1
-2019/05/14 20:34:19 ERROR Returned: 0
-2019/05/14 20:34:19 INFO Running: which git 2>&1
-2019/05/14 20:34:19 ERROR Returned: 0
-2019/05/14 20:34:19 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 20:34:19 ERROR Returned: 0
-2019/05/14 20:37:40 INFO Running: which git 2>&1
-2019/05/14 20:37:40 ERROR Returned: 0
-2019/05/14 20:37:40 INFO Running: which git 2>&1
-2019/05/14 20:37:40 ERROR Returned: 0
-2019/05/14 20:37:40 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 20:37:40 ERROR Returned: 0
-2019/05/14 20:37:47 INFO Running: which git 2>&1
-2019/05/14 20:37:47 ERROR Returned: 0
-2019/05/14 20:37:47 INFO Running: which git 2>&1
-2019/05/14 20:37:47 ERROR Returned: 0
-2019/05/14 20:37:47 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 20:37:47 ERROR Returned: 0
-2019/05/14 20:38:27 INFO Running: which git 2>&1
-2019/05/14 20:38:27 ERROR Returned: 0
-2019/05/14 20:38:27 INFO Running: which git 2>&1
-2019/05/14 20:38:27 ERROR Returned: 0
-2019/05/14 20:38:27 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 20:38:27 ERROR Returned: 0
-2019/05/14 20:38:30 INFO Running: which git 2>&1
-2019/05/14 20:38:30 ERROR Returned: 0
-2019/05/14 20:38:30 INFO Running: which git 2>&1
-2019/05/14 20:38:30 ERROR Returned: 0
-2019/05/14 20:38:30 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 20:38:30 ERROR Returned: 0
-2019/05/14 20:38:34 INFO Running: which git 2>&1
-2019/05/14 20:38:34 ERROR Returned: 0
-2019/05/14 20:38:34 INFO Running: which git 2>&1
-2019/05/14 20:38:34 ERROR Returned: 0
-2019/05/14 20:38:34 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 20:38:34 ERROR Returned: 0
-2019/05/14 20:40:07 INFO Running: which git 2>&1
-2019/05/14 20:40:07 ERROR Returned: 0
-2019/05/14 20:40:07 INFO Running: which git 2>&1
-2019/05/14 20:40:07 ERROR Returned: 0
-2019/05/14 20:40:07 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 20:40:07 ERROR Returned: 0
-2019/05/14 20:41:08 INFO Running: which git 2>&1
-2019/05/14 20:41:08 ERROR Returned: 0
-2019/05/14 20:41:08 INFO Running: which git 2>&1
-2019/05/14 20:41:08 ERROR Returned: 0
-2019/05/14 20:41:08 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 20:41:08 ERROR Returned: 0
-2019/05/14 20:43:25 INFO Running: which git 2>&1
-2019/05/14 20:43:25 ERROR Returned: 0
-2019/05/14 20:43:25 INFO Running: which git 2>&1
-2019/05/14 20:43:25 ERROR Returned: 0
-2019/05/14 20:43:25 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 20:43:25 ERROR Returned: 0
-2019/05/14 20:44:07 INFO Running: which git 2>&1
-2019/05/14 20:44:07 ERROR Returned: 0
-2019/05/14 20:44:07 INFO Running: which git 2>&1
-2019/05/14 20:44:07 ERROR Returned: 0
-2019/05/14 20:44:07 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 20:44:07 ERROR Returned: 0
-2019/05/14 20:45:13 INFO Running: which git 2>&1
-2019/05/14 20:45:13 ERROR Returned: 0
-2019/05/14 20:45:13 INFO Running: which git 2>&1
-2019/05/14 20:45:13 ERROR Returned: 0
-2019/05/14 20:45:13 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 20:45:13 ERROR Returned: 0
-2019/05/14 20:45:27 INFO Running: which git 2>&1
-2019/05/14 20:45:27 ERROR Returned: 0
-2019/05/14 20:45:27 INFO Running: which git 2>&1
-2019/05/14 20:45:27 ERROR Returned: 0
-2019/05/14 20:45:27 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 20:45:27 ERROR Returned: 0
-2019/05/14 21:13:18 INFO Running: which git 2>&1
-2019/05/14 21:13:18 ERROR Returned: 0
-2019/05/14 21:13:18 INFO Running: which git 2>&1
-2019/05/14 21:13:18 ERROR Returned: 0
-2019/05/14 21:13:18 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 21:13:18 ERROR Returned: 0
-2019/05/14 21:13:25 INFO Running: which git 2>&1
-2019/05/14 21:13:25 ERROR Returned: 0
-2019/05/14 21:13:25 INFO Running: which git 2>&1
-2019/05/14 21:13:25 ERROR Returned: 0
-2019/05/14 21:13:25 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 21:13:25 ERROR Returned: 0
-2019/05/14 21:15:27 INFO Running: which git 2>&1
-2019/05/14 21:15:27 ERROR Returned: 0
-2019/05/14 21:15:27 INFO Running: which git 2>&1
-2019/05/14 21:15:27 ERROR Returned: 0
-2019/05/14 21:15:27 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
-2019/05/14 21:15:27 ERROR Returned: 0
-2019/05/14 21:15:33 INFO Running: which git 2>&1
-2019/05/14 21:15:33 ERROR Returned: 0
-2019/05/14 21:15:33 INFO Running: /usr/bin/git add .sg/sgLog.txt 2>&1
+2019/05/14 21:42:01 INFO Running: which git 2>&1
+2019/05/14 21:42:01 INFO Returned: 0
+2019/05/14 21:42:01 INFO Running: which git 2>&1
+2019/05/14 21:42:01 INFO Returned: 0
+2019/05/14 21:42:01 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
+2019/05/14 21:42:01 INFO Returned: 0
+2019/05/14 21:42:06 INFO Running: which git 2>&1
+2019/05/14 21:42:06 INFO Returned: 0
+2019/05/14 21:42:06 INFO Running: which git 2>&1
+2019/05/14 21:42:06 INFO Returned: 0
+2019/05/14 21:42:06 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
+2019/05/14 21:42:06 INFO Returned: 0
+2019/05/14 21:42:53 INFO Running: which git 2>&1
+2019/05/14 21:42:53 INFO Returned: 0
+2019/05/14 21:42:53 INFO Running: which git 2>&1
+2019/05/14 21:42:53 INFO Returned: 0
+2019/05/14 21:42:53 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
+2019/05/14 21:42:53 INFO Returned: 0
+2019/05/14 21:44:37 INFO Running: which git 2>&1
+2019/05/14 21:44:37 INFO Returned: 0
+2019/05/14 21:44:37 INFO Running: which git 2>&1
+2019/05/14 21:44:37 INFO Returned: 0
+2019/05/14 21:44:37 INFO Running: /usr/bin/git status -uall --porcelain 2>&1
+2019/05/14 21:44:37 INFO Returned: 0
+2019/05/14 21:44:54 INFO Running: which git 2>&1
+2019/05/14 21:44:54 INFO Returned: 0
+2019/05/14 21:44:54 INFO Running: /usr/bin/git add .sg/sgLog.txt 2>&1
diff --git a/lib/SimplyGit/Git.pm b/lib/SimplyGit/Git.pm
index 11de835..26bb668 100644
--- a/lib/SimplyGit/Git.pm
+++ b/lib/SimplyGit/Git.pm
@@ -58,7 +58,7 @@ sub returnState {
my @modified;
my @added;
foreach my $file ( @statusLines ) {
- $file =~ m/^([A-Z?]{1,2})\ {1,2}(.*)/;
+ $file =~ m/^\ {0,1}([A-Z?]{1,2})\ {1,2}(.*)/;
my $fileAttrs = $1;
my $filename = $2;
my @attrs = split("",$fileAttrs);
@@ -108,6 +108,6 @@ sub pushChanges {
my $logger = shift;
my $gitCmd = findBin("git",$logger);
- shellex("$gitCmd push",$logger);
+ my $output = shellex("$gitCmd push",$logger);
}
diff --git a/lib/SimplyGit/Shellex.pm b/lib/SimplyGit/Shellex.pm
index 745898d..85e134d 100644
--- a/lib/SimplyGit/Shellex.pm
+++ b/lib/SimplyGit/Shellex.pm
@@ -16,7 +16,16 @@ sub shellex {
my $output = `$cmd 2>&1`;
my $rc = $?;
if ( defined $logger && $logger ne '' ) {
- $logger->error("Returned: $rc");
+ $logger->info("Returned: $rc");
+ }
+
+ if ( $rc != 0 ) {
+ if ( defined $logger && $logger ne '' ) {
+ $logger->error("$cmd returned non-zero: $rc");
+ }
+
+ print "$cmd returned non-zero: $rc, exiting\n";
+ exit 1;
}
return $output;
diff --git a/sg b/sg
index dab67b0..ff376c9 100755
--- a/sg
+++ b/sg
@@ -56,6 +56,36 @@ GetOptions(
'branch-from-master',
);
+sub printHelp {
+
+ my $help = <<EOF
+simply-git
+Usage:
+ --view
+ Display git status of files and other information
+
+ --push-all
+ Push all untracked and modified files (can be used with interactive mode)
+
+ --interactive
+ Enable interactive mode with supported opts
+
+ --reset-from-master
+ Reset all current changes so that the file tree matches upstream/master
+
+ --branch-from-master
+ Create a new clean branch from upstream/master
+EOF
+;
+
+ print "$help\n";
+
+}
+
+if ( scalar keys %args < 1 ) {
+ printHelp();
+}
+
if ( defined $args{'view'} ) {
my ( $untrackedRef, $modifiedRef, $addedRef ) = returnState($logger);
@@ -148,11 +178,14 @@ if ( defined $args{'push-all'} ) {
exit 1;
}
- pushChanges($logger);
+ my $gitOutput = pushChanges($logger);
+ print "Git returned:\n$gitOutput\n";
} else {
pushChanges($logger);
+ my $gitOutput = pushChanges($logger);
+ print "Git returned:\n$gitOutput\n";
}