merge-recur: Explain why sha_eq() and struct stage_data cannot go
There were two TODOs to remove sha_eq() and to convert users of struct stage_data to active_cache users, but this is not possible. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
c1d20846f4
commit
3058e9339f
@ -47,8 +47,8 @@ static struct commit *make_virtual_commit(struct tree *tree, const char *comment
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* TODO: we should not have to copy the SHA1s around, but rather reference
|
* Since we use get_tree_entry(), which does not put the read object into
|
||||||
* them. That way, sha_eq() is just sha1 == sha2.
|
* the object pool, we cannot rely on a == b.
|
||||||
*/
|
*/
|
||||||
static int sha_eq(const unsigned char *a, const unsigned char *b)
|
static int sha_eq(const unsigned char *a, const unsigned char *b)
|
||||||
{
|
{
|
||||||
@ -58,9 +58,8 @@ static int sha_eq(const unsigned char *a, const unsigned char *b)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* TODO: check if we can just reuse the active_cache structure: it is already
|
* Since we want to write the index eventually, we cannot reuse the index
|
||||||
* sorted (by name, stage).
|
* for these (temporary) data.
|
||||||
* Only problem: do not write it when flushing the cache.
|
|
||||||
*/
|
*/
|
||||||
struct stage_data
|
struct stage_data
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user