ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexerpthread-emulationqualifiedEnum
Last change
on this file since 80a9898 was
9f5bb817,
checked in by Thierry Delisle <tdelisle@…>, 6 years ago
|
PrettyGitLogs? now requires both the source dir and the build dir but can be called from anywhere
|
-
Property mode set to
100755
|
File size:
606 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | set -e |
---|
4 | |
---|
5 | GIT="git --git-dir=$1/.git" |
---|
6 | |
---|
7 | GIT_UPDATE="$2/GIT_UPDATE" |
---|
8 | GIT_LOG="$2/GIT_LOG" |
---|
9 | GIT_DIFF="$2/GIT_DIFF" |
---|
10 | |
---|
11 | rm -f ${GIT_UPDATE} ${GIT_LOG} ${GIT_DIFF} |
---|
12 | |
---|
13 | GitOldRef=$3 |
---|
14 | GitNewRef=$4 |
---|
15 | |
---|
16 | |
---|
17 | revisions=$(git rev-list ${GitOldRef}..${GitNewRef}) |
---|
18 | |
---|
19 | for rev in ${revisions}; do |
---|
20 | type=$(git cat-file -t ${rev}) |
---|
21 | echo " via ${rev} (${type})" >> ${GIT_UPDATE} |
---|
22 | done |
---|
23 | rev=${GitOldRef} |
---|
24 | type=$(git cat-file -t ${rev}) |
---|
25 | echo " from ${rev} (${type})" >> ${GIT_UPDATE} |
---|
26 | |
---|
27 | git rev-list --format=short ${GitOldRef}...${GitNewRef} > ${GIT_LOG} |
---|
28 | |
---|
29 | git diff --stat ${GitNewRef} ${GitOldRef} > ${GIT_DIFF} |
---|
Note: See
TracBrowser
for help on using the repository browser.