source: tools/PrettyGitLogs.sh @ 7cbd7ce

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexerpthread-emulationqualifiedEnum
Last change on this file since 7cbd7ce was 7cbd7ce, checked in by Thierry Delisle <tdelisle@…>, 6 years ago

Some debug info

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