From e85036c044320f11df22d3f23f248fdd4e99a41b Mon Sep 17 00:00:00 2001 From: Michael Ernst Date: Thu, 30 May 2024 18:20:52 -0700 Subject: [PATCH] How to determine the method names of changed methods (#582) --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 35875a361..76a64b291 100644 --- a/README.md +++ b/README.md @@ -232,6 +232,14 @@ By default, `defects4j query` returns information on active bugs. The `[-D]` flag returns information only on deprecated bugs, while the `[-A]` flag returns information for all active and deprecated bugs. +To determine the methods that are changed between the buggy and fixed version of the code: + +1. Add this line to your user-level git attributes file: + `*.java diff=java` + +2. Run `git diff --no-index`, for example `git diff --no-index /tmp/lang_1_buggy /tmp/lang_1_fixed`. + In the output, every line starting with "@" gives the method name of a changed method. + Test execution framework --------------------------