Document pre-condition for tree_entry_interesting
[gitweb.git] / tree-diff.c
index fe9f52c4796512f40869e511b55a2d97fa84532e..4d85fef5d0aebbf5867cd95009721f0e28d71523 100644 (file)
@@ -85,6 +85,8 @@ static int compare_tree_entry(struct tree_desc *t1, struct tree_desc *t2, const
 /*
  * Is a tree entry interesting given the pathspec we have?
  *
+ * Pre-condition: baselen == 0 || base[baselen-1] == '/'
+ *
  * Return:
  *  - 2 for "yes, and all subsequent entries will be"
  *  - 1 for yes