diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-02-08 23:27:10 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-02-10 22:26:20 -0800 |
commit | f8948e2fbc7fbd63e81006408965e3e89380bfaa (patch) | |
tree | e431c958f2c07b7da331d985f96d81267c75e20a /refs.h | |
parent | 8ea7ad694be942350457197357127ed81b2550fe (diff) | |
download | git-f8948e2fbc7fbd63e81006408965e3e89380bfaa.tar.gz |
remote prune: warn dangling symrefs
If you prune from the remote "frotz" that deleted the ref your tracking
branch remotes/frotz/HEAD points at, the symbolic ref will become
dangling. We used to detect this as an error condition and issued a
message every time refs are enumerated.
This stops the error message, but moves the warning to "remote prune".
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.h')
-rw-r--r-- | refs.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -24,6 +24,11 @@ extern int for_each_tag_ref(each_ref_fn, void *); extern int for_each_branch_ref(each_ref_fn, void *); extern int for_each_remote_ref(each_ref_fn, void *); +/* can be used to learn about broken ref and symref */ +extern int for_each_rawref(each_ref_fn, void *); + +extern void warn_dangling_symref(const char *msg_fmt, const char *refname); + /* * Extra refs will be listed by for_each_ref() before any actual refs * for the duration of this process or until clear_extra_refs() is |