-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a new parameter --c4t-files to the dependency checker script.
This new parameter expects a file which contains the proto files of the c4t branch, to detect whether a proto file with a certain version can be re-used instead of bumping up the version again needlessly. The file can be simply generated using the also added create_c4t_file_listing.sh script. Also added temp directory to the gitignore as by default the create_c4t_file_listing.sh will throw the listing in that directory. (#39) Co-authored-by: Noctunus <[email protected]>
- Loading branch information
Showing
3 changed files
with
30 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
gen | ||
.vscode | ||
|
||
temp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
# Simple helper script to just create a file which contains a listing of all the cmp proto files in the c4t branch | ||
# This can then be used by the dependency checker to determine whether a new version of a proto file can be reused | ||
# when it's not present in the c4t branch | ||
|
||
OUTFILE=${1:-temp/c4tfiles.txt} | ||
git ls-tree -r --name-only origin/c4t proto/cmp | grep -oP "cmp/.*\.proto" > $OUTFILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters