-
- Downloads
Do not print 'dangling' for cat-file in case of ambiguity
The return values -1 and -2 from get_oid could mean two different things, depending on whether they were from an enum returned by get_tree_entry_follow_symlinks, or from a different code path. This caused 'dangling' to be printed from a git cat-file in the case of an ambiguous (-2) result. Unify the results of get_oid* and get_tree_entry_follow_symlinks to be one common type, with unambiguous values. Signed-off-by:David Turner <novalis@novalis.org> Reported-by:
Eric Wong <e@80x24.org> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
Showing
- Documentation/git-cat-file.txt 6 additions, 0 deletionsDocumentation/git-cat-file.txt
- builtin/cat-file.c 4 additions, 1 deletionbuiltin/cat-file.c
- cache.h 19 additions, 1 deletioncache.h
- sha1-name.c 30 additions, 28 deletionssha1-name.c
- tree-walk.c 2 additions, 2 deletionstree-walk.c
- tree-walk.h 1 addition, 17 deletionstree-walk.h
Please register or sign in to comment