summaryrefslogtreecommitdiff
path: root/diffcore.h
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2016-06-24 23:09:24 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-06-28 18:39:02 (GMT)
commit41c9560ee5f9fc4bd3c6580272bd292083a9fe18 (patch)
tree5dd07bbd754dd1ff28abc083ec509cb3ad1ce0d9 /diffcore.h
parenta0d12c4433e25e87b67df78b45635df8a098fb23 (diff)
downloadgit-41c9560ee5f9fc4bd3c6580272bd292083a9fe18.zip
git-41c9560ee5f9fc4bd3c6580272bd292083a9fe18.tar.gz
git-41c9560ee5f9fc4bd3c6580272bd292083a9fe18.tar.bz2
diff: rename struct diff_filespec's sha1_valid member
Now that this struct's sha1 member is called "oid", update the comment and the sha1_valid member to be called "oid_valid" instead. The following Coccinelle semantic patch was used to implement this, followed by the transformations in object_id.cocci: @@ struct diff_filespec o; @@ - o.sha1_valid + o.oid_valid @@ struct diff_filespec *p; @@ - p->sha1_valid + p->oid_valid Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diffcore.h')
-rw-r--r--diffcore.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/diffcore.h b/diffcore.h
index c40e5b6..c11b846 100644
--- a/diffcore.h
+++ b/diffcore.h
@@ -33,7 +33,7 @@ struct diff_filespec {
int count; /* Reference count */
int rename_used; /* Count of rename users */
unsigned short mode; /* file mode */
- unsigned sha1_valid : 1; /* if true, use sha1 and trust mode;
+ unsigned oid_valid : 1; /* if true, use oid and trust mode;
* if false, use the name and read from
* the filesystem.
*/