dir.c: fix comments to agree with argument name
Signed-off-by: Alex Vandiver <alexmv@dropbox.com> Signed-off-by: Nipunn Koorapati <nipunn@dropbox.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Alex Vandiver committed
Oct 15, 2020 at 16:28 UTC
e5cf6d3df4020748719312dcfde1412c6ff968a5
1 file changed
+3
-3
dir.c
+3
-3
@@ -1033,9 +1033,9 @@ static int add_patterns_from_buffer(char *buf, size_t size,
1033
* an index if 'istate' is non-null), parse it and store the
1034
* exclude rules in "pl".
1035
*
1036
- * If "ss" is not NULL, compute SHA-1 of the exclude file and fill
1036
+ * If "oid_stat" is not NULL, compute oid of the exclude file and fill
1037
* stat data from disk (only valid if add_patterns returns zero). If
1038
- * ss_valid is non-zero, "ss" must contain good value as input.
1038
+ * oid_stat.valid is non-zero, "oid_stat" must contain good value as input.
1039
*/
1040
static int add_patterns(const char *fname, const char *base, int baselen,
1041
struct pattern_list *pl, struct index_state *istate,
@@ -1083,7 +1083,7 @@ static int add_patterns(const char *fname, const char *base, int baselen,
1083
int pos;
1084
if (oid_stat->valid &&
1085
!match_stat_data_racy(istate, &oid_stat->stat, &st))
1086
- ; /* no content change, ss->sha1 still good */
1086
+ ; /* no content change, oid_stat->oid still good */
1087
else if (istate &&
1088
(pos = index_name_pos(istate, fname, strlen(fname))) >= 0 &&
1089
!ce_stage(istate->cache[pos]) &&