Add "use-patch-diff" option
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 0 repliesNew
- v12 patches 3 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | parsing_cocci: Add feature to check only modified filesMakefile enter.ml globals/ +5 more | +143 | 0 replies | |
| 2/2 | docs: manual: Add option description in spatch_optionsdocs/ | +5 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [Cocci] [PATCH V2 0/2] Add "use-patch-diff" option
This patchset adds a feature to enable Coccinelle to only check all those files in a directory which were modified. It parses all the files obtained from the output of "git diff" and checks them against the specified cocci script.
An example for passing the "use-patchdiff" option is:
spatch -D report --sp-file for_each_child.cocci --use-patchdiff drivers/gpu
One thing to note while using the command is that while it can be invoked outside the target project directory, an absolute path to the target folder should be specified in such cases.
Sumera Priyadarsini (2):
parsing_cocci: Add feature to check only modified files
docs: manual: Add option description in spatch_options
Makefile | 2 +- docs/manual/spatch_options.tex | 5 ++ enter.ml | 17 +++-- globals/flag.ml | 2 +- globals/flag.mli | 2 +- ocaml/coccilib.mli | 1 + parsing_cocci/get_constants2.ml | 1 + parsing_cocci/patch_diff.ml | 118 ++++++++++++++++++++++++++++++++ parsing_cocci/patch_diff.mli | 9 +++ 9 files changed, 148 insertions(+), 9 deletions(-) create mode 100755 parsing_cocci/patch_diff.ml create mode 100644 parsing_cocci/patch_diff.mli
Signature · 6 lines
2.32.0 _______________________________________________ Cocci mailing list [email protected] https://systeme.lip6.fr/mailman/listinfo/cocci