When a file is renamed, include old file name in Patch attribute
When a file is renamed, the value of `file` in the Patch attribute
is the new file name. The old file name is not included.
This means it is not possible to find the old file name by running
a gerrit query command.
Add a new field `fileOld`. When the file is renamed, this field
contains the old file name.
The name of the existing field is unchanged. Renaming to `fileNew`
would make the name more meaningful and consistent with `fileOld`,
but would make it incompatible with user scripts that expect it to
be called `file`.
Change-Id: Ie29c9ea31a6d73ab7ff0c91bf0c10dc10c3636d6
diff --git a/Documentation/json.txt b/Documentation/json.txt
index 4f86a9d..12e60fc 100644
--- a/Documentation/json.txt
+++ b/Documentation/json.txt
@@ -247,7 +247,9 @@
-----
Information about a patch on a file.
-file:: The name of the file.
+file:: The name of the file. If the file is renamed, the new name.
+
+fileOld:: The old name of the file, if the file is renamed.
type:: The type of change.