summaryrefslogtreecommitdiff
path: root/remote.h
diff options
context:
space:
mode:
authorJay Soffian <jaysoffian@gmail.com>2009-11-10 00:03:31 -0500
committerJunio C Hamano <gitster@pobox.com>2009-11-10 01:01:22 -0800
commitf2ef6075c9d248523bf658d82065b46d892b5601 (patch)
tree7524f95071bc2ec11b2bc8a02e698714af17947e /remote.h
parente2d41c64bfbea592daeb3a065f1aa3900a03e07f (diff)
downloadgit-f2ef6075c9d248523bf658d82065b46d892b5601.tar.gz
remote: refactor some logic into get_stale_heads()
Move the logic in builtin-remote.c which determines which local heads are stale to remote.c so it can be used by other builtins. Signed-off-by: Jay Soffian <jaysoffian@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote.h')
-rw-r--r--remote.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/remote.h b/remote.h
index 5db842087d..d0aba81ead 100644
--- a/remote.h
+++ b/remote.h
@@ -154,4 +154,7 @@ struct ref *guess_remote_head(const struct ref *head,
const struct ref *refs,
int all);
+/* Return refs which no longer exist on remote */
+struct ref *get_stale_heads(struct remote *remote, struct ref *fetch_map);
+
#endif