Tell between packed, unpacked and symbolic refs.
authorJunio C Hamano <junkio@cox.net>
Thu, 21 Sep 2006 05:02:01 +0000 (22:02 -0700)
committerJunio C Hamano <junkio@cox.net>
Thu, 21 Sep 2006 05:02:01 +0000 (22:02 -0700)
commit8da197755450d4f16018bd4b5486dc8ed88b0f2a
tree9317d63e33d83995b6346eea465a4d290f991087
parentcb5d709ff8a4bae19d57a470ba2b137c25938a44
Tell between packed, unpacked and symbolic refs.

This adds a "int *flag" parameter to resolve_ref() and makes
for_each_ref() family to call callback function with an extra
"int flag" parameter.  They are used to give two bits of
information (REF_ISSYMREF and REF_ISPACKED) about the ref.

Signed-off-by: Junio C Hamano <junkio@cox.net>
23 files changed:
builtin-fmt-merge-msg.c
builtin-name-rev.c
builtin-pack-refs.c
builtin-prune.c
builtin-push.c
builtin-rev-parse.c
builtin-show-branch.c
builtin-symbolic-ref.c
cache.h
describe.c
fetch-pack.c
fetch.c
fsck-objects.c
http-push.c
receive-pack.c
refs.c
refs.h
revision.c
send-pack.c
server-info.c
sha1_name.c
upload-pack.c
wt-status.c