We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19f17c4 commit 97d99a9Copy full SHA for 97d99a9
parse_gitlog.sh
@@ -1,4 +1,14 @@
1
+#!/bin/bash
2
+
3
# call git log, requesting just the commit date and commit message and direct the output to a temporary file.
4
-git log --since=$1 --pretty=format:"%ad %s" --date=short > scratch.txt
5
+#If no date passed in, use today.
6
+thevar=""
7
+if [$1 -eq ""]; then
8
+ thevar=`date +"%F"`
9
+else
10
+ thevar=$1
11
+fi
12
13
+git log --since=$thevar --pretty=format:"%ad %s" --date=short > scratch.txt
14
python process-scratch.py
0 commit comments