@@ -134,31 +134,39 @@ Writes to the file the modified filepaths between two revisions.
134134` generate-hashes ` Command
135135
136136``` terminal
137- Usage: bazel-diff generate-hashes [-hV] -b=<bazelPath>
138- [-co=<bazelCommandOptions>]
139- [-m=<modifiedFilepaths >]
137+ Usage: bazel-diff generate-hashes [-m=<modifiedFilepaths> | -a] [-hV]
138+ -b=<bazelPath> [-co=<bazelCommandOptions>]
139+ [-s=<seedFilepaths >]
140140 [-so=<bazelStartupOptions>]
141141 -w=<workspacePath> <outputPath>
142142Writes to a file the SHA256 hashes for each Bazel Target in the provided
143143workspace.
144- <outputPath> The filepath to write the resulting JSON of dictionary
145- target => SHA-256 values
144+ <outputPath> The filepath to write the resulting JSON of
145+ dictionary target => SHA-256 values
146+ -a, --all-sourcefiles Experimental: Hash all sourcefile targets (instead of
147+ relying on --modifiedFilepaths), Warning:
148+ Performance may degrade from reading all source
149+ files
146150 -b, --bazelPath=<bazelPath>
147- Path to Bazel binary
151+ Path to Bazel binary
148152 -co, --bazelCommandOptions=<bazelCommandOptions>
149- Additional space separated Bazel command options used when
150- invoking Bazel
151- -h, --help Show this help message and exit.
153+ Additional space separated Bazel command options used
154+ when invoking Bazel
155+ -h, --help Show this help message and exit.
152156 -m, --modifiedFilepaths=<modifiedFilepaths>
153- The path to a file containing the list of modified
154- filepaths in the workspace, you can use the
155- 'modified-filepaths' command to get this list
157+ The path to a file containing the list of modified
158+ filepaths in the workspace, you can use the
159+ 'modified-filepaths' command to get this list
160+ -s, --seed-filepaths=<seedFilepaths>
161+ A text file containing a newline separated list of
162+ filepaths, each of these filepaths will be read and
163+ used as a seed for all targets.
156164 -so, --bazelStartupOptions=<bazelStartupOptions>
157- Additional space separated Bazel client startup options
158- used when invoking Bazel
159- -V, --version Print version information and exit.
165+ Additional space separated Bazel client startup
166+ options used when invoking Bazel
167+ -V, --version Print version information and exit.
160168 -w, --workspacePath=<workspacePath>
161- Path to Bazel workspace directory.
169+ Path to Bazel workspace directory.
162170```
163171
164172## Installing
0 commit comments