source: tools/PrettyGitLogs.sh @ 7cbd7ce

aaron-thesisarm-ehcleanup-dtorsdeferred_resndemanglerjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexer
Last change on this file since 7cbd7ce was 7cbd7ce, checked in by Thierry Delisle <tdelisle@…>, 3 years ago

Some debug info

  • Property mode set to 100755
File size: 687 bytes
Line 
1#!/bin/bash
2
3set -e
4
5GIT_UPDATE="$1/GIT_UPDATE"
6GIT_LOG="$1/GIT_LOG"
7GIT_DIFF="$1/GIT_DIFF"
8
9rm -f ${GIT_UPDATE}  ${GIT_LOG}  ${GIT_DIFF}
10
11echo "Printing git information into: "
12echo "    ${GIT_UPDATE}"
13echo "    ${GIT_LOG}"
14echo "    ${GIT_DIFF}"
15
16GitOldRef=$2
17GitNewRef=$3
18
19
20revisions=$(git rev-list ${GitOldRef}..${GitNewRef})
21
22for rev in ${revisions}; do
23    type=$(git cat-file -t ${rev})
24    echo "       via  ${rev} (${type})" >>  ${GIT_UPDATE}
25done
26rev=${GitOldRef}
27type=$(git cat-file -t ${rev})
28echo "      from  ${rev} (${type})" >>  ${GIT_UPDATE}
29
30git rev-list --format=short ${GitOldRef}...${GitNewRef} >  ${GIT_LOG}
31
32git diff --stat ${GitNewRef} ${GitOldRef} >  ${GIT_DIFF}
Note: See TracBrowser for help on using the repository browser.