提交 7b80be15 编写于 作者: J Junio C Hamano

cache_name_compare() compares name and stage, nothing else.

The code was a bit unclear in expressing what it wants to compare.
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 f9666adf
......@@ -246,9 +246,9 @@ int cache_name_compare(const char *name1, int flags1, const char *name2, int fla
if (len1 > len2)
return 1;
/* Differences between "assume up-to-date" should not matter. */
flags1 &= ~CE_VALID;
flags2 &= ~CE_VALID;
/* Compare stages */
flags1 &= CE_STAGEMASK;
flags2 &= CE_STAGEMASK;
if (flags1 < flags2)
return -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册