Skip to content

Commit

Permalink
Output git-head revision in dump_git_info.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
achalddave committed Nov 29, 2017
1 parent 315fdc3 commit 56e9d8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dump_git_info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# git-log.txt : Output of
# git log --graph --pretty='format:%h -%d %s (%cd) <%an>'
# git-diff.txt : Output of git diff --patch --color=never
# git-head.txt : Output of git rev-parse HEAD

function usage {
echo "Usage: "
Expand All @@ -31,4 +32,5 @@ fi
git diff --patch --color=never > "${OUTPUT_DIR}/git-diff.patch"
git log --graph --pretty='format:%h -%d %s (%cd) <%an>' \
> "${OUTPUT_DIR}/git-log.txt"
git status -sb > "${OUTPUT_DIR}/git-status.txt"
git rev-parse HEAD > "${OUTPUT_DIR}/git-head.txt"
git status -sb > "${OUTPUT_DIR}/git-status.txt"

0 comments on commit 56e9d8c

Please sign in to comment.