File tree 1 file changed +8
-5
lines changed 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -9,19 +9,22 @@ for schemaDir in schemas/v3* ; do
9
9
version=${vVersion: 1}
10
10
echo $version
11
11
12
+ # list of schemas to process, dependent schemas come first
12
13
schemas=(meta.yaml dialect.yaml schema.yaml schema-base.yaml)
13
14
14
- # find the latest commit date for each schema
15
+ # find the newest commit date for each schema
15
16
maxDate=" "
16
17
declare -A datesHash
17
18
for schema in " ${schemas[@]} " ; do
18
19
if [ -f " $schemaDir /$schema " ]; then
19
- lastCommitDate=$( git log -1 --format=" %ad" --date=short " $schemaDir /$schema " )
20
- if [ " $lastCommitDate " \> " $maxDate " ]; then
21
- maxDate=$lastCommitDate
20
+ newestCommitDate=$( git log -1 --format=" %ad" --date=short " $schemaDir /$schema " )
21
+
22
+ # the newest date across a schema and all its dependencies is its date stamp
23
+ if [ " $newestCommitDate " \> " $maxDate " ]; then
24
+ maxDate=$newestCommitDate
22
25
fi
23
26
datesHash[" $schema " ]=$maxDate
24
- echo $schema changed at $lastCommitDate
27
+ echo $schema changed at $newestCommitDate
25
28
fi
26
29
done
27
30
You can’t perform that action at this time.
0 commit comments